Using an object inside a class

Michael Torrie torriem at
Mon Jan 23 15:10:44 EST 2012

On 01/23/2012 12:44 PM, Jonno wrote:
> Any ideas why I can reference foo inside the method but not in __init__?

No idea, but could you pass foo as a constructor parameter to __init__
and store it as an instance variable?

More information about the Python-list mailing list