mirror of
https://github.com/python/cpython
synced 2026-09-29 09:40:29 +03:00
Remove extra 'types'
Change a couple of list -> mylist
This commit is contained in:
parent
6fe1299b09
commit
3cb68a2512
1 changed files with 3 additions and 3 deletions
|
|
@ -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:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue