Small typo in Mutable Sequence Types documentation

April 26, 2010
9:15 p.m.
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

April 2010
6:52 p.m.
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
5417
Age (days ago)
5418
Last active (days ago)
1 comments
2 participants
participants (2)
-
Darren Yin
-
Éric Araujo