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 <rep...@bugs.python.org> <http://bugs.python.org/issue26432> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com