localeconv() -> dict. Returns numeric and monetary locale-specific parameters.
()
| 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. |
searching dependent graphs…