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/2004-July/046522.html below:

[Python-Dev] Fix import errors to have data

[Python-Dev] Fix import errors to have data [Python-Dev] Fix import errors to have dataFred L. Drake, Jr. fdrake at acm.org
Thu Jul 29 05:44:23 CEST 2004
On Wednesday 28 July 2004 06:40 pm, Bob Ippolito wrote:
 > I've used sys.modules[__module__] to get a reference to the current
 > module object.  Mostly for running doctests I guess, but I've probably
 > used it in other places.

Did you mean __name__?

__module__ is an attribute of classes that provides the __name__ of the 
defining module.


  -Fred

-- 
Fred L. Drake, Jr.  <fdrake at acm.org>

More information about the Python-Dev mailing list

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