[Python-Dev] [Python-checkins] r72995 - in python/branches/py3k: Doc/library/contextlib.rst Doc/whatsnew/3.1.rst Lib/contextlib.py Lib/test/test_contextlib.py Misc/NEWS

Eric Smith eric at trueblade.com
Fri May 29 00:39:11 CEST 2009


raymond.hettinger wrote:
> Author: raymond.hettinger
> Date: Fri May 29 00:20:03 2009
> New Revision: 72995
> 
> Log:
> Deprecate contextlib.nested().  The with-statement now provides this functionality directly.
> 
> Modified:
>    python/branches/py3k/Doc/library/contextlib.rst
>    python/branches/py3k/Doc/whatsnew/3.1.rst
>    python/branches/py3k/Lib/contextlib.py
>    python/branches/py3k/Lib/test/test_contextlib.py
>    python/branches/py3k/Misc/NEWS

Shouldn't the test cases exist as long as contextlib.nested still 
exists? We want to make sure it works, after all. I think they should be 
removed only when .nested is itself deleted.

Eric.



More information about the Python-Dev mailing list