[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
- 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 ]
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
- 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 ]