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

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 "break_out_if" 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