mirror of
https://github.com/python/cpython.git
synced 2025-08-22 01:35:16 +00:00
Issue #29377: Add three new wrappers to types.py (Manuel Krebber).
This commit is contained in:
parent
72268ae1c0
commit
934aba66ef
4 changed files with 49 additions and 0 deletions
|
@ -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:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue