[New-bugs-announce] [issue35262] There should be a list.get just like dict.get

Abram Clark report at bugs.python.org
Thu Nov 15 20:44:22 EST 2018


New submission from Abram Clark <abram at easypost.com>:

Just like with dictionaries, it is convenient to index lists without catching exceptions. Adding an import for this most basic functionality is slightly tedious, and I can't imagine it would break anything to add a list.get method.

----------
messages: 329978
nosy: Abram Clark
priority: normal
severity: normal
status: open
title: There should be a list.get just like dict.get
type: enhancement
versions: Python 3.8

_______________________________________
Python tracker <report at bugs.python.org>
<https://bugs.python.org/issue35262>
_______________________________________


More information about the New-bugs-announce mailing list