On Tue, 18 Jul 2017 05:44 am, Rob Gaddi wrote:

> That said, it sure feels (as someone who hasn't tried it) like there's a
> straightforward namedtuple implementation that calls type() directly
> rather than having to exec.  I know that exec-gunshyness is overblown,
> but is there a simple answer as to why it's necessary here?

It's very hard to write __new__ with a sensible parameter list without exec.



-- 
Steve
“Cheer up,” they said, “things could be worse.” So I cheered up, and sure
enough, things got worse.

-- 
https://mail.python.org/mailman/listinfo/python-list

Reply via email to