Typo in Python Tutorial?

Alex Martelli aleaxit at yahoo.com
Tue Aug 14 16:31:28 EDT 2001


"Rupert Scammell" <rupe at metro.yak.net> wrote in message
news:79179cf5.0108141146.1ce6e2ee at posting.google.com...
> In the Python Tutorial
> (http://www.python.org/doc/current/tut/tut.html), Section 5.1, I
> noticed that the pop() method for lists is documented as:
>
> pop([i])

The brackets [] in the Python documentation are used as
meta-symbols meaning "this argument is optional".  Yes,
I agree: it CAN be quite confusing -- but it's traditional
in computer-science (I think it goes back to Backus).


Alex






More information about the Python-list mailing list