problem of double import in python
alex23
wuwei23 at gmail.com
Mon Sep 2 21:07:53 EDT 2013
On 3/09/2013 10:48 AM, Mohsen Pahlevanzadeh wrote:
> Unfortunately, i prevent to same error, double import to python, but i
> don't know how to solve, Even i don't know policy of python programmers.
You don't need to do anything, Python takes care of this for you.
During execution, a module is only loaded the first time it is imported.
Every following import will notice that it has already been loaded and
return a reference to the module instead.
More information about the Python-list
mailing list