Namespace pollution
Mirko Liss
n89553 at stud.upb.de
Mon Jan 31 12:24:06 EST 2000
Dirk-Ulrich Heise wrote:
> I've got one problem with all this stuff:
> I end up with dozens of helper functions that are
> called exactly one time. They pollute the namespaces
> of the module or class they're defined in. I hate polluted
> namespaces.
>
> How do others cope with this problem (that does not only
> apply to Python)?
Use double underscores to hide any object you don´t
want to be imported from your module.
regards,
Mirko
--
M Liß, <n89553 at squid.upb.de>
More information about the Python-list
mailing list