under naming

John Machin sjmachin at lexicon.net
Mon Jul 31 20:22:24 EDT 2006


David Bear wrote:
> I must have missed reading something important about naming conventions.
>
> I have found that if I have a python module where I have an identifier named
> with a beginning underscore that I cannot use from module import * to make
> that name available in another module.
>
> for example,
> module A
>
> _myvar = 'a local var'
>
> module B
> from A import *
>
> _myvar -- is not available.
>
> Is this in a pep somewhere ?
> 

http://www.python.org/doc/2.4.3/ref/import.html




More information about the Python-list mailing list