NB question on global/local variables in functions

Fredrik Lundh fredrik at pythonware.com
Sat Jul 15 10:32:01 EDT 2006


Wolfgang wrote:

>> First, avoid "from function import *" as it pollutes your namespace.  Either
>> import specific symbols or just the module:
>>
>>     from function import fun, fun1
>>     import function
> 
> thanks for the hint! But what is the difference between
> from module import *
> 	and
> import module
> ?

http://effbot.org/zone/import-confusion.htm#many-ways

</F>




More information about the Python-list mailing list