3 ms·
python in a sense has privacy. it's just less annoying than, say, dart's (which bruises my head a lot) dunder-prefixed members get mangled https://docs.python.
by awinter-py 4y ago
python in a sense has privacy. it's just less annoying than, say, dart's (which bruises my head a lot)
dunder-prefixed members get mangled https://docs.python.org/3.10/tutorial/classes.html?highlight=private%20member#tut-private https://docs.python.org/3.10/tutorial/classes.html?highlight..., but you can get at them if you really want to
pylint is angry when you access underscore methods https://pylint.pycqa.org/en/latest/user_guide/messages/warning/protected-access.html https://pylint.pycqa.org/en/latest/user_guide/messages/warni...
these patterns are valuable for some teams and it's awesome that they're available as opt-ins, but it's hard to justify privacy without an escape hatch