decimal point character

Bror Johansson brojohan at hotmail.com
Wed Mar 3 17:58:36 EST 2004


Is there a way to 'configure' the built-in conversion function float() to
accept '.' (dot) as decimalpartdelimiter when executing in an
anglo-american-language environment and to accept ',' (comma) when executing
in a language environment where that character is used for the same purpose?

Is there a pure (=working in Windows as well as in UNIX) Python way to find
out what char float() accepts as decimal point in strings?

/BJ






More information about the Python-list mailing list