problem with variable and function

Jason Tackaberry tack at
Sun Mar 14 19:40:55 CET 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.


More information about the Python-list mailing list