python development practices?

Martijn Faassen m.faassen at vet.uu.nl
Thu Nov 1 18:43:14 EST 2001


Laura Creighton <lac at strakt.com> wrote:
> Be careful with the leading underscore thingie.  I have more trouble
> with python code written by people (who don't work here) who apparantly
> as a last step turn _every_ attribute in their class into a _variable.
> I come along and want to subclass them, or make a helper class ....
> I'm also tired of finding 3 classes which absolutely, positively,
> _must_ live in the same file; especially since this is so rarely documented.

I don't understand the problem; a single leading underscore for attributes
won't give you any such problems. Double underscores are different, but
even then I don't see why 3 classes should live in the same module?

Regards,

Martijn
-- 
History of the 20th Century: WW1, WW2, WW3?
No, WWW -- Could we be going in the right direction?



More information about the Python-list mailing list