[Tutor] Quick way to find the data type

bob bgailer at alum.rpi.edu
Tue Sep 27 22:14:57 CEST 2005


At 12:08 PM 9/27/2005, Bernard Lebel wrote:
>Hello,
>
>Let say I have a string. The value of the string might be 'False',
>'True', '3', '1.394', or whatever else. Is there a quick way to
>convert this string into the appropriate data type other than with
>try/except?

eval()? 



More information about the Tutor mailing list