##// END OF EJS Templates
Make event triggering robust to (un)registration....
Make event triggering robust to (un)registration. Event callbacks can register or unregister new callbacks for the same event while executing, and the previous triggering implementation allowed for event callbacks to be inadvertently skipped. The fix is to make a copy of the list of callbacks before executing any of them. With this change, the resulting semantics are simple: any callbacks registered before triggering are executed, and any new callbacks registered are only visible at the next triggering of the event. Note that this could potentially break existing callers who expected newly-appended callbacks were immediately executed. Fixes #9447. Originally based on a patch by @marksandler2.

File last commit:

r13387:3b4dba0a
r22317:68860ee5
Show More
setupegg.py
7 lines | 217 B | text/x-python | PythonLexer
vivainio
Separate eggsetup.py that handles scripts installation in the egg...
r138 #!/usr/bin/env python
Brian E Granger
Adding documentation to setup* files.
r1239 """Wrapper to run setup.py using setuptools."""
vivainio
Separate eggsetup.py that handles scripts installation in the egg...
r138
Fernando Perez
Move cleanup to main setup.py, where it belongs....
r2460 # Import setuptools and call the actual setup
vivainio
changed setup to support easy_install ipython==dev
r173 import setuptools
Thomas Kluyver
Don't use execfile in setupegg.py
r13387 with open('setup.py', 'rb') as f:
exec(compile(f.read(), 'setup.py', 'exec'))