From 3327a2ddf1eaf8cc678f0219ba9edf7d632d1b20 Mon Sep 17 00:00:00 2001 From: Serhiy Storchaka Date: Fri, 15 Dec 2017 14:13:41 +0200 Subject: bpo-32265: Classify class and static methods of builtin types. (#4776) Add types.ClassMethodDescriptorType for unbound class methods. --- Lib/types.py | 1 + 1 file changed, 1 insertion(+) (limited to 'Lib/types.py') diff --git a/Lib/types.py b/Lib/types.py index c5976f3057..ce4652f371 100644 --- a/Lib/types.py +++ b/Lib/types.py @@ -39,6 +39,7 @@ BuiltinMethodType = type([].append) # Same as BuiltinFunctionType WrapperDescriptorType = type(object.__init__) MethodWrapperType = type(object().__str__) MethodDescriptorType = type(str.join) +ClassMethodDescriptorType = type(dict.__dict__['fromkeys']) ModuleType = type(sys) -- cgit v1.2.1