[Python-ideas] Re: List get/pop

2023-06-16 Thread Dom Grigonis
Just to add. I think same methods would be useful to have for strings as well. > On 14 Jun 2023, at 23:28, Dom Grigonis wrote: > > Yes, > 1. adding keyword argument for `pop` > 2. implementing `get` method as it doesn’t exist at all > * This wouldn’t break anything for sure. Well… theoreticall

[Python-ideas] Re: List get/pop

2023-06-16 Thread Christopher Barker
On Fri, Jun 16, 2023 at 4:20 AM Dom Grigonis wrote: > Just to add. I think same methods would be useful to have for strings as > well. > strings are immutable, so `pop` is out. As for `get` -- it *could* be added to the sequence ABC, but very much doubt that will ever happen -- adding something