Yet another question about class property.

Mike Kazantsev mike_kazantsev at
Wed May 20 05:11:39 EDT 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 //

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 205 bytes
Desc: OpenPGP digital signature
URL: <>

More information about the Python-list mailing list