thds.core 1.46.20251016004356__py3-none-any.whl → 1.46.20251016155628__py3-none-any.whl

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.

Potentially problematic release.


This version of thds.core might be problematic. Click here for more details.

thds/core/parallel.py CHANGED
@@ -94,7 +94,6 @@ def yield_all(
94
94
  len_or_none = try_len(thunks)
95
95
 
96
96
  num_tasks_log = "" if not len_or_none else f" of {len_or_none}"
97
- named = f" {named} " if named else " result "
98
97
 
99
98
  if PARALLEL_OFF() or (len_or_none == 1 and not executor_cm):
100
99
  # don't actually transfer this to an executor we only have one task.
@@ -119,10 +118,12 @@ def yield_all(
119
118
  try:
120
119
  result = future.result()
121
120
  yielder: tuple[H, ty.Union[R, Error]] = thunk_key, ty.cast(R, result)
121
+ name = named or result.__class__.__name__
122
122
  except Exception as e:
123
123
  yielder = thunk_key, Error(e)
124
+ name = named or e.__class__.__name__
124
125
  finally:
125
- progress_logger(fmt(f"Yielding{named}{i}{num_tasks_log}"))
126
+ progress_logger(fmt(f"Yielding {name} {i}{num_tasks_log}"))
126
127
  yield yielder
127
128
 
128
129
 
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: thds.core
3
- Version: 1.46.20251016004356
3
+ Version: 1.46.20251016155628
4
4
  Summary: Core utilities.
5
5
  Author-email: Trilliant Health <info@trillianthealth.com>
6
6
  License: MIT
@@ -29,7 +29,7 @@ thds/core/link.py,sha256=4-9d22l_oSkKoSzlYEO-rwxO1hvvj6VETY7LwvGcX6M,5534
29
29
  thds/core/logical_root.py,sha256=gWkIYRv9kNQfzbpxJaYiwNXVz1neZ2NvnvProtOn9d8,1399
30
30
  thds/core/merge_args.py,sha256=7oj7dtO1-XVkfTM3aBlq3QlZbo8tb6X7E3EVIR-60t8,5781
31
31
  thds/core/meta.py,sha256=Df0DxV5UzHcEsu5UCYaE1BWipMPTEXycn9Ug4cdquMk,12114
32
- thds/core/parallel.py,sha256=wRN0rZ8OebRYHkQT-1De5MbhCqdm2H0GJmWEjo_ylKI,8535
32
+ thds/core/parallel.py,sha256=FojyyUtJ3jrYcsPiHlotWqUUybP_HtVgAN59_ipYf2g,8597
33
33
  thds/core/pickle_visit.py,sha256=QNMWIi5buvk2zsvx1-D-FKL7tkrFUFDs387vxgGebgU,833
34
34
  thds/core/prof.py,sha256=5ViolfPsAPwUTHuhAe-bon7IArPGXydpGoB5uZmObDk,8264
35
35
  thds/core/progress.py,sha256=tY8tc_6CMnu_O8DVisnsRoDpFJOw5vqyYzLhQDxsLn8,4361
@@ -74,8 +74,8 @@ thds/core/sqlite/structured.py,sha256=8t1B6XbM5NnudKEeBLsdjRVbSXXSr6iHOW0HwEAqtX
74
74
  thds/core/sqlite/types.py,sha256=oq8m0UrvSn1IqWWcQ4FPptfAhdj6DllnCe7puVqSHlY,1297
75
75
  thds/core/sqlite/upsert.py,sha256=BmKK6fsGVedt43iY-Lp7dnAu8aJ1e9CYlPVEQR2pMj4,5827
76
76
  thds/core/sqlite/write.py,sha256=z0219vDkQDCnsV0WLvsj94keItr7H4j7Y_evbcoBrWU,3458
77
- thds_core-1.46.20251016004356.dist-info/METADATA,sha256=gg3GG2PEO23ad6LIZ-HIcHiuWnWHKVawP914Y1ozw0o,2216
78
- thds_core-1.46.20251016004356.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
79
- thds_core-1.46.20251016004356.dist-info/entry_points.txt,sha256=bOCOVhKZv7azF3FvaWX6uxE6yrjK6FcjqhtxXvLiFY8,161
80
- thds_core-1.46.20251016004356.dist-info/top_level.txt,sha256=LTZaE5SkWJwv9bwOlMbIhiS-JWQEEIcjVYnJrt-CriY,5
81
- thds_core-1.46.20251016004356.dist-info/RECORD,,
77
+ thds_core-1.46.20251016155628.dist-info/METADATA,sha256=u27UdLutGubIa1NCaZFWizcLYLHyReIzyqa89OAjrEo,2216
78
+ thds_core-1.46.20251016155628.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
79
+ thds_core-1.46.20251016155628.dist-info/entry_points.txt,sha256=bOCOVhKZv7azF3FvaWX6uxE6yrjK6FcjqhtxXvLiFY8,161
80
+ thds_core-1.46.20251016155628.dist-info/top_level.txt,sha256=LTZaE5SkWJwv9bwOlMbIhiS-JWQEEIcjVYnJrt-CriY,5
81
+ thds_core-1.46.20251016155628.dist-info/RECORD,,