Serhiy Storchaka added the comment: Here is a patch for UserDict, that keep current behavior, but allows to pass keys "self" and "dict" if positional parameter dict is specified.
>>> UserDict(self=42) {'self': 42} >>> UserDict({}, dict=42) {'dict': 42} >>> UserDict(dict={'a': 42}) {'a': 42} ---------- Added file: http://bugs.python.org/file38692/UserDict_self_and_dict_keywords.patch _______________________________________ Python tracker <rep...@bugs.python.org> <http://bugs.python.org/issue22609> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com