Re: Funny Python error messages

2005-01-21 Thread Hans Nowak
Will Stuyvesant wrote: Add your funny or surprising Python error messages to this thread. A requirement is that you should also show (minimal) code that produces the message. Put the code below, so people can think about how to generate the message first, a little puzzle if you like. Perhaps this

Re: Funny Python error messages

2005-01-21 Thread Carl Banks
Peter Hansen wrote: > Will Stuyvesant wrote: > > Perhaps this will even be a useful thread, to brighten the > > life of the brave people doing the hard work of providing us > > with error messages. > > > > My first one (i'm learning, i'm learning) is > > > > TypeError: 'callable-iterator' object i

Re: Funny Python error messages

2005-01-21 Thread Fredrik Lundh
Peter Hansen wrote: >> My first one (i'm learning, i'm learning) is >> >> TypeError: 'callable-iterator' object is not callable >> >> # >>> it = iter(lambda:0, 0) >> # >>> it() >> # TypeError: 'callable-iterator' object is not callable > > Given that the supposed humour depends on the *name* of >

Re: Funny Python error messages

2005-01-21 Thread Peter Hansen
Will Stuyvesant wrote: Perhaps this will even be a useful thread, to brighten the life of the brave people doing the hard work of providing us with error messages. My first one (i'm learning, i'm learning) is TypeError: 'callable-iterator' object is not callable # >>> it = iter(lambda:0, 0) # >>> i

Funny Python error messages

2005-01-21 Thread Will Stuyvesant
Add your funny or surprising Python error messages to this thread. A requirement is that you should also show (minimal) code that produces the message. Put the code below, so people can think about how to generate the message first, a little puzzle if you like. Perhaps this will even be a usefu