On 4/26/05, Jim Jewett <jimjjewett at gmail.com> wrote: > I'm not sure I understand this. The preferred way would be > to just stick the keyword before the call. Using 'collapse', it > would look like: > > def foo(b): > c=a > def bar(): > a="a1" > collapse foo("b1") > print b, c # prints "b1", "a1" > a="a2" > foo("b2") # Not collapsed this time > print b, c # still prints "b1", "a1" *YUK* I spent a long time staring at this and wondering "where did b come from?" You'd have to come up with a very compelling use case to get me to like this. Paul.
RetroSearch is an open source project built by @garambo | Open a GitHub Issue
Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo
HTML:
3.2
| Encoding:
UTF-8
| Version:
0.7.4