[issue10918] **kwargs unnecessarily restricted in concurrent.futures 'submit' API

Adrian Dries report at bugs.python.org
Mon Jan 17 20:41:30 CET 2011

Adrian Dries <adries at gmail.com> added the comment:

No, private mangling applies to any identifier in class-scope:

Python 2.6.4 (r264:75706, Dec  7 2009, 18:45:15) 
[GCC 4.4.1] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>> class C:
...     def f(__x): pass
>>> import inspect
>>> inspect.getargspec(C.f)
ArgSpec(args=['_C__x'], varargs=None, keywords=None, defaults=None)


Python tracker <report at bugs.python.org>

More information about the Python-bugs-list mailing list