Re: [IronPython] Singles from outer-space

2006-05-30 Thread Dino Viehland
[mailto:[EMAIL PROTECTED] On Behalf Of Jonathan Jacobs Sent: Sunday, May 28, 2006 10:28 AM To: Discussion of IronPython Subject: [IronPython] Singles from outer-space Some odd behaviour with System.Single: >>> s = System.Single.Parse('5.2') >>> type(s) >>> int(

[IronPython] Singles from outer-space

2006-05-28 Thread Jonathan Jacobs
Some odd behaviour with System.Single: >>> s = System.Single.Parse('5.2') >>> type(s) >>> int(s) Traceback (most recent call last): File , line 0, in ##50 TypeError: expected int, found Single >>> int(float(s)) 5 -- Jonathan When you meet a master swordsman, show him your sword. When yo