From 8ac255c167ca9c85db0b46fdc74313d30b3e1520 Mon Sep 17 00:00:00 2001 From: Manuel Krebber Date: Thu, 26 Jan 2017 14:18:40 +0100 Subject: [PATCH] Added SlotWrapperType and MethodWrapperType to the types module. --- Lib/types.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/Lib/types.py b/Lib/types.py index d8d84709e1..8cb9b9d483 100644 --- a/Lib/types.py +++ b/Lib/types.py @@ -36,6 +36,9 @@ MethodType = type(_C()._m) BuiltinFunctionType = type(len) BuiltinMethodType = type([].append) # Same as BuiltinFunctionType +SlotWrapperType = type(object.__init__) +MethodWrapperType = type(object().__str__) + ModuleType = type(sys) try: -- 2.11.0.windows.1