ARGV and import ?

Gerhard Häring gh_pythonlist at
Tue Oct 9 19:41:52 CEST 2001

On Tue, Oct 09, 2001 at 01:14:17PM -0400, Steve Holden wrote:
> [...]
> __import__ (name[, globals[, locals[, fromlist]]])

Oh, I wasn't aware of this function. That's of course preferrable to
constructing the import statement via exec. Guess I'd better re-read the
Python docs sometime.

mail:   gerhard <at> bigfoot <dot> de       registered Linux user #64239
web:    OpenPGP public key id 86AB43C0
public key fingerprint: DEC1 1D02 5743 1159 CD20  A4B6 7B22 6575 86AB 43C0
reduce(lambda x,y:x+y,map(lambda x:chr(ord(x)^42),tuple('zS^BED\nX_FOY\x0b')))

More information about the Python-list mailing list