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

Antoine Pitrou solipsis at pitrou.net
Tue Oct 15 14:27:19 CEST 2013


Le Tue, 15 Oct 2013 22:05:41 +1000, Nick Coghlan <ncoghlan at gmail.com> a écrit :

On 15 October 2013 13:12, Glenn Linderman <v+python at g.nevcal.com> wrote: > Of course, if the name were changed to be accurate, or the feature > made less prone to misuse, then maybe it would terminate.

I've come to the conclusion it makes sense to rename it from ignore to suppress, since that's the term already used for this operation in the rest of the context management docs: http://bugs.python.org/issue19266

"suppress" and/or "trap" (which I believe is a common name for such operation).

Regards

Antoine.



More information about the Python-Dev mailing list