python development practices?
Paul Rubin
phr-n2001d at nightsong.com
Thu Nov 1 19:12:09 EST 2001
m.faassen at vet.uu.nl (Martijn Faassen) writes:
> 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?
If they're related in a natural way, there's no reason to not put them
in the same module.
I wish Python had something like C++'s "friend" classes, e.g. a way
that two classes in the same module can access each other's private
instance variables.
More information about the Python-list
mailing list