[Python-ideas] Keyword only argument on function call
Jonathan Fine
jfine2358 at gmail.com
Wed Sep 12 10:58:25 EDT 2018
Hi Steve
Thank you for your prompt reply. You wrote:
> I'll confess that I couldn't work out what Steve B's code snippet was
> supposed to mean:
> params = {k:v for k,v in __params__ if k in parent.a_method.keys()}
The Zen of Python (which might not apply here) says:
In the face of ambiguity, refuse the temptation to guess.
Now that we have more clarity, Steve D'A, please let me ask you a
direct question.
My question is about correctly implementing of __params__ as a keyword
identifier, with semantics as in Steve B's code snippet above.
Here's my question: Do you think implementing this requires the
avoidance of a race hazard? Or perhaps it can be done, as I suggested,
entirely within the execution frame on the stack?
--
Jonathan
More information about the Python-ideas
mailing list