> With other words I'd like to tell Python: Convert into a float if 
> possible, otherwise append anyway. 

[ (type(x) == type(5) and float(x) or x) for x in mylist ]

Should do it...

Alan G.
_______________________________________________
Tutor maillist  -  [email protected]
http://mail.python.org/mailman/listinfo/tutor

Reply via email to