This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author rhettinger
Recipients ezio.melotti, hkrishnan, rhettinger
Date 2010-04-16.05:40:28
SpamBayes Score 0.0008998359
Marked as misclassified No
Message-id <1271396431.48.0.0334960258922.issue8415@psf.upfronthosting.co.za>
In-reply-to
Content
Sorry, this was by design.  There were two possible constructors, one using positional arguments or keywords and one from an iterable.  Either one could have been the main constructor.  A number of use cases favored the one that we choose.  It was a good decision, but not a perfect one.

To construct a namedtuple directly from an existing tuple, either use:
  ntuple(*t)
or
  ntuple._make(t)

The class is functioning as designed, documented, and tested.  There is no way to change it without breaking most existing uses.  Closing as rejected.
History
Date User Action Args
2010-04-16 05:40:32rhettingersetrecipients: + rhettinger, ezio.melotti, hkrishnan
2010-04-16 05:40:31rhettingersetmessageid: <1271396431.48.0.0334960258922.issue8415@psf.upfronthosting.co.za>
2010-04-16 05:40:29rhettingerlinkissue8415 messages
2010-04-16 05:40:28rhettingercreate