Events in Python

Ivan Illarionov ivan.illarionov at gmail.com
Wed Jan 30 17:24:48 EST 2008


> Compared to what, did you measure something?

As example, instantiation of Model classes in Django (Model.__init__)
sends two signals (pre_init and post_init) - they are rarely used in
practice - but they make instantiation about two times slower. Yes, I
measured that.

The creator of Louie (Patrick K. O'Brien) himself seems to use them
only as an option that can be enabled/disabled in his projects (e.g.
Schevo) - because they are slow.



More information about the Python-list mailing list