Importing modules from miscellaneous folders

2011-01-05 Thread Jshgwave
On a Windows PC, I would like to be able to store modules in topic-specific foldersinstead of in Python26/Lib/site-packages, and then import into an IPython session those modules and the functions in them. To test this, I have made a toy module: ---  toy_module.py    This is for testing

Redundant importing of modules

2010-12-20 Thread Jshgwave
When writing a function that uses a module such as NumPy, it is tempting to include the statement import numpy or import numpy as np in the definition of the function, in case the  function is used in a script that hasn't already imported NumPy. That could lead to the script issuing the import