methodmangling.pyx 314 Bytes
Newer Older
Stefan Behnel's avatar
Stefan Behnel committed
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19
__doc__ = u"""
>>> class PyTest(object):
...     def __private(self): pass

>>> py = PyTest()
>>> '_PyTest__private' in dir(py)
True
>>> '__private' in dir(py)
False

>>> cy = CyTest()
>>> '_PyTest__private' in dir(cy)
True
>>> '__private' in dir(cy)
False
"""

class CyTest(object):
    def __private(self): pass