Second, supporting private methods is not a requirement for a language to be object-oriented, nor is it necessary to do any of the things you claim (falsely) that Python is bad at.
Third, I notice you completely ignored the rest of my reply.
Last edited by TheBlackCat; 09-10-2013 at 11:05 AM.
Besides, everything in Python is an object -- whether you like it or not.
Private functions in Python
Code:# the following function is private, do NOT touch it def _foo()
Personally I don't like Python that much, but you can't say it's different than any of these so called "real" OOP languages with respect to private methods. You can call private methods in PHP, Java and C# via reflection. Works like a charm
Python doesn't force things on people. Someone once said that some languages put up barbed wire and land mines to prevent developers from doing certain bad things. Python employs rainbows and sunshine on the good path instead so users are never tempted to go down the bad paths.
That said, I use Python for everything if possible. I very seldom have to look for another tool.