3 ms·
The names get mangled, but are still accessible. class Foo: __bar = 1 f = Foo() assert(f._Foo_bar == 1)
by lbhdc 2y ago
The names get mangled, but are still accessible.
class Foo:
__bar = 1
f = Foo()
assert(f._Foo_bar == 1)