On 3 June 2016 at 07:05, Steven D'Aprano steve@pearwood.info wrote:
I'm objecting to it because it needlessly doubles the number of callables needed. Instead of there being one namedtuple function, you need two: a single parameter version, and a wrapper that performs whatever magic is needed to crowbar the multiple parameter version into the constraint of a single parameter version.
Thanks for clarifying your objection, I hadn't really understood what you had an issue with until now.
OK, so the question is between needing extra callables, vs a somewhat "magical" process for injecting an argument.
We still differ on which is the more acceptable answer, but I'm happy to offer both up for consideration, now that the differences are clear.
Paul