Best practices with import?

Gordon McMillan gmcm at hypernet.com
Fri Aug 3 00:47:01 CEST 2001


Chris Barker wrote:

[delaying imports]


> another option is:
> 
> class MyEngine:
>     import engine_support

But that's not a delayed import. It happens
at the time the module is loaded.

- Gordon




More information about the Python-list mailing list