New submission from Filip Gruszczyński <grusz...@gmail.com>: 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 ---------- components: Interpreter Core files: list.get.patch keywords: patch messages: 134087 nosy: gruszczy priority: normal severity: normal status: open title: Add list.get type: feature request versions: Python 3.3 Added file: http://bugs.python.org/file21726/list.get.patch _______________________________________ Python tracker <rep...@bugs.python.org> <http://bugs.python.org/issue11881> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com