Some language proposals.

Jacek Generowicz jacek.generowicz at cern.ch
Wed Feb 25 02:59:22 EST 2004


Antoon Pardon <apardon at forel.vub.ac.be> writes:

> The solution that I heard proposed was to use
> a mutable variable. Something like
> 
> 
> def fun_1():
> 
>   a = [some_value]
> 
>   def fun_2();
> 
>     a[0] = new_value

Could somebody point me to an explanation of why closures are broken
in this way in the first place, please ?



More information about the Python-list mailing list