[IronPython] Confusing Error Message

Michael Foord michael.foord at resolversystems.com
Fri Oct 31 12:52:09 CET 2008


This had me foxed for a while:

CPython
 >>> 'a' in object()
Traceback (most recent call last):
  File "<stdin>", line 1, in ?
TypeError: iterable argument required
 >>>

IronPython (changeset 42603)
 >>> 'a' in object()
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
TypeError: argument of type 'str' is not iterable
 >>>


-- 
Michael Foord
Senior Software Engineer, Resolver Systems Ltd.
michael.foord at resolversystems.com
+44 (0) 20 7253 6372

Try out Resolver One! <http://www.resolversystems.com/get-it/>

17a Clerkenwell Road, London EC1M 5RD, UK
VAT No.: GB 893 5643 79 Registered in England and Wales as company number 5467329.
Registered address: 843 Finchley Road, London NW11 8NA, UK 




More information about the Ironpython-users mailing list