From: Steven D. A. <st...@ne...> - 2003-09-28 07:11:08
|
On 9/24/03 2:21 AM, "Rimon Barr" <ba...@cs...> wrote: > However, the locals dictionary is read-only. Interesting to note -- not sure if it is helpful or practical to use, but at least interesting -- Jython does not treat locals() in a function as read-only. In other words, in Jython: def foo(): x = 1 locals()[ 'x' ] = 2 print x ...will print '2'. (http://www.jython.org/docs/differences.html) steve |