Re: How to find parent function/class of generators?

2007-09-01 Thread Lawrence D'Oliveiro
In message [EMAIL PROTECTED], J. A. Aczel wrote: Unfortunately, generator objects don't seem to include any information about the parent object or function that created them. So add your own. -- http://mail.python.org/mailman/listinfo/python-list

How to find parent function/class of generators?

2007-08-25 Thread J. A. Aczel
Hello all. I think I should explain my problem in detail, so everyone understands what I'm trying to do and why. There may be a better approach to the whole problem then I am using. I am working on a game, with most of my AI code such divided up into generator functions (really coroutines that

Re: How to find parent function/class of generators?

2007-08-25 Thread Terry Reedy
J. A. Aczel [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] | Hello all. I think I should explain my problem in detail, so everyone | understands what I'm trying to do and why. There may be a better | approach to the whole problem then I am using. | | I am working on a game, with most