[issue8082] Misleading exception when raising an object

2010-03-07 Thread Benjamin Peterson
Benjamin Peterson added the comment: 2010/3/7 Barry A. Warsaw : > > Barry A. Warsaw added the comment: > > Minor nit: it's questionable whether this should have gone in between 2.6.5 > rc1 and rc2.  It doesn't seem like a critical fix.  OTOH, it also seems > harmless enough so I'm gonna let i

[issue8082] Misleading exception when raising an object

2010-03-07 Thread Barry A. Warsaw
Barry A. Warsaw added the comment: Minor nit: it's questionable whether this should have gone in between 2.6.5 rc1 and rc2. It doesn't seem like a critical fix. OTOH, it also seems harmless enough so I'm gonna let it slide. -- nosy: +barry ___ Py

[issue8082] Misleading exception when raising an object

2010-03-06 Thread Benjamin Peterson
Benjamin Peterson added the comment: Done in r78746. -- nosy: +benjamin.peterson resolution: -> fixed status: open -> closed ___ Python tracker ___ _

[issue8082] Misleading exception when raising an object

2010-03-06 Thread Daniel Eloff
New submission from Daniel Eloff : >>> class Foo(object): ... pass ... >>> raise Foo() Traceback (most recent call last): File "", line 1, in TypeError: exceptions must be classes or instances, not Foo >>> class Foo(Exception): ... pass ... >>> raise Foo() Traceback (most rec