mirror of
https://github.com/python/cpython.git
synced 2025-12-10 19:10:59 +00:00
SF patch #1047577, typo in liblocale.tex
This commit is contained in:
parent
b04b6afd01
commit
2562ff2de3
1 changed files with 1 additions and 1 deletions
|
|
@ -397,7 +397,7 @@ Example:
|
||||||
|
|
||||||
\begin{verbatim}
|
\begin{verbatim}
|
||||||
>>> import locale
|
>>> import locale
|
||||||
>>> loc = locale.setlocale(locale.LC_ALL) # get current locale
|
>>> loc = locale.getlocale(locale.LC_ALL) # get current locale
|
||||||
>>> locale.setlocale(locale.LC_ALL, 'de_DE') # use German locale; name might vary with platform
|
>>> locale.setlocale(locale.LC_ALL, 'de_DE') # use German locale; name might vary with platform
|
||||||
>>> locale.strcoll('f\xe4n', 'foo') # compare a string containing an umlaut
|
>>> locale.strcoll('f\xe4n', 'foo') # compare a string containing an umlaut
|
||||||
>>> locale.setlocale(locale.LC_ALL, '') # use user's preferred locale
|
>>> locale.setlocale(locale.LC_ALL, '') # use user's preferred locale
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue