[PEAK] Using peak.model as an observer subject
Doug Quale
quale1 at charter.net
Wed Sep 1 22:48:39 EDT 2004
"Phillip J. Eby" <pje at telecommunity.com> writes:
> At 09:11 PM 9/1/04 -0500, Doug Quale wrote:
>
> >I have a Python 101 type question: What is the advantage of using
> >key = feature.attrName+'__event' instead of key = '__event'?
>
> To have an event object for each feature.
But doesn't each feature already have a separate __dict__? If we were
using the element dictionary each feature's event object would need to
be bound to a unique name. I apologize if I'm just being dense.
More information about the PEAK
mailing list