Obscure Exception message

Andrew M. Kuchling akuchlin at mems-exchange.org
Thu Jun 8 17:28:58 EDT 2000


"Daley, MarkX" <markx.daley at intel.com> writes:
> TypeError: string member test needs char left operand
> I have no idea what this is telling me, although the 'char' comment makes me
> wish I had a flamethrower!

Good point.  Hmm... how about:
TypeError: in <string> requires character as left operand

In the above message, <string> isn't the contents of the string
involved, but the actual literal '<string>'.

-- 
A.M. Kuchling			http://starship.python.net/crew/amk/
If I tended toward frivolity as a boy, I am incorrigibly settled in it now.
  -- Robertson Davies, _The Diary of Samuel Marchbanks_



More information about the Python-list mailing list