Can we make a local variable in a function as global variable???
collinstocks at gmail.com
Thu Apr 5 20:30:33 CEST 2007
As for me, I find this problem annoying, but easy to solve. My solution is:
To set global variable spam to 4, I say:
This always works, and is much more convenient than:
>>> global spam
and then worry about local variables also named spam.
On 5 Apr 2007 02:19:34 -0700, sairam <sai438 at gmail.com> wrote:
> I have some local variables defined in one method and Can I make those
> variables as global variables? If so , can any one explain me how can
> I do that
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the Python-list