import module from package - confusing syntax

Mark McEahern marklists at mceahern.com
Sat Jul 3 09:54:50 EDT 2004


On Sat, 2004-07-03 at 08:21, David MacQuigg wrote:
> I'm setting up a large hierarchy of module packages and using a
> variable to select which of many alternative packages to import.

This means you need __import__.

// m





More information about the Python-list mailing list