summaryrefslogtreecommitdiff
path: root/Lib/types.py
diff options
context:
space:
mode:
authorGuido van Rossum <guido@python.org>2006-05-26 19:12:38 +0000
committerGuido van Rossum <guido@python.org>2006-05-26 19:12:38 +0000
commit65810fee5e961af07fb964252b794c67162f98ee (patch)
tree7400532588af74faa31a12c31492839ab2e06c9a /Lib/types.py
parent2018831b2b2106499a43b37e49e24f7f14154d35 (diff)
downloadcpython-git-65810fee5e961af07fb964252b794c67162f98ee.tar.gz
SF patch 1495675: Remove types.InstanceType and new.instance
(Collin Winter)
Diffstat (limited to 'Lib/types.py')
-rw-r--r--Lib/types.py6
1 files changed, 2 insertions, 4 deletions
diff --git a/Lib/types.py b/Lib/types.py
index 39812ac322..db63c96e5e 100644
--- a/Lib/types.py
+++ b/Lib/types.py
@@ -56,9 +56,7 @@ class _C:
def _m(self): pass
ClassType = type(_C)
UnboundMethodType = type(_C._m) # Same as MethodType
-_x = _C()
-InstanceType = type(_x)
-MethodType = type(_x._m)
+MethodType = type(_C()._m)
BuiltinFunctionType = type(len)
BuiltinMethodType = type([].append) # Same as BuiltinFunctionType
@@ -86,4 +84,4 @@ EllipsisType = type(Ellipsis)
DictProxyType = type(TypeType.__dict__)
NotImplementedType = type(NotImplemented)
-del sys, _f, _g, _C, _x # Not for export
+del sys, _f, _g, _C # Not for export