]> granicus.if.org Git - python/commitdiff
Remove extra 'types'
authorNeal Norwitz <nnorwitz@gmail.com>
Fri, 10 Jan 2003 13:52:30 +0000 (13:52 +0000)
committerNeal Norwitz <nnorwitz@gmail.com>
Fri, 10 Jan 2003 13:52:30 +0000 (13:52 +0000)
Change a couple of list -> mylist

Doc/lib/libtypes.tex

index 8ca091187fdac97a06537f90fe79cecb5b03e0a8..02ff3418aa2133af696c4ae2d257e836c5d49a13 100644 (file)
@@ -5,7 +5,7 @@
 \modulesynopsis{Names for built-in types.}
 
 
-This module defines names for types some object types that are used by
+This module defines names for some object types that are used by
 the standard Python interpreter, but not for the types defined by various
 extension modules.  Also, it does not include some of the types that
 arise during processing such the \code{listiterator} type.
@@ -35,9 +35,9 @@ the example above should be written as follows:
 \begin{verbatim}
 def delete(mylist, item):
     if isinstance(item, int):
-       del list[item]
+       del mylist[item]
     else:
-       list.remove(item)
+       mylist.remove(item)
 \end{verbatim}
 
 The module defines the following names: