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 > the object, which is "callable-iterator", I'd say it's > probably not hard to come up with lots of "funny" error > messages this way.
note that will didn't name the type himself. someone callously thought it would be a cool idea to have a non-callable type called callable in python, rather than, say, call it "iterator-that-dances-with-callables". </F> -- http://mail.python.org/mailman/listinfo/python-list