]> granicus.if.org Git - python/commit
bpo-33265: use an actual method instead of a method-like function in ExitStack (GH...
authorjdemeyer <jdemeyer@cage.ugent.be>
Fri, 13 Apr 2018 12:22:46 +0000 (14:22 +0200)
committerNick Coghlan <ncoghlan@gmail.com>
Fri, 13 Apr 2018 12:22:46 +0000 (22:22 +1000)
commit23ab5ee667a9b29014f6f7f01797c611f63ff743
tree9e55defd8958fab8dad3a865d70447eca9633fc5
parentffa2c3e2c40acae07aca5b77f2c0e8c14a00438d
bpo-33265: use an actual method instead of a method-like function in ExitStack (GH-6456)

`MethodType` has the exact semantics that `ExitStack` needs,
so we can avoid creating a Python level closure.
Lib/contextlib.py
Misc/NEWS.d/next/Library/2018-04-13-08-12-50.bpo-33265.KPQRk0.rst [new file with mode: 0644]