[Python-ideas] Re: Optional keyword arguments

2020-05-31 Thread Stephen J. Turnbull
David Mertz writes: > On Fri, May 29, 2020 at 1:12 PM Alex Hall wrote: > > > def foo(a=17, b=42,, x=delayed randint(0,9), y=delayed randrange(1,100)): > > > >> if something: > >> # The simple case is realizing a direct delayed > >> val = concretize x > >> elif

[Python-ideas] Re: Optional keyword arguments

2020-05-31 Thread Stephen J. Turnbull
Greg Ewing writes: > You've probably never seen the one I'm thinking of. It's a > proprietary, vaguely VB-like language used for scripting a > particular application. It doesn't work like Lua, but it > does have scoping rules that can lead to some surprising > results. By contrast, Lisps