Small typo in Mutable Sequence Types documentation

Hi, This bug shows up here: http://docs.python.org/library/stdtypes.html#mutable-sequence-types When it quotes s.pop([i]) I think the correct syntax for the expression is s.pop(i) Is this a typo? Or am I just interpreting it wrongly? I drew my conclusions from some rudimentary testing of what works with a temporary list s I defined. ~Darren

Hello It’s not a typo. Brackets are used to denote optional arguments in the doc. So “s.pop([1])” means “s.pop() or s.pop(i) are valid”. Whether using such confusing markup at the age of HTML and CSS is up to the reader :) Kind regards

Hello It’s not a typo. Brackets are used to denote optional arguments in the doc. So “s.pop([1])” means “s.pop() or s.pop(i) are valid”. Whether using such confusing markup at the age of HTML and CSS is up to the reader :) Kind regards
participants (2)
-
Darren Yin
-
Éric Araujo