Issue #29377: Add three new wrappers to types.py (Manuel Krebber).

This commit is contained in:
Guido van Rossum 2017-02-01 10:55:58 -08:00
parent 72268ae1c0
commit 934aba66ef
4 changed files with 49 additions and 0 deletions

View file

@ -36,6 +36,10 @@ MethodType = type(_C()._m)
BuiltinFunctionType = type(len)
BuiltinMethodType = type([].append) # Same as BuiltinFunctionType
SlotWrapperType = type(object.__init__)
MethodWrapperType = type(object().__str__)
MethodDescriptorType = type(str.join)
ModuleType = type(sys)
try: