mirror of
https://github.com/python/cpython.git
synced 2025-08-04 08:59:19 +00:00
Removed more types from the types module
This commit is contained in:
parent
043c8f866d
commit
0db38532b3
3 changed files with 3 additions and 9 deletions
|
@ -20,7 +20,6 @@ GeneratorType = type(_g())
|
|||
|
||||
class _C:
|
||||
def _m(self): pass
|
||||
ClassType = type
|
||||
MethodType = type(_C()._m)
|
||||
|
||||
BuiltinFunctionType = type(len)
|
||||
|
@ -36,8 +35,6 @@ except TypeError:
|
|||
FrameType = type(tb.tb_frame)
|
||||
tb = None; del tb
|
||||
|
||||
DictProxyType = type(type.__dict__)
|
||||
|
||||
# Extension types defined in a C helper module. XXX There may be no
|
||||
# equivalent in implementations other than CPython, so it seems better to
|
||||
# leave them undefined then to set them to e.g. None.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue