-
-
Notifications
You must be signed in to change notification settings - Fork 32.6k
Closed as not planned
Labels
pendingThe issue will be closed if no feedback is providedThe issue will be closed if no feedback is providedstdlibPython modules in the Lib dirPython modules in the Lib dirtype-featureA feature request or enhancementA feature request or enhancement
Description
Feature or enhancement
Proposal:
class partial:
"""New function with partial application of the given arguments
and keywords.
"""
__slots__ = ("func", "args", "keywords", "_phcount", "_merger",
"__dict__", "__weakref__")
...
Here is the code. The "__dict__"
in the __slots__
make it almost useless and might consume more memory.
I think that if there is no other affect, we can remove the __slots__
. Or if we want to forbid the other attributes, we can changed the __setattribute__
and warning it then finally remove the "__dict__"
Has this already been discussed elsewhere?
No response given
Links to previous discussion of this feature:
No response
Metadata
Metadata
Assignees
Labels
pendingThe issue will be closed if no feedback is providedThe issue will be closed if no feedback is providedstdlibPython modules in the Lib dirPython modules in the Lib dirtype-featureA feature request or enhancementA feature request or enhancement