homepage

This issue tracker has been migrated to GitHub , and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author rhettinger
Recipients matrixise, pitrou, rhettinger, vstinner
Date 2014年04月16日.19:52:59
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1397677980.37.0.176996487898.issue21259@psf.upfronthosting.co.za>
In-reply-to
Content
FYI, the two are not equivalent. A bare except is equivalent to BaseException. Even then, the new code would be slower than the original, so I'm not sure this change should be made at all (it makes the code more verbose, slower, and risks introducing a semantic change).
Also, Guido traditionally tries to discourage across the board changes like this. Instead, we aim for "holistic refactoring" where code improvements are being made one module at a time by someone who deeply groks the code and is thinking through all the changes. The problem with across-the-board edits is that they tend to be very shallow "change thing x to thing y" without looking at what the surrounding code is doing or whether the code ever made sense in the first place.
Another part of the risk of semantic change is that we likely do not have specific tests for Exception vs BaseException so it would be easy to make a mistake and not have the test suite catch it.
History
Date User Action Args
2014年04月16日 19:53:00rhettingersetrecipients: + rhettinger, pitrou, vstinner, matrixise
2014年04月16日 19:53:00rhettingersetmessageid: <1397677980.37.0.176996487898.issue21259@psf.upfronthosting.co.za>
2014年04月16日 19:53:00rhettingerlinkissue21259 messages
2014年04月16日 19:52:59rhettingercreate

AltStyle によって変換されたページ (->オリジナル) /