[issue31085] Add option for namedtuple to name its result type automatically

R. David Murray report at bugs.python.org
Tue Aug 1 11:02:43 EDT 2017


R. David Murray added the comment:

I think the "vaguely" pretty much says it, and you are the at least the first person who has *requested* it :)

This is one of those cost-versus-benefit calculations.  It is a specialized use case, and in other specialized use cases the "automatically generated" name that makes the most sense is likely to be something different than an amalgamation of the field names.

So I vote -0.5.  I don't think even the small complication of the existing code is worth it, but I'm not strongly opposed.

----------
nosy: +r.david.murray

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue31085>
_______________________________________


More information about the Python-bugs-list mailing list