[Python-ideas] get() method for list and tuples

Chris Angelico rosuav at gmail.com
Fri Mar 3 13:38:46 EST 2017


On Sat, Mar 4, 2017 at 5:29 AM, Ed Kellett <edk141 at gmail.com> wrote:
> I've often looked for something like a list.get, been frustrated, and used
> one (chosen pretty much at random) of the ugly hacks presented in this
> thread. I'd be surprised if I'm the only one.

Can you show us some real-world code that would benefit from
list.get()? That would make the discussion more productive, I think.

ChrisA


More information about the Python-ideas mailing list