reload fails if module not in sys.path

Lonnie Princehouse finite.automaton at gmail.com
Fri Oct 21 20:59:39 CEST 2005


> That's OK, but you may find fiddling with sys.path is more productive :-)

Yeah, that's what I'm doing and it works just fine.  When I stumbled
over this behavior yesterday it seemed (and still does) like a
low-priority bug in reload.  I was hoping a guru would reply with
something like, "Of course that's how it is.  If reload() tried to use
the __file__ attribute, a universe-ending paradox would ensue
because..."

Feh.




More information about the Python-list mailing list