why import, reload, import again?
Robert Kern
robert.kern at gmail.com
Tue Jan 3 19:48:51 EST 2006
beliavsky at aol.com wrote:
> Near the beginning of file test_matrix.py from scipy are the lines
>
> import scipy.base
> reload(scipy.base)
> from scipy.base import *
> del sys.path[0]
>
> Could someone please explain why the first two lines were included? A
> similar script I wrote works fine without them. Also, what is the
> purpose of the "del" line? (I understand the mechanics of what "del"
> does.) The scipy developers are skilled Python programmers, so I am
> trying to understand the idioms used in their codes.
Pearu probably knows. You should ask on the scipy list as this is almost
certainly a holdover from the older version of scipy.
--
Robert Kern
robert.kern at gmail.com
"In the fields of hell where the grass grows high
Are the graves of dreams allowed to die."
-- Richard Harter
More information about the Python-list
mailing list