Name Error

Fredrik Lundh fredrik at effbot.org
Wed Jan 3 16:45:28 EST 2001


Curtis Jensen wrote:
> Below is a bit from my Python interpreter.  The "stored_data" variable
> is a global list.  It should be seen from within the "send_data"
> function.  However, I get a NameError here.  I ran it with pdb; pdb is
> able to output the "stored_data" variable from within the "send_data"
> function.  However, it still gives a NameError.
>
> "stored_data" works in all of my other functions except this one?  Any
> ideas?

Python 1.5.2?  do you by any chance assign to "stored_data" in
that function?

(if you can, please post the source for send_data...)

cheers /F





More information about the Python-list mailing list