Yet another question about class property.

Mike Kazantsev mike_kazantsev at fraggod.net
Wed May 20 11:11:39 CEST 2009


Jim Qiu wrote:
> Hi everyone,
> 
> Following is the code i am reading, i don't see anywhere the declaration of
> Message.root object,
> Where is it from?
...

Prehaps it gets assigned by the parent itself?
Like this:

  def spawn_child(self):
    child = Message()
    child.root = self

-- 
Mike Kazantsev // fraggod.net

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 205 bytes
Desc: OpenPGP digital signature
URL: <http://mail.python.org/pipermail/python-list/attachments/20090520/29f8d374/attachment.sig>


More information about the Python-list mailing list