On Tue, Jun 12, 2012 at 4:07 AM, Bod Soutar <[email protected]> wrote:
> I confess I don't know anything about classes really so I'm probably doing
> something stupid, but can anyone point me in the right direction?
A smaller example:
def foo():
mydict = {}
bar()
print mydict
def bar():
mydict[3] = 5
Why do you suppose mydict is not visible from bar?
This is the same reason that cf is not visible from methods on your class.
-- Devin
_______________________________________________
Tutor maillist - [email protected]
To unsubscribe or change subscription options:
http://mail.python.org/mailman/listinfo/tutor