[IPython-user] Fail to reload file on %run

Ville Vainio vivainio at gmail.com
Thu Jun 22 05:32:18 CDT 2006

On 6/22/06, Joachim Berdal Haga <c.j.b.haga at fys.uio.no> wrote:

> I'm not sure what you mean; I'm new to python (though not to programming),
> so I'm not totally familiar with the "python way" of doing things. This is
> a stand-alone class file, although it will be used later as a module from
> other parts.

I mean that it's not considered "normal" to import the file we are
currently executing:

In file mymod.py:
print "hi"

import mymod  # bad form!

Frankly, I didn't even know it worked!

Ville Vainio - vivainio.googlepages.com
vainio.blogspot.com - g[mail | talk]='vivainio'

More information about the IPython-user mailing list