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 Isaac Morland
Recipients Isaac Morland
Date 2017-04-08.03:04:50
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1491620691.38.0.777081738207.issue30020@psf.upfronthosting.co.za>
In-reply-to
Content
I would find it useful if the tuples returned by attrgetter functions were namedtuples.  An initial look at the code for attrgetter suggests that this would be an easy change and should make little difference to performance.  Giving a namedtuple where previously a tuple was returned seems unlikely to trigger bugs in existing code so I propose to simply change attrgetter rather than providing a parameter to specify whether or not to use the new behaviour.

Patch will be forthcoming but comments appreciated.
History
Date User Action Args
2017-04-08 03:04:51Isaac Morlandsetrecipients: + Isaac Morland
2017-04-08 03:04:51Isaac Morlandsetmessageid: <1491620691.38.0.777081738207.issue30020@psf.upfronthosting.co.za>
2017-04-08 03:04:51Isaac Morlandlinkissue30020 messages
2017-04-08 03:04:50Isaac Morlandcreate