Django

Code

root/django/trunk/django/dispatch/__init__.py

Revision 8223, 269 bytes (checked in by jacob, 4 months ago)

Major refactoring of django.dispatch with an eye towards speed. The net result is that signals are up to 90% faster.

Though some attempts and backwards-compatibility were made, speed trumped compatibility. Thus, as usual, check BackwardsIncompatibleChanges for the complete list of backwards-incompatible changes.

Thanks to Jeremy Dunck and Keith Busell for the bulk of the work; some ideas from Brian Herring's previous work (refs #4561) were incorporated.

Documentation is, sigh, still forthcoming.

Fixes #6814 and #3951 (with the new dispatch_uid argument to connect).

  • Property svn:eol-style set to native
Line 
1 """Multi-consumer multi-producer dispatching mechanism
2
3 Originally based on pydispatch (BSD) http://pypi.python.org/pypi/PyDispatcher/2.0.1
4 See license.txt for original license.
5
6 Heavily modified for Django's purposes.
7 """
8
9 from django.dispatch.dispatcher import Signal
Note: See TracBrowser for help on using the browser.