Ezio Melotti added the comment:

I think I'm -1 on this.

This saves two lines, but makes the code less explicit, it can't be used for 
try/except/else or try/except/except, it requires an extra import, the 
implementation is simple enough that it doesn't necessary need to be in the 
stdlib, it might encourage bad style, and it's slower.

Some of these downsides are indeed somewhat weak, but the upside of saving two 
lines is quite weak too IMHO.

----------
nosy: +ezio.melotti

_______________________________________
Python tracker <rep...@bugs.python.org>
<http://bugs.python.org/issue15806>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to