problem with variable and function
Jason Tackaberry
tack at urandom.ca
Sun Mar 14 14:40:55 EDT 2010
Hi Alex,
On Sun, 2010-03-14 at 14:26 -0400, Alex Hall wrote:
> Reverse it, though:
>
> def myFunc():
> myOtherVar=myVar
>
> myVar={
> 1:myFunc
> }
>
> and the function myFunc does not see the dictionary.
The code you provided works just fine (as one would expect). If you can
provide an example doesn't work, we should be able to explain why and
provide advice.
Cheers,
Jason.
More information about the Python-list
mailing list