[issue19640] Drop _source attribute of namedtuple

Éric Araujo report at bugs.python.org
Fri Nov 22 21:55:34 CET 2013


Éric Araujo added the comment:

In a first version namedtuple had an argument (named echo or verbose) that would cause the source code to be printed out, for use at the interactive prompt.  Raymond later changed it to a _source attribute, more easy to work with than printed output.

About the other question you asked on the ML (why isn’t there a base NamedTuple class to inherit): this has been discussed on python-ideas IIRC, and people have written ActiveState recipes for that idea.  It should be easy to find the ML archive links from the ActiveState posts.

----------

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


More information about the Python-bugs-list mailing list