Python stdlib module — locale. Auto-indexed from CDN. Method-level security roles have not been annotated; rule writers should inspect the source before use.
.atof()Neutralatof(string, func)
Parses a string as a float according to the locale settings.
.atoi()Neutralatoi(string)
Converts a string to an integer according to the locale settings.
.bind_textdomain_codeset()Neutralbind_textdomain_codeset(domain, codeset)
Bind the C library's domain to codeset.
.currency()Neutralcurrency(val, symbol, grouping, international)
Formats val according to the currency settings
.dcgettext()Neutraldcgettext(domain, msg, category)
Return translation of msg in domain and category.
.delocalize()Neutraldelocalize(string)
Parses a string as a normalized number according to the locale settings.
.format()Neutralformat(percent, value, grouping, monetary, additional)
Deprecated, use format_string instead.
.format_string()Neutralformat_string(f, val, grouping, monetary)
Formats a string in the same way that the % formatting would use,
| FQN | Field | |
|---|---|---|
| locale | fqns[0] |
Wrong FQN → 0 findings. Verify with: change fqns to garbage → must produce 0 results.
import locale