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 gruszczy
Recipients gruszczy
Date 2011-04-19.18:17:09
SpamBayes Score 1.7672348e-05
Marked as misclassified No
Message-id <1303237030.15.0.691261083336.issue11881@psf.upfronthosting.co.za>
In-reply-to
Content
I have proposed on Core Mentorship list to add get(index, default) method to list object. I was suggested to bring it up here and also told, that improving operator module could be a better solution. This is why I would like to ask, if it makes sense to work on this?

I attach a patch for list objects. I would post a link to Core Mentorship thread, but I believe the archive is private.

The original idea came from a question on StackOverflow: http://stackoverflow.com/questions/2492087/how-to-get-the-nth-element-of-a-python-list-or-a-default-if-not-available
History
Date User Action Args
2011-04-19 18:17:10gruszczysetrecipients: + gruszczy
2011-04-19 18:17:10gruszczysetmessageid: <1303237030.15.0.691261083336.issue11881@psf.upfronthosting.co.za>
2011-04-19 18:17:09gruszczylinkissue11881 messages
2011-04-19 18:17:09gruszczycreate