You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
It seems that since python 3.12.4 (or .1, or .2, or .3 but it was not the case in 3.12.0),
deff(a, b, c, /, *, d, **e):
returna+b+c+d+sum(e)
# it is possible to keyword-partialize a positional-only argument...fp_ref=functools.partial(f, b=0)
# but 'signature' does not support it !ifsys.version_info< (3, 12, 4):
signature(fp_ref) # <-- raises(ValueError) !!!!else:
# Now it works !assertstr(signature(fp_ref)) =="(a, c, /, *, d, **e)"# On our end, we used to not support it because signature was not supporting itmakefun.partial(f, b=0) # Raises `NotImplementedError`
Details: raises NotImplementedError: Predefining a positional-only argument using keyword is not supported as in python 3.8.8, 'signature()' does not support such functions and raises a ValueError
We should probably implement it now
The text was updated successfully, but these errors were encountered:
It seems that since python 3.12.4 (or .1, or .2, or .3 but it was not the case in 3.12.0),
Details: raises
NotImplementedError: Predefining a positional-only argument using keyword is not supported as in python 3.8.8, 'signature()' does not support such functions and raises a ValueError
We should probably implement it now
The text was updated successfully, but these errors were encountered: