summaryrefslogtreecommitdiff
path: root/Lib/types.py
diff options
context:
space:
mode:
Diffstat (limited to 'Lib/types.py')
-rw-r--r--Lib/types.py14
1 files changed, 3 insertions, 11 deletions
diff --git a/Lib/types.py b/Lib/types.py
index 65b70f7803..ab354d1a71 100644
--- a/Lib/types.py
+++ b/Lib/types.py
@@ -34,16 +34,8 @@ except TypeError:
FrameType = type(tb.tb_frame)
tb = None; del tb
-# 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.
-try:
- import _types
-except ImportError:
- pass
-else:
- GetSetDescriptorType = type(_types.Helper.getter)
- MemberDescriptorType = type(_types.Helper.member)
- del _types
+# For Jython, the following two types are identical
+GetSetDescriptorType = type(FunctionType.__code__)
+MemberDescriptorType = type(FunctionType.__globals__)
del sys, _f, _g, _C, # Not for export