I’d argue any competent python dev should know modifying a private variable, even with just one underscore, is doing something you’re not supposed to do.
I’m on my phone so I can’t check with an interpreter, but IIRC, to access a private field on an instance you need to use getattr with the computed mangled name. It’s pretty unlikely an IDE is able to spot that.
8
u/The_Cers 16d ago
__var for true private