[New-bugs-announce] [issue11881] Add list.get

Filip Gruszczyński report at bugs.python.org
Tue Apr 19 20:17:10 CEST 2011


New submission from Filip Gruszczyński <gruszczy at 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 <report at bugs.python.org>
<http://bugs.python.org/issue11881>
_______________________________________


More information about the New-bugs-announce mailing list