Message118187
@contextlib.contextmanager
def null():
yield
Do we really need to add this to the stdlib?
Previous proposals to add an "identity function" or "no-op function" have always be refused. This one seems even less useful. |
|
Date |
User |
Action |
Args |
2010-10-08 11:33:55 | pitrou | set | recipients:
+ pitrou, ncoghlan, vstinner, hniksic, eric.araujo, michael.foord |
2010-10-08 11:33:55 | pitrou | set | messageid: <1286537635.6.0.984753894735.issue10049@psf.upfronthosting.co.za> |
2010-10-08 11:33:54 | pitrou | link | issue10049 messages |
2010-10-08 11:33:54 | pitrou | create | |
|