Protected Methods and Python

Jan Dries Dries.Jan at
Sun Apr 13 21:07:50 CEST 2003

Don't worry too much about protected methods. Bjarne Stroustrup, creator 
of the C++ language, considers them to be a design mistake, and now 
regrets they were ever added to C++. See "The Design and evolution of 
C++" by Bjarne Stroustrup, page 302.
Java and I assume Ruby as well simply copied the concept from C++.


srijit at wrote:
> I do not see a  concept of Protected Methods in Python 2.2 like C++ and Ruby.
> Is this a serious limitation for Object Oriented Programing with Python? 
> Or may be it is possible to emulated Protected Methods in Python.
> I look forward to some discussion by OOP experts.
> Regards,
> Srijit

More information about the Python-list mailing list