diff options
author | Serhiy Storchaka <storchaka@gmail.com> | 2017-12-15 14:13:41 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-12-15 14:13:41 +0200 |
commit | 3327a2ddf1eaf8cc678f0219ba9edf7d632d1b20 (patch) | |
tree | d5913c7f893cc889b6a0b10142a66a01c709ac74 /Lib/types.py | |
parent | 2e3f5701858d1fc04caedefdd9a8ea43810270d2 (diff) | |
download | cpython-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.py | 1 |
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) |