Small typo in Mutable Sequence Types documentation
27 Apr
2010
27 Apr
'10
2:45 a.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
28 Apr
28 Apr
12:22 a.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
5106
Age (days ago)
5107
Last active (days ago)
1 comments
2 participants
participants (2)
-
Darren Yin
-
Éric Araujo