This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author serhiy.storchaka
Recipients gvanrossum, rhettinger, serhiy.storchaka
Date 2016-02-25.08:16:02
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1456388164.52.0.992584911868.issue26432@psf.upfronthosting.co.za>
In-reply-to
Content
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.
History
Date User Action Args
2016-02-25 08:16:04serhiy.storchakasetrecipients: + serhiy.storchaka, gvanrossum, rhettinger
2016-02-25 08:16:04serhiy.storchakasetmessageid: <1456388164.52.0.992584911868.issue26432@psf.upfronthosting.co.za>
2016-02-25 08:16:04serhiy.storchakalinkissue26432 messages
2016-02-25 08:16:04serhiy.storchakacreate