
Jan. 31, 2013
3:06 p.m.
On Jan 31, 2013, at 11:33 PM, Andrew Grigorev wrote:
Other strange thing is that the `raise` statement doesn't require to instantiate an Exception object, allowing to pass an Exception class to it.
raise NotImplementedError raise NotImplementedError()
Is there any difference between this two lines of code?
The main difference (I *think* this is still true) is that in the first example, if the exception is caught in C it can avoid instantiation. Cheers, -Barry