Re:Ask HN: Why do you make class members private?
by ajoseps on Monday July 25, 2022 @02:22PM
(#32228692)
I think it's because of what underscoring does. It's the "fake" privacy in Python. Also autocompleters tend to ignore those functions
Re:Ask HN: Why do you make class members private?
by frenchy on Monday July 25, 2022 @02:34PM
(#32228882)
Probably for the same reason that zero-based versioning (https://0ver.org/) is so popular. People want to avoid commitment.
I know what _underscoring does in Python and what PEP8 recommends but doing it all the time for everything is so ugly and unnecessary.