Re: Events in Python

2008-01-30 Thread alex23
Hey Si, The PEAK lib Trellis (http://peak.telecommunity.com/DevCenter/Trellis) is worth checking out. I haven't had a chance to use it yet but am keen to. There are several other modules that may apply, I recommend searching on the Python Package Index (http://pypi.python.org/pypi), for "observer

Re: Events in Python

2008-01-30 Thread Ivan Illarionov
> 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 (Patr

Re: Events in Python

2008-01-30 Thread Bjoern Schliessmann
Ivan Illarionov wrote: > Note that all those signals/events are very slow in Python. Compared to what, did you measure something? Regards, Björn -- BOFH excuse #38: secretary plugged hairdryer into UPS -- http://mail.python.org/mailman/listinfo/python-list

Re: Events in Python

2008-01-30 Thread Ivan Illarionov
You may need Louie (http://louie.berlios.de) Django (http://djangoproject.com) does the same in django.dispatch - and Django version works about 33% faster. Note that all those signals/events are very slow in Python. --Ivan -- http://mail.python.org/mailman/listinfo/python-list

Events in Python

2008-01-30 Thread Simon Pickles
Hi, I have a stackless python app, using twisted in parts (.internet and .adbapi). I need a little help getting pythonic after years of c++ hell. I'd like to use a system of events and observers, like c++ boost.signal. I'd like to be able to subscribe multiple callbacks to a single function a

Re: Events in Python?

2006-04-27 Thread Ben C
On 2006-04-26, nikie <[EMAIL PROTECTED]> wrote: > [EMAIL PROTECTED] wrote: > >> Here is another non-pythonic question from the Java Developer. (I beg >> for forgiveness...) >> >> Does Python have a mechanism for events/event-driven programming? >> >> I'm not necessarily talking about just GUIs eith

Re: Events in Python?

2006-04-27 Thread Ben Sizer
[EMAIL PROTECTED] wrote: > It seems like Python doesn't have a "standard" implementation of an > event or messaging system. That is really what I was curious about. I > wanted to check before I implemented something of my own. What are you comparing it to? Does Java have standard event or messagin

Re: Events in Python?

2006-04-26 Thread Philippe Martin
Besides the other anwsers, you might want to check the signal module. Regards, Philippe [EMAIL PROTECTED] wrote: > Here is another non-pythonic question from the Java Developer. (I beg > for forgiveness...) > > Does Python have a mechanism for events/event-driven programming? > > I'm not ne

Re: Events in Python?

2006-04-26 Thread redefined . horizons
Thank you for all of the responses. I will check out the Traits link. It looked very interesting. It seems like Python doesn't have a "standard" implementation of an event or messaging system. That is really what I was curious about. I wanted to check before I implemented something of my own. Tha

Re: Events in Python?

2006-04-26 Thread nikie
[EMAIL PROTECTED] wrote: > Here is another non-pythonic question from the Java Developer. (I beg > for forgiveness...) > > Does Python have a mechanism for events/event-driven programming? > > I'm not necessarily talking about just GUIs either, I'm interested in > using events for other parts of a

Re: Events in Python?

2006-04-26 Thread John Hunter
> "redefined" == redefined horizons <[EMAIL PROTECTED]> writes: redefined> Here is another non-pythonic question from the Java redefined> Developer. (I beg for forgiveness...) redefined> Does Python have a mechanism for events/event-driven redefined> programming? The enthough

Re: Events in Python?

2006-04-26 Thread Avizoa
[EMAIL PROTECTED] wrote: > Here is another non-pythonic question from the Java Developer. (I beg > for forgiveness...) > > Does Python have a mechanism for events/event-driven programming? > > I'm not necessarily talking about just GUIs either, I'm interested in > using events for other parts of a

Re: Events in Python?

2006-04-26 Thread Gregor Horvath
[EMAIL PROTECTED] schrieb: > > Does Python have a mechanism for events/event-driven programming? > Probably this is something for you: http://twistedmatrix.com/trac/ -- Servus, Gregor http://www.gregor-horvath.com -- http://mail.python.org/mailman/listinfo/python-list

Re: Events in Python?

2006-04-26 Thread Diez B. Roggisch
[EMAIL PROTECTED] wrote: > Here is another non-pythonic question from the Java Developer. (I beg > for forgiveness...) > > Does Python have a mechanism for events/event-driven programming? > > I'm not necessarily talking about just GUIs either, I'm interested in > using events for other parts of

Events in Python?

2006-04-26 Thread redefined . horizons
Here is another non-pythonic question from the Java Developer. (I beg for forgiveness...) Does Python have a mechanism for events/event-driven programming? I'm not necessarily talking about just GUIs either, I'm interested in using events for other parts of an application as well. If there isn't