A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://mail.python.org/pipermail/python-dev/2001-October/017992.html below:

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

[Python-Dev] bug or feature in imp.load_module()? [Python-Dev] bug or feature in imp.load_module()?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



RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4