Re: Is this type of forward referencing possible?

2009-03-15 Thread Kooks are people too
On Mar 15, 9:22 am, Miles wrote: >(I > suspect the OP neglected to point out that A and B likely both inherit > from db.Model). > -Miles yes, I did neglect to state that A and B inherit from db.Model. -- http://mail.python.org/mailman/listinfo/python-list

Is this type of forward referencing possible?

2009-03-15 Thread Kooks are people too
If I try this: class A: someType = B class B: anotherType = A I get: : name 'B' is not defined args = ("name 'B' is not defined",) message = "name 'B' is not defined" Presumably because I'm instantiating an instance of a type object (B) that doesn't exist yet. Is there any