mirror of
https://github.com/python/cpython.git
synced 2025-08-28 04:35:02 +00:00
Merge of descr-branch back into trunk.
This commit is contained in:
parent
52d55a3926
commit
6d6c1a35e0
57 changed files with 6923 additions and 1309 deletions
12
Lib/types.py
12
Lib/types.py
|
@ -7,7 +7,8 @@ from __future__ import generators
|
|||
import sys
|
||||
|
||||
NoneType = type(None)
|
||||
TypeType = type(NoneType)
|
||||
TypeType = type
|
||||
ObjectType = object
|
||||
|
||||
IntType = type(0)
|
||||
LongType = type(0L)
|
||||
|
@ -22,8 +23,8 @@ UnicodeType = type(u'')
|
|||
BufferType = type(buffer(''))
|
||||
|
||||
TupleType = type(())
|
||||
ListType = type([])
|
||||
DictType = DictionaryType = type({})
|
||||
ListType = list
|
||||
DictType = DictionaryType = dictionary
|
||||
|
||||
def _f(): pass
|
||||
FunctionType = type(_f)
|
||||
|
@ -71,4 +72,9 @@ except TypeError:
|
|||
SliceType = type(slice(0))
|
||||
EllipsisType = type(Ellipsis)
|
||||
|
||||
DictIterType = type(iter({}))
|
||||
SequenceIterType = type(iter([]))
|
||||
FunctionIterType = type(iter(lambda: 0, 0))
|
||||
DictProxyType = type(TypeType.__dict__)
|
||||
|
||||
del sys, _f, _C, _x # Not for export
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue