In article <[EMAIL PROTECTED]>, "Hendrik van Rooyen" <[EMAIL PROTECTED]> writes: |> > |> > Hmm. The extensions documentation describes how to add instance |> > members to a class (PyMemberDef), but I want to add a class member. |> > Yes, this is constant for all instances of the class. |> |> When? - at time of defining base class, between class definition and |> first instance, at time of creating instance, or after instance creation? |> |> After instance creation is not easy, I think you would have to add |> to each instance...
Oh, one of the first two - I am not bonkers! Changing a class after instance creation is guaranteed to cause confusion, if nothing else. Regards, Nick Maclaren. -- http://mail.python.org/mailman/listinfo/python-list