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

Baptiste Carvello devel at baptiste-carvello.net
Tue Oct 15 09:14:43 CEST 2013


Le 15/10/2013 05:12, Glenn Linderman a écrit :

I've got an extra can of "breakoutif" paint here...

another shed color:

with contextlib.except_pass(FileNotFoundError):
    os.unlink(fname)

explicit and hopefully not too ugly



More information about the Python-Dev mailing list