import keyword behaviour - performance impact if used multiple times?
Diez B. Roggisch
deetsNOSPAM at web.de
Sat Nov 27 08:10:18 EST 2004
More information about the Python-list mailing list
Sat Nov 27 08:10:18 EST 2004
- Previous message (by thread): executable from python cod
- Next message (by thread): import keyword behaviour - performance impact if used multiple times?
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
> If I run fileB, will this import the psycopg twice, or once only? Is > this something to do with system modules being singletons? It will be imported only once. Of course the statement will be read twice - but as this only happens while reading the *.py the first time, you needn't bother about performance issues. -- Regards, Diez B. Roggisch
- Previous message (by thread): executable from python cod
- Next message (by thread): import keyword behaviour - performance impact if used multiple times?
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
More information about the Python-list mailing list