Will python never intend to support private, protected and public?

Paul Rubin http
Fri Sep 30 06:42:32 EDT 2005


Steven D'Aprano <steve at REMOVETHIScyber.com.au> writes:
> Still, en.karpachov at ospaz.ru's point that you must know the base classes
> is correct. It is *easy* to find them out (NotSoSecret.__bases__ should do
> it), but if you don't you are taking a chance that your class name doesn't
> clash with one of the bases.

It's not easy if the base classes change after you check your code in.
You shouldn't need to know about that if it happens.  Modularity, remember?



More information about the Python-list mailing list