[IronPython] Confusing Error Message

Dino Viehland dinov at microsoft.com
Fri Oct 31 17:25:49 CET 2008


Thanks Michael, I've opened a bug to fix this: http://www.codeplex.com/IronPython/WorkItem/View.aspx?WorkItemId=19278



-----Original Message-----
From: users-bounces at lists.ironpython.com [mailto:users-bounces at lists.ironpython.com] On Behalf Of Michael Foord
Sent: Friday, October 31, 2008 4:52 AM
To: Discussion of IronPython
Subject: [IronPython] Confusing Error Message

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

_______________________________________________
Users mailing list
Users at lists.ironpython.com
http://lists.ironpython.com/listinfo.cgi/users-ironpython.com



More information about the Ironpython-users mailing list