Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

The names get mangled, but are still accessible.

    class Foo:
        __bar = 1

    f = Foo()
    assert(f._Foo_bar == 1)


Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: