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/1999-September/000936.html below:

[Python-Dev] Towards a Python based import scheme

[Python-Dev] Towards a Python based import scheme [Python-Dev] Towards a Python based import schemeGordon McMillan gmcm@hypernet.com
Wed, 15 Sep 1999 16:43:27 -0400
Marc-Andre wrote:

> To get a little more constructive I've started hacking away on
> Greg Stein's imputil.py to make it work with my DateTime package.

>  http://starship.skyport.net/~lemburg/imputil.py

You (and Greg) are missing a rather important patch I 
submitted to Greg a long time ago (around line 62):

  def _reload_hook(self, module):
    # gmcm - Hmmm, reloading of a module may or may not 
be impossible,
    # (depending on the importer),  but at least we can
    # look to see if it's ours to reload:
    if hasattr(module, '__importer__'):
      if getattr(module, '__importer__') == self:
        raise SystemError, "reload not yet implemented"
    return self.__chain_reload(module)



- Gordon



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