[New-bugs-announce] [issue26432] Add partial.kwargs
Serhiy Storchaka
report at bugs.python.org
Thu Feb 25 03:16:04 EST 2016
New submission from Serhiy Storchaka:
Most Python classes that exposes a dictionary of keyword arguments as an attribute, name this attribute "kwargs":
concurrent.futures.process._CallItem
concurrent.futures.process._WorkItem
concurrent.futures.thread._WorkItem
inspect.BoundArguments
sched.Event
threading.Timer
unittest.mock._patch
weakref.finalize._Info
The only exceptions are classes contextlib._GeneratorContextManager with the "kwds" attribute and functools.partial and functools.partialmethod with the "keywords" attribute.
Proposed patch adds the "kwargs" alias to the the "keywords" attribute in functools.partial and functools.partialmethod.
There are precedences for adding aliases in the stdlib.
----------
components: Library (Lib)
files: partial_kwargs.patch
keywords: patch
messages: 260843
nosy: gvanrossum, rhettinger, serhiy.storchaka
priority: normal
severity: normal
stage: patch review
status: open
title: Add partial.kwargs
type: enhancement
versions: Python 3.6
Added file: http://bugs.python.org/file42024/partial_kwargs.patch
_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue26432>
_______________________________________
More information about the New-bugs-announce
mailing list