diff options
author | Guido van Rossum <guido@python.org> | 2017-02-01 10:55:58 -0800 |
---|---|---|
committer | Guido van Rossum <guido@python.org> | 2017-02-01 10:55:58 -0800 |
commit | 934aba66ef09e94422bcac86dd221011242e141d (patch) | |
tree | 1532b2bb1743c8677025df35f328322abe23d456 /Lib/types.py | |
parent | 72268ae1c0f4bf4071c6e70bb6a332848a132d5d (diff) | |
download | cpython-git-934aba66ef09e94422bcac86dd221011242e141d.tar.gz |
Issue #29377: Add three new wrappers to types.py (Manuel Krebber).
Diffstat (limited to 'Lib/types.py')
-rw-r--r-- | Lib/types.py | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/Lib/types.py b/Lib/types.py index d8d84709e1..1b7859e73a 100644 --- a/Lib/types.py +++ b/Lib/types.py @@ -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: |