Flan definition collision

Luca Menegotto otlucaDELETE at DELETEyahoo.it
Tue Aug 11 13:29:08 CEST 2015


Il 11/08/2015 08:28, smahabole at google.com ha scritto:
> I am importing two modules, each of which is defining flags
 > (command line arguments) with the same name. This makes
 > it impossible to import both the modules at once, because of flag
 > name definition conflict.
>

If you use 'import', and not 'from xyz import', you avoid any conflict.

Ah: 'from ... import' has caused me a lot of terrible headaches. I don't 
use this statement if not strictly necessary.

-- 
Bye.
Luca



More information about the Python-list mailing list