Re: [Python-ideas] Fwd: Keyword only argument on function call

2018-09-26 Thread Anders Hovmöller
> Oh, I see that you indeed implemented a macropy version at > https://github.com/boxed/macro-kwargs/blob/master/test.py > . > Other than use() vs grab() as the function name, it's the same thing. Well, except that it's import time,

Re: [Python-ideas] Fwd: Keyword only argument on function call

2018-09-26 Thread David Mertz
Oh, I see that you indeed implemented a macropy version at https://github.com/boxed/macro-kwargs/blob/master/test.py. Other than use() vs grab() as the function name, it's the same thing. Is it true that the macro version has no performance cost? So it's now perfectly straightforward to provide

Re: [Python-ideas] Fwd: Keyword only argument on function call

2018-09-26 Thread David Mertz
On Wed, Sep 26, 2018, 5:12 AM Anders Hovmöller wrote: > I saw now that I missed the biggest problem with your proposal: yet again >> you deliberately throw away errors. I'm talking about making Python code >> _less_ error prone, while you seem to want to make it _more_. >> > > Beyond the

Re: [Python-ideas] Fwd: Keyword only argument on function call

2018-09-26 Thread Anders Hovmöller
> I saw now that I missed the biggest problem with your proposal: yet again you > deliberately throw away errors. I'm talking about making Python code _less_ > error prone, while you seem to want to make it _more_. > > Beyond the belligerent tone, is there an actual POINT here? Yes, there is

Re: [Python-ideas] Fwd: Keyword only argument on function call

2018-09-26 Thread David Mertz
On Wed, Sep 26, 2018, 3:19 AM Anders Hovmöller wrote: > I saw now that I missed the biggest problem with your proposal: yet again > you deliberately throw away errors. I'm talking about making Python code > _less_ error prone, while you seem to want to make it _more_. > Beyond the belligerent

Re: [Python-ideas] Fwd: Keyword only argument on function call

2018-09-26 Thread Anders Hovmöller
David, I saw now that I missed the biggest problem with your proposal: yet again you deliberately throw away errors. I'm talking about making Python code _less_ error prone, while you seem to want to make it _more_. Anyway, I'll modify your reach() to not have the if in it that has this error

Re: [Python-ideas] Fwd: Keyword only argument on function call

2018-09-25 Thread David Mertz
On Tue, Sep 25, 2018 at 8:32 AM Anders Hovmöller wrote: > > I'm still not sure why all this focus on new syntax or convoluted IDE > enhancements. I presented a very simple utility function that accomplishes > exactly the started goal of DRY in keyword arguments. > > And I’ve already stated my

Re: [Python-ideas] Fwd: Keyword only argument on function call

2018-09-25 Thread Anders Hovmöller
> I'm still not sure why all this focus on new syntax or convoluted IDE > enhancements. I presented a very simple utility function that accomplishes > exactly the started goal of DRY in keyword arguments. And I’ve already stated my reasons for rejecting this specific solution, but I’ll