I'd like to set up something like this:
a=0
class b:
def__init__(self, foo):
self.foo = foo
def create():
global a
a=a+1
a=b("FOO")
Where the number 1 will define the instance (I'm not sure if define is the write word, whatever you put before the equals sign when your creating an instance)
The problem is, I can't. Obviously a would identify the instance instead of 1. I tried using dictionaries, but again the computer took it leterally - d{x}
was the identity, not 1. Any suggestions?