Sunday, 27 September 2009

Lamenting the Deprecation of a Brilliantly, Simple Feature: String Exceptions in Python

Python used to allow string exceptions (raise "Exception thrown!") but now these are deprecated. You have to raise real exceptions. BaseException is used as base for built-in exceptions.

No comments: