On 17 Jul 2019, at 21:00, Andrew Barnert
wrote: On Jul 17, 2019, at 10:45, Anders Hovmöller
wrote: On 17 Jul 2019, at 19:08, Andrew Barnert
wrote: On Jul 15, 2019, at 05:25, Anders Hovmöller
wrote: What is positional?
I didn’t come up with the plot example, so I don’t know the reason it took two functions. But let’s say they represent functions for the y and z values respectively for each x …
So, how does plot know which argument is y and which is a? It can’t be by the names, because the names are stringified lambda expressions.
The stringification produces two different strings. One has one * while the other has two.
Right, of course it can tell they’re different strings, but how can it tell which string is the name of the y function and which is the name of the z function? There’s nothing about having one * vs. two that tells you which one is y and which is z. And of course there’s nothing about the values, either. If there’s no way to tell based on the names, and no way to tell based on the values, what way can there be to tell, except for the position of the name-value pairs?
Ah. Now I'm with you. Yes, for the purpose of the graph you'd have to respect the order of the kwargs, but that has been guaranteed since 3.5 so I don't see what the objection is really.