When to import
Mikael Olofsson
mikael at isy.liu.se
Wed Jun 14 06:56:25 EDT 2000
On 14-Jun-00 Anders M Eriksson wrote:
> When does the import take place?
> Will there be any difference in the two cases below?
> If I have a module that I very seldom use should I only import it when
> needed (using an if statement) or is it better to allways import it?
Import when needed. I've saved a lot of compile/execute time that way.
/Mikael
-----------------------------------------------------------------------
E-Mail: Mikael Olofsson <mikael at isy.liu.se>
WWW: http://www.dtr.isy.liu.se/dtr/staff/mikael
Phone: +46 - (0)13 - 28 1343
Telefax: +46 - (0)13 - 28 1339
Date: 14-Jun-00
Time: 12:55:12
This message was sent by XF-Mail.
-----------------------------------------------------------------------
More information about the Python-list
mailing list