[Python-Dev] bug or feature in imp.load_module()? (original) (raw)

Neal Norwitz neal@metaslash.com
Wed, 17 Oct 2001 15:24:05 -0400


Guido van Rossum wrote:

[stuff about imp.load_module() deleted]

Why are you trying to use this? Can't you use import?

This was from ancient code. I think import could be used. I haven't modified this code for a long time (I don't even think I wrote the original code). The code is used to load the modules so they can be processed by pychecker.

When I change pychecker to not actually import the file, using imp.load_module() or import will be moot.

This was just something I noticed and seemed inconsistent to me. Although it was easy enough to overcome with a file.seek(0).

Neal