Message126431
| Author |
avdd |
| Recipients |
avdd, bquinlan, georg.brandl, r.david.murray, ron_adam |
| Date |
2011年01月17日.19:41:24 |
| SpamBayes Score |
0.00016462273 |
| Marked as misclassified |
No |
| Message-id |
<1295293290.4.0.565521281546.issue10918@psf.upfronthosting.co.za> |
| In-reply-to |
| Content |
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)
>>> |
|