cdxcore 0.1.29__py3-none-any.whl → 0.1.30__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 cdxcore might be problematic. Click here for more details.
- cdxcore/__init__.py +1 -1
- cdxcore/subdir.py +5 -8
- {cdxcore-0.1.29.dist-info → cdxcore-0.1.30.dist-info}/METADATA +1 -1
- {cdxcore-0.1.29.dist-info → cdxcore-0.1.30.dist-info}/RECORD +7 -7
- {cdxcore-0.1.29.dist-info → cdxcore-0.1.30.dist-info}/WHEEL +0 -0
- {cdxcore-0.1.29.dist-info → cdxcore-0.1.30.dist-info}/licenses/LICENSE +0 -0
- {cdxcore-0.1.29.dist-info → cdxcore-0.1.30.dist-info}/top_level.txt +0 -0
cdxcore/__init__.py
CHANGED
cdxcore/subdir.py
CHANGED
|
@@ -2980,12 +2980,9 @@ class SubDir(object):
|
|
|
2980
2980
|
return x*y
|
|
2981
2981
|
|
|
2982
2982
|
We can also use a function to generate a ``label``. In that case all parameters
|
|
2983
|
-
to the function including its ``
|
|
2984
|
-
we eat any parameters we are not interested in with ``** _``:
|
|
2983
|
+
to the function including its ``func_name`` are passed to the function.::
|
|
2985
2984
|
|
|
2986
|
-
|
|
2987
|
-
|
|
2988
|
-
@cache.cache("0.1", label=lambda x,y,**_: f"h({x},{y})", exclude_args='debug')
|
|
2985
|
+
@cache.cache("0.1", label=lambda x,y: f"h({x},{y})", exclude_args='debug')
|
|
2989
2986
|
def h(x,y,debug=False):
|
|
2990
2987
|
if debug:
|
|
2991
2988
|
print(f"h(x={x},y={y})")
|
|
@@ -3019,7 +3016,7 @@ class SubDir(object):
|
|
|
3019
3016
|
|
|
3020
3017
|
.. code-block:: python
|
|
3021
3018
|
|
|
3022
|
-
@cache.cache("0.1", uid=lambda x,y
|
|
3019
|
+
@cache.cache("0.1", uid=lambda x,y: f"h2({x},{y})", exclude_args='debug')
|
|
3023
3020
|
def h2(x,y,debug=False):
|
|
3024
3021
|
if debug:
|
|
3025
3022
|
print(f"h(x={x},y={y})")
|
|
@@ -3232,7 +3229,7 @@ class SubDir(object):
|
|
|
3232
3229
|
@cache.cache_class("0.1")
|
|
3233
3230
|
class A(object):
|
|
3234
3231
|
|
|
3235
|
-
@cache.cache_init(uid=lambda x, debug: f"A.__init__(x={x})") # <-- 'self' is not passed to the lambda function
|
|
3232
|
+
@cache.cache_init(uid=lambda x, debug: f"A.__init__(x={x})") # <-- 'self' is not passed to the lambda function
|
|
3236
3233
|
def __init__(self, x, debug):
|
|
3237
3234
|
if debug:
|
|
3238
3235
|
print("__init__",x)
|
|
@@ -3774,7 +3771,7 @@ class CacheCallable(object):
|
|
|
3774
3771
|
which = "'uid'" if not uid is None else "'label'"
|
|
3775
3772
|
if isinstance( F, str ):
|
|
3776
3773
|
r = _expected_str_fmt_args( F )
|
|
3777
|
-
if
|
|
3774
|
+
if r.positional + len(r.posindices) > 0:
|
|
3778
3775
|
raise ValueError("f{which} '{F}' cannot have positional arguments (empty brackets {} or brackets with integer position {1}). Use only named arguments.")
|
|
3779
3776
|
self._uid_label_params = list(r.keywords)
|
|
3780
3777
|
del r
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
cdxcore/__init__.py,sha256=
|
|
1
|
+
cdxcore/__init__.py,sha256=jkKhp8G5M366IE47KjCnP6QalcxvJvXQxnLJjQCym8I,127
|
|
2
2
|
cdxcore/config.py,sha256=RaxpAnTEyGXLiq-1O2prXFBb2sdyqB6hHDHPAFGe2k0,98472
|
|
3
3
|
cdxcore/deferred.py,sha256=41buUit1SOAnhVSrzlzM5hd2OOhnAS2QRDSWEpjXfdE,43138
|
|
4
4
|
cdxcore/dynalimits.py,sha256=TXEwa4wCdeM5epG1ceezaHwvmhnbU-oXlXpHNbOMQR8,11293
|
|
@@ -9,12 +9,12 @@ cdxcore/jcpool.py,sha256=Vw8o8S4_qTVQNIr2sRaBR_kHz_wO0zpYs0QjlKSYFz8,27280
|
|
|
9
9
|
cdxcore/npio.py,sha256=SVpKkFt6lyRogkns-oky0wEiWgVTalgB0OdaSvyWtlU,24212
|
|
10
10
|
cdxcore/npshm.py,sha256=9buYPNJoNlw69NZQ-nLF13PEWBWNx51a0gjQw5Gc24U,18368
|
|
11
11
|
cdxcore/pretty.py,sha256=FsI62rlaqRX1E-uPCSnu0M4UoCQ5Z55TDvYPnzTNO70,17220
|
|
12
|
-
cdxcore/subdir.py,sha256=
|
|
12
|
+
cdxcore/subdir.py,sha256=c4QX1szgt-ZORU1DZyvVXPzNr9sphmi08gglsGDmN3Y,190192
|
|
13
13
|
cdxcore/uniquehash.py,sha256=j2pDmDPdDX4mZ8YIpZLbg-qWXQJPuR7OvZSTGnvxwL0,50827
|
|
14
14
|
cdxcore/util.py,sha256=dqCEhrDvUM4qjeUwb6n8jPfS8WC4Navcj83gDjXfRFE,39349
|
|
15
15
|
cdxcore/verbose.py,sha256=vsjGTVnAHMPg2L2RfsowWKKPjUSnQJ3F653vDTydBkI,30223
|
|
16
16
|
cdxcore/version.py,sha256=pmbFIZ6Egif_ppZNFJRqEZO0HBffIzkn-hkY6HpkMpU,27325
|
|
17
|
-
cdxcore-0.1.
|
|
17
|
+
cdxcore-0.1.30.dist-info/licenses/LICENSE,sha256=M-cisgK9kb1bqVRJ7vrCxHcMQQfDxdY3c2YFJJWfNQg,1090
|
|
18
18
|
docs/source/conf.py,sha256=yn3LYgw3sT45mUyll-B2emVp6jg7H6KfAHOcBg_MNv4,4182
|
|
19
19
|
tests/test_config.py,sha256=N86mH3y7k3LXEmU8uPLfrmRMZ-80VhlD35nBbpLmebg,15617
|
|
20
20
|
tests/test_deferred.py,sha256=4Xsb76r-XqHKiBuHa4jbErjMWbrgHXfPwewzzY4lf9Y,7922
|
|
@@ -34,7 +34,7 @@ tmp/npsh1.py,sha256=mNucUl2-jNmE84GlMlliB4aJ0UQ9FqdymgcY_9mLeZY,15432
|
|
|
34
34
|
tmp/sharedarray.py,sha256=dNOT1ObCc3nM3qA3OA508NcENIBnkmWMxRPCqvMVa8A,12862
|
|
35
35
|
up/git_message.py,sha256=EfSH7Pit3ZoCiRqSMwRCUN_QyuwreU4LTIyGSutBlm4,123
|
|
36
36
|
up/pip_modify_setup.py,sha256=Esaml4yA9tFsqxLhk5bWSwvKCURONjQqfyChgFV2TSY,1584
|
|
37
|
-
cdxcore-0.1.
|
|
38
|
-
cdxcore-0.1.
|
|
39
|
-
cdxcore-0.1.
|
|
40
|
-
cdxcore-0.1.
|
|
37
|
+
cdxcore-0.1.30.dist-info/METADATA,sha256=D3Rm5o1JhCnDZQmoSXOxNbA08mtO0Jf-Vh9nfvroNZM,5939
|
|
38
|
+
cdxcore-0.1.30.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
|
|
39
|
+
cdxcore-0.1.30.dist-info/top_level.txt,sha256=phNSwCyJFe7UP2YMoi8o6ykhotatlIbJHjTp9EHM51k,26
|
|
40
|
+
cdxcore-0.1.30.dist-info/RECORD,,
|
|
File without changes
|
|
File without changes
|
|
File without changes
|