"Michele Simionato" <[EMAIL PROTECTED]> writes: > jayessay wrote: > > "Michele Simionato" <[EMAIL PROTECTED]> writes: > > > > > Ken Tilton wrote: > > > > I was not thinking about the thread issue (of which I know little). The > > > > big deal for Cells is the dynamic bit: > > > > > > > > (let ((*dependent* me)) > > > > (funcall (rule me) me)) > > > > > > > > Then if a rule forces another cell to recalculate itself, *dependent* > > > > gets rebound and (the fun part) reverts back to the original dependent > > > > as soon as the scope of the let is exited. > > > > > > Python 2.5 has a "with" statement (yes, the name is Lispish on purpose) > > > that could be used to implement this. See > > > http://www.python.org/dev/peps/pep-0343 > > > > You are mistaken. In particular, VAR doesn't have dynamic scope. > > > > I said "it could be used to implement this", and since in a previous > post on mine in this > same thread I have shown how to implement thread local variables in > Python I figured > out people would be able to do the exercise for themselves.
I was saying that you are mistaken in that pep-0343 could be used to implement dynamically scoped variables. That stands. /Jon -- 'j' - a n t h o n y at romeo/charley/november com -- http://mail.python.org/mailman/listinfo/python-list