(string)
return string
Parses a string as a normalized number according to the locale settings.
Parses a string as a normalized number according to the locale settings.
Parses a string as a normalized number according to the locale settings .
def delocalize(string):
    "Parses a string as a normalized number according to the locale settings."

    conv = localeconv()

    #First, get rid of the grouping
    ts = conv['thousands_sep']
    if ts:
        string = string.replace(ts, '')

    #next, replace the decimal point with a dot
    dd = conv['decimal_point']
    if dd:
        string = string.replace(dd, '.')
    return string
def delocalize ( string ) : conv = localeconv ( ) #First, get rid of the grouping ts = conv [ 'thousands_sep' ] if ts : string = string . replace ( ts , '' ) #next, replace the decimal point with a dot dd = conv [ 'decimal_point' ] if dd : string = string . replace ( dd , '.' ) return string