summaryrefslogtreecommitdiff
path: root/Lib/types.py
diff options
context:
space:
mode:
authorSerhiy Storchaka <storchaka@gmail.com>2017-12-15 14:13:41 +0200
committerGitHub <noreply@github.com>2017-12-15 14:13:41 +0200
commit3327a2ddf1eaf8cc678f0219ba9edf7d632d1b20 (patch)
treed5913c7f893cc889b6a0b10142a66a01c709ac74 /Lib/types.py
parent2e3f5701858d1fc04caedefdd9a8ea43810270d2 (diff)
downloadcpython-git-3327a2ddf1eaf8cc678f0219ba9edf7d632d1b20.tar.gz
bpo-32265: Classify class and static methods of builtin types. (#4776)
Add types.ClassMethodDescriptorType for unbound class methods.
Diffstat (limited to 'Lib/types.py')
-rw-r--r--Lib/types.py1
1 files changed, 1 insertions, 0 deletions
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)