[Python-checkins] [python/cpython] 753422: bpo-30266: support "= None" pattern in AbstractCon...

GitHub noreply at github.com
Fri Jun 9 23:36:29 EDT 2017


 Branch: refs/heads/3.6
 Home: https://github.com/python/cpython
 Commit: 753422f6e32e13d96319b090788f0474f1e21fc4
 https://github.com/python/cpython/commit/753422f6e32e13d96319b090788f0474f1e21fc4
 Author: Mariatta <Mariatta at users.noreply.github.com>
 Date: 2017年06月09日 (2017年6月09日)
 Changed paths:
 M Lib/contextlib.py
 M Lib/test/test_contextlib.py
 M Misc/NEWS
 Log Message:
 -----------
 bpo-30266: support "= None" pattern in AbstractContextManager (GH-1448) (GH-2054)
contextlib.AbstractContextManager now supports anti-registration
by setting __enter__ = None or __exit__ = None, following the pattern
introduced in bpo-25958..
(cherry picked from commit 57161aac5eb9bcb0b43e551a1937ff0a84c1ec52)


More information about the Python-checkins mailing list

AltStyle によって変換されたページ (->オリジナル) /