How to use comma as a decimal separator in Python (when parsing)

import locale
locale.setlocale(locale.LC_NUMERIC,"ru_RU.utf8")

print locale.localeconv()

fv = 2.5
print locale.str(fv)
← Back to Articles