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

Antoon Pardon apardon at forel.vub.ac.be
Tue Oct 4 03:52:29 EDT 2005


Op 2005-10-03, Steven D'Aprano schreef <steve at REMOVETHIScyber.com.au>:
> On Mon, 03 Oct 2005 09:14:34 +0000, Antoon Pardon wrote:
>
>> If you are in a project with
>> multiple authors, your usage of private variables can break code
>> that other people rely on.
>
> If you are in a project with multiple authors, your usage of PUBLIC
> variables can break code that other people rely on.

Maybe then those shouldn't have been public variables in the first.

> That's why you have testing. You do test, don't you?

You do seem to think that testing will solve everything and
that any extra protection to get code correct is thus a
waste of time.

I don't share that view.

-- 
Antoon Pardon



More information about the Python-list mailing list