File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 99This module defines names for some object types that are used by the standard
1010Python interpreter, but not for the types defined by various extension modules.
1111Also, it does not include some of the types that arise during processing such as
12- the ``listiterator `` type. It is safe to use ``from types import * `` --- the
13- module does not export any names besides the ones listed here. New names
14- exported by future versions of this module will all end in ``Type ``.
12+ the ``listiterator `` type. New names exported by future versions of this module
13+ will all end in ``Type ``.
1514
1615Typical use is for functions that do different things depending on their
1716argument types, like the following::
1817
19- from types import *
18+ from types import IntType
2019 def delete(mylist, item):
2120 if type(item) is IntType:
2221 del mylist[item]
You can’t perform that action at this time.
0 commit comments