locale — Internationalization services — Python 3.16.0a0 documentation

docs.python.org

Tin mới

gettext — Multilingual internationalization services

Graphical user interfaces with Tk

Python Module Index

3.16.0a0 Documentation

The Python Standard Library

Internationalization

re: Regular expression operations.

The regular expressions for YESEXPR and NOEXPR use syntax suitable for the regex function from the C library, which might differ from the syntax used in re.

Python preinitialization

Return the locale encoding used for text data, according to user preferences. User preferences are expressed differently on different systems, and might not be available programmatically on some systems, so this function

filesystem encoding and error handler

Return the locale encoding used for text data, according to user preferences. User preferences are expressed differently on different systems, and might not be available programmatically on some systems, so this function

Background, details, hints, tips and caveats¶

The C standard defines the locale as a program-wide property that may be relatively expensive to change. On top of that, some implementations are broken in such a way that frequent locale changes may cause core dumps. Th