bare excepts

Aaron Bentley aaron.bentley at utoronto.ca
Wed Jan 4 04:17:51 GMT 2006


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Martin Pool wrote:
| Yes, +1 on grepping for it.  A counter seems a bit likely to let them
| slip through - maybe allow the form
|
|   try:
|   except:    # WARNING BARE EXCEPT

Perhaps
try:
except Exception, e: # NOT A HACK adhb20050103

"Warning bare except" doesn't quite have the "I did this deliberately
and for a good reason" flavor for me.

Welcome back!

Aaron
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.1 (GNU/Linux)
Comment: Using GnuPG with Thunderbird - http://enigmail.mozdev.org

iD8DBQFDu0xv0F+nu1YWqI0RAoRnAJ4vdMgkwOUFGFKcZY0xGfuhEnGQmgCfe717
JfHTkGJo+GV0CiFqNX5DYRU=
=IWns
-----END PGP SIGNATURE-----




More information about the bazaar mailing list