4 ms·
The solution is to stop thinking about private and static variables :) I've been developing Python for upwards of 10 years, and not one single time I have ever
by orf 8y ago
The solution is to stop thinking about private and static variables :)
I've been developing Python for upwards of 10 years, and not one single time I have ever had a legitimate use for double underscore, and I've only seen one legitimate use in the wild (involving auto-generated code and C interfacing).
You also very, very rarely need static methods.