[Python-Dev] cpython: Rename contextlib.ignored() to contextlib.ignore(). (original) (raw)
Victor Stinner victor.stinner at gmail.com
Sun Oct 13 17:05:39 CEST 2013
- Previous message: [Python-Dev] cpython: Rename contextlib.ignored() to contextlib.ignore().
- Next message: [Python-Dev] cpython: Rename contextlib.ignored() to contextlib.ignore().
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
2013/10/13 Ethan Furman <ethan at stoneleaf.us>:
True, but Raymond's example of
with ignore(OSError): os.remove('somefile')
And what about:
with ignore(OSError): os.remove('file1') os.remove('file2')
?
Victor
- Previous message: [Python-Dev] cpython: Rename contextlib.ignored() to contextlib.ignore().
- Next message: [Python-Dev] cpython: Rename contextlib.ignored() to contextlib.ignore().
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]