[Python-Dev] Breaking bug #411881 into manageable pieces (original) (raw)
Martin v. Loewis martin@v.loewis.de
20 Mar 2002 07:05:05 +0100
- Previous message: [Python-Dev] Breaking bug #411881 into manageable pieces
- Next message: [Python-Dev] Breaking bug #411881 into manageable pieces
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Tim Peters <tim.one@comcast.net> writes:
doctest.py: I Trust Tim (tm)
Me too. The first bare except is exec'ing arbitrary user-supplied code, and needs to catch everything. The second needs to ignore any exception that may be raised by a user-define str, and that's any exception whatsoever, so ditto.
One observation in the bug report is that atleast KeyboardInterrupt needs to get a chance to get through, making bare except clauses evil under almost any circumstance.
Regards, Martin
- Previous message: [Python-Dev] Breaking bug #411881 into manageable pieces
- Next message: [Python-Dev] Breaking bug #411881 into manageable pieces
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]