MCPcopy Index your code
hub / github.com/python/cpython / localeconv

Function localeconv

Lib/locale.py:62–84  ·  view source on GitHub ↗

localeconv() -> dict. Returns numeric and monetary locale-specific parameters.

()

Source from the content-addressed store, hash-verified

60 Error = ValueError
61
62 def localeconv():
63 """ localeconv() -> dict.
64 Returns numeric and monetary locale-specific parameters.
65 """
66 # 'C' locale default values
67 return {'grouping': [127],
68 'currency_symbol': '',
69 'n_sign_posn': 127,
70 'p_cs_precedes': 127,
71 'n_cs_precedes': 127,
72 'mon_grouping': [],
73 'n_sep_by_space': 127,
74 'decimal_point': '.',
75 'negative_sign': '',
76 'positive_sign': '',
77 'p_sep_by_space': 127,
78 'int_curr_symbol': '',
79 'p_sign_posn': 127,
80 'thousands_sep': '',
81 'mon_thousands_sep': '',
82 'frac_digits': 127,
83 'mon_decimal_point': '',
84 'int_frac_digits': 127}
85
86 def setlocale(category, value=None):
87 """ setlocale(integer,string=None) -> string.

Callers 8

_groupFunction · 0.85
_localizeFunction · 0.85
currencyFunction · 0.85
delocalizeFunction · 0.85
setUpModuleFunction · 0.85
test_lc_numeric_basicMethod · 0.85
test_float_parsingMethod · 0.85

Calls 1

updateMethod · 0.45

Tested by 4

setUpModuleFunction · 0.68
test_lc_numeric_basicMethod · 0.68
test_float_parsingMethod · 0.68

Used in the wild real call sites across dependent graphs

searching dependent graphs…