I'm trying to initialize a field to an empty list in the constructor for a class.
This is what I have in the class:
container =  def __init__(self): self.container = container
I can't figure out what the correct syntax is here. I will call it later like this:
Also, when I call the constructor for it I have this:
container = myClass()
Am I way off base here? I'm getting this error:
NameError: global name 'container' is not defined
Any ideas here?
This post has been edited by jbedo465: 01 October 2011 - 01:46 PM