Link Details

Link 23825 thumbnail
User 230430 avatar

By wyldwolf
via technogeek.org
Published: Jun 01 2007 / 02:48

If you have a need to import a module in python and, for whatever reason, you will not know the name of the module until run-time, python provides several ways to dynamically import the module.
  • 10
  • 1
  • 5364
  • 1623

Comments

Add your comment
User 205043 avatar

mystilleef replied ago:

0 votes Vote down Vote up Reply

The technique is also used to write plugin systems in Python. Very useful.

Add your comment


Html tags not supported. Reply is editable for 5 minutes. Use [code lang="java|ruby|sql|css|xml"][/code] to post code snippets.

Voters For This Link (10)



Voters Against This Link (1)