[Python-Dev] cpython: Rename contextlib.ignored() to contextlib.ignore(). (original) (raw)
Alexander Belopolsky alexander.belopolsky at gmail.com
Sun Oct 13 20:19:46 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 ]
On Sun, Oct 13, 2013 at 2:09 PM, R. David Murray <rdmurray at bitdance.com> wrote:
with replaces try/finally, not try/except.
with ignore(..) is different. This is one of the things that I like about it - a demonstration of a context manager that replaces try/except.
- 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 ]