Some odd behaviour with System.Single:

 >>> s = System.Single.Parse('5.2')
 >>> type(s)
<type 'Single'>
 >>> int(s)
Traceback (most recent call last):
   File , line 0, in <stdin>##50
TypeError: expected int, found Single
 >>> int(float(s))
5

-- 
Jonathan

When you meet a master swordsman,
show him your sword.
When you meet a man who is not a poet,
do not show him your poem.
                 -- Rinzai, ninth century Zen master
_______________________________________________
users mailing list
users@lists.ironpython.com
http://lists.ironpython.com/listinfo.cgi/users-ironpython.com

Reply via email to