in reply to Most effective way to dynamically load a module?
Check the documentation, use already checks whether a class is loaded and doesn't reload it the second time. That check is more efficient than calling can. However use will call import. Since you don't need the calls to import, the empty parens can be used to get rid of them.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: Most effective way to dynamically load a module?
by BerntB (Deacon) on Aug 22, 2006 at 04:12 UTC | |
by tilly (Archbishop) on Aug 22, 2006 at 05:15 UTC | |
by BerntB (Deacon) on Aug 22, 2006 at 05:47 UTC | |
by friedo (Prior) on Aug 22, 2006 at 04:15 UTC | |
by tilly (Archbishop) on Aug 22, 2006 at 05:20 UTC |