Identifiers exposed by a package

Robert Kern robert.kern at
Sun Nov 1 07:41:52 CET 2009

Ben Finney wrote:
> Robert Kern <robert.kern at> writes:
>> If you are going to expose symbols in your, they should
>> not have the same name as any of the modules in the package.
> Would I be correct in assuming you make an exception for the package
> importing one of the modules in the package, and thereby making that
> module's identifier exposed?
>     package_foo/
>     $ cat foo/
>     import module_bar
> Now the name ‘package_foo.module_bar’ will get the identifier already
> assigned within ‘package_foo/’, but that identifier is the
> module anyway.


Robert Kern

"I have come to believe that the whole world is an enigma, a harmless enigma
  that is made terrible by our own mad attempt to interpret it as though it had
  an underlying truth."
   -- Umberto Eco

More information about the Python-list mailing list