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/2008-January/076089.html below:

[Python-Dev] PEP: Post import hooks

[Python-Dev] PEP: Post import hooks [Python-Dev] PEP: Post import hooksChristian Heimes lists at cheimes.de
Fri Jan 11 01:47:38 CET 2008
Phillip J. Eby wrote:
> At 11:45 PM 1/10/2008 +0100, Christian Heimes wrote:
>> In my version a hook is immediately called when the the registry value
>> is set to None. When a hook is registered for a module during the
>> execution of the callback then the hook is fired directly and not after
>> the existing hooks are called. Is this a problem for you?
> 
> Yes, because it violates the invariant that hooks for a given module 
> are called in the same order that they were registered in.

Please check the changes and the new unit test in r59902 (
http://svn.python.org/view?rev=59902&view=rev ). Are you satisfied with
the ordering or do you think I should queue the hooks for already loaded
modules?

Christian

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