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 Lita.Cho, jesstess, rhettinger
Date 2014-06-25.20:00:46
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1403726447.06.0.743730224838.issue21867@psf.upfronthosting.co.za>
In-reply-to
Content
For the most part, we don't change exceptions once they are published in the standard library because it breaks any code that relies on those exceptions.  That is why it is so important to get the API correct to begin with.

TypeError was the wrong choice, it should has been a ValueError (the type is correct but the value doesn't make sense).   There is some case for a TurtleError (modules like decimal and sqlite3 define their own clusters of exceptions); however, that makes the exception less interoperable with the rest of Python where things like IndexError, StopIteration, ValueError, and KeyError get caught and handled appropriately.
History
Date User Action Args
2014-06-25 20:00:47rhettingersetrecipients: + rhettinger, jesstess, Lita.Cho
2014-06-25 20:00:47rhettingersetmessageid: <1403726447.06.0.743730224838.issue21867@psf.upfronthosting.co.za>
2014-06-25 20:00:47rhettingerlinkissue21867 messages
2014-06-25 20:00:46rhettingercreate