Message260843
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. |
|
Date |
User |
Action |
Args |
2016-02-25 08:16:04 | serhiy.storchaka | set | recipients:
+ serhiy.storchaka, gvanrossum, rhettinger |
2016-02-25 08:16:04 | serhiy.storchaka | set | messageid: <1456388164.52.0.992584911868.issue26432@psf.upfronthosting.co.za> |
2016-02-25 08:16:04 | serhiy.storchaka | link | issue26432 messages |
2016-02-25 08:16:04 | serhiy.storchaka | create | |
|