Python should add "__name__" and "__doc__" attributes to "functools.partial"
April 15, 2023
12:02 a.m.
Functions come with these attributes, but the "partial" class doesn't, even though it's meant to mimic functions. This is counter-intuitive and can sometimes cause problems, like in NumPy issue #23461 (https://github.com/numpy/numpy/issues/23461). Adding these attributes should make it much easier to use "partial" in the future. Thanks for your consideration.
1152
Age (days ago)
1152
Last active (days ago)
0 comments
1 participants
participants (1)
-
Matteo Raso