exception not documented for popping from mutable sequences

March 25, 2021
5:59 a.m.
Should the documentation for Mutable Sequence Types https://docs.python.org/3/library/stdtypes.html#mutable-sequence-types specify for the `pop` operation that an `IndexError` will be raised if there is no item at that index? (E.g., this could be added to note (2).) Cheers, Alan Isaac

April 2021
3:36 p.m.
Le 2021-03-25 à 13:59, Alan G. Isaac a écrit :
Should the documentation for Mutable Sequence Types https://docs.python.org/3/library/stdtypes.html#mutable-sequence-types specify for the `pop` operation that an `IndexError` will be raised if there is no item at that index? (E.g., this could be added to note (2).)
I feel it should. Would you mind opening a pull request on this? Bests, -- [Julien Palard](https://mdk.fr)
1495
Age (days ago)
1515
Last active (days ago)
1 comments
2 participants
participants (2)
-
Alan G. Isaac
-
Julien Palard