On this page
  1. locale.localeconv
  2. Import
  3. Signature & Overview
  4. Usage
  5. Gotchas
  6. REPL Inspect

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

REPL Inspect

from locale import localeconv
help(localeconv)

Linked from

Related notes