On this page
locale.localeconv
Prev: locale.getpreferredencoding | Up: locale | Next: locale.normalize
Rel: locale.atof, locale.atoi, locale.currency, locale.Error
Ref: docs.python.org — locale.localeconv
Tags: #public #python3 #stdlib #locale
Import
import locale
from locale import localeconv
Signature & Overview
locale.localeconv()
Returns numeric and monetary locale-specific parameters.
Usage
import locale
conv = locale.localeconv()
assert "decimal_point" in conv and "thousands_sep" in conv
Gotchas
- Returns a dict of numeric and monetary formatting rules for the active locale.
REPL Inspect
from locale import localeconv
help(localeconv)
Linked from
Related notes
- tuts/python3/stdlib_module/locale/getpreferredencoding Linked here; links to this page; shared tags: #locale, #stdlib
- tuts/python3/stdlib_module/locale/normalize Linked here; links to this page; shared tags: #locale, #stdlib
- tuts/python3/stdlib_module/locale Linked here; links to this page; shared tags: #stdlib
- tuts/python3/stdlib_module/locale/atof Linked here; shared tags: #locale, #stdlib
- tuts/python3/stdlib_module/locale/atoi Linked here; shared tags: #locale, #stdlib
- tuts/python3/stdlib_module/locale/currency Linked here; shared tags: #locale, #stdlib
- tuts/python3/stdlib_module/locale/Error Linked here; shared tags: #locale, #stdlib
- tuts/python3/stdlib_module/locale/format_string shared tags: #locale, #stdlib
- tuts/python3/stdlib_module/locale/getdefaultlocale shared tags: #locale, #stdlib
- tuts/python3/stdlib_module/locale/getencoding shared tags: #locale, #stdlib