Converting a string to the most probable type

Paul Rubin http
Fri Mar 7 19:13:04 EST 2008


Pierre Quentel <quentel.pierre at wanadoo.fr> writes:
> I would like to know if there is a module that converts a string to a
> value of the "most probable type" 

    Python 2.4.4 (#1, Oct 23 2006, 13:58:00) 
    >>> import this
    The Zen of Python, by Tim Peters
    ...
    In the face of ambiguity, refuse the temptation to guess.



More information about the Python-list mailing list