Re: [Python-Dev] cpython: Rename contextlib.ignored() to contextlib.ignore().

2013年10月11日 09:46:37 -0700

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
_______________________________________________
Python-Dev mailing list
[email protected]
https://mail.python.org/mailman/listinfo/python-dev
Unsubscribe: 
https://mail.python.org/mailman/options/python-dev/archive%40mail-archive.com

Reply via email to