Python Mystery Theatre -- Episode 1: Exceptions

John J. Lee jjl at pobox.com
Sat Jul 12 18:03:34 EDT 2003


aahz at pythoncraft.com (Aahz) writes:

> In article <3F0FC088.3C56EDEA at alcyone.com>,
> Erik Max Francis  <max at alcyone.com> wrote:
[...]
> >> Prohibited: <unprintable instance object>
> >
> >Is this some IDLE-specific thing?  
> 
> Nope, the point here is that
> 
> raise Prohibited
> 
> will always create a Prohibited() instance.  (See also Peter's post
> about One True Way for exceptions.)

Perhaps Erik was wondering, as I was, where that "<unprintable instance
object>" came from.  On my machine, 2.3b1 doesn't print that in
response to Raymond's example code.  Maybe it's from 2.3b2 (which I'm
downloading ATM), or IDLE, or something else?


John




More information about the Python-list mailing list