[lnkForumImage]
TotalShareware - Download Free Software

Confronta i prezzi di migliaia di prodotti.
Asp Forum
 Home | Login | Register | Search 


 

Forums >

comp.lang.python

Re: problem with variable and function

Jason Tackaberry

3/14/2010 6:41:00 PM

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.