[Python-Dev] cpython: Rename contextlib.ignored() to contextlib.ignore(). (original) (raw)
Barry Warsaw barry at python.org
Fri Oct 11 18:43:57 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 Oct 11, 2013, at 06:27 PM, Georg Brandl wrote:
Maybe to fit in with other verb-like APIs used as context managers: it's open() not opened().
open() predates context managers, but maybe we need a new convention.
with ignore(FileNotFoundError):
vs
with ignored(FileNotFoundError):
To me anyway, the latter sounds better.
-Barry
- 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 ]