💾 Archived View for tris.fyi › pydoc › _locale captured on 2023-04-26 at 13:18:05. Gemini links have been rewritten to link to archived content

View Raw

More Information

⬅️ Previous capture (2023-01-29)

-=-=-=-=-=-=-

Back to module index

Go to module by name

_locale

Support for POSIX locales.

Classes

Error

with_traceback(...)

  Exception.with_traceback(tb) --
      set self.__traceback__ to tb and return self.
args = <attribute 'args' of 'BaseException' objects>

Functions

bind_textdomain_codeset

bind_textdomain_codeset(domain, codeset, /)

  Bind the C library's domain to codeset.

bindtextdomain

bindtextdomain(domain, dir, /)

  Bind the C library's domain to dir.

dcgettext

dcgettext(domain, msg, category, /)

  Return translation of msg in domain and category.

dgettext

dgettext(domain, msg, /)

  dgettext(domain, msg) -> string

  Return translation of msg in domain.

gettext

gettext(msg, /)

  gettext(msg) -> string

  Return translation of msg.

localeconv

localeconv()

  Returns numeric and monetary locale-specific parameters.

nl_langinfo

nl_langinfo(key, /)

  Return the value for the locale information associated with key.

setlocale

setlocale(...)

  Activates/queries locale processing.

strcoll

strcoll(os1, os2, /)

  Compares two strings according to the locale.

strxfrm

strxfrm(string, /)

  Return a string that can be used as a key for locale-aware comparisons.

textdomain

textdomain(domain, /)

  Set the C library's textdmain to domain, returning the new domain.

Other members

ABDAY_1 = 131072
ABDAY_2 = 131073
ABDAY_3 = 131074
ABDAY_4 = 131075
ABDAY_5 = 131076
ABDAY_6 = 131077
ABDAY_7 = 131078
ABMON_1 = 131086
ABMON_10 = 131095
ABMON_11 = 131096
ABMON_12 = 131097
ABMON_2 = 131087
ABMON_3 = 131088
ABMON_4 = 131089
ABMON_5 = 131090
ABMON_6 = 131091
ABMON_7 = 131092
ABMON_8 = 131093
ABMON_9 = 131094
ALT_DIGITS = 131119
AM_STR = 131110
CHAR_MAX = 127
CODESET = 14
CRNCYSTR = 262159
DAY_1 = 131079
DAY_2 = 131080
DAY_3 = 131081
DAY_4 = 131082
DAY_5 = 131083
DAY_6 = 131084
DAY_7 = 131085
D_FMT = 131113
D_T_FMT = 131112
ERA = 131116
ERA_D_FMT = 131118
ERA_D_T_FMT = 131120
ERA_T_FMT = 131121
LC_ALL = 6
LC_COLLATE = 3
LC_CTYPE = 0
LC_MESSAGES = 5
LC_MONETARY = 4
LC_NUMERIC = 1
LC_TIME = 2
MON_1 = 131098
MON_10 = 131107
MON_11 = 131108
MON_12 = 131109
MON_2 = 131099
MON_3 = 131100
MON_4 = 131101
MON_5 = 131102
MON_6 = 131103
MON_7 = 131104
MON_8 = 131105
MON_9 = 131106
NOEXPR = 327681
PM_STR = 131111
RADIXCHAR = 65536
THOUSEP = 65537
T_FMT = 131114
T_FMT_AMPM = 131115
YESEXPR = 327680