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

GitHub noreply at github.com
Fri Jun 9 11:21:49 EDT 2017


  Branch: refs/heads/master
  Home:   https://github.com/python/cpython
  Commit: 57161aac5eb9bcb0b43e551a1937ff0a84c1ec52
      https://github.com/python/cpython/commit/57161aac5eb9bcb0b43e551a1937ff0a84c1ec52
  Author: Jelle Zijlstra <jelle.zijlstra at gmail.com>
  Date:   2017-06-09 (Fri, 09 Jun 2017)

  Changed paths:
    M Lib/contextlib.py
    M Lib/test/test_contextlib.py
    M Misc/NEWS

  Log Message:
  -----------
  bpo-30266: support "= None" pattern in AbstractContextManager (#1448)

contextlib.AbstractContextManager now supports anti-registration
by setting __enter__ = None or __exit__ = None, following the pattern
introduced in bpo-25958.




More information about the Python-checkins mailing list