On 12/01/06, Hans Dushanthakumar <[EMAIL PROTECTED]> wrote:
> Any other means of importing dynamically?

There's an __import__ builtin. It's a function that takes a string and
returns the module.

eg:

>>> sys = __import__('sys')
>>> sys.platform
'win32'

[actually, it does a bit more than just that; read the docs]

--
John.
_______________________________________________
Tutor maillist  -  Tutor@python.org
http://mail.python.org/mailman/listinfo/tutor

Reply via email to