[New-bugs-announce] [issue41032] locale.setlocale example incorrect

MarcoBakera report at bugs.python.org
Fri Jun 19 05:26:58 EDT 2020

New submission from MarcoBakera <python_org at bakera.de>:

The example given results in an error.


>>> locale.setlocale(locale.LC_ALL, 'de_DE')

I could be improved with one of the following versions:

>>> locale.setlocale(locale.LC_ALL, 'de_DE.UTF-8')
>>> locale.setlocale(locale.LC_ALL, ('de_DE'), ('UTF-8'))

assignee: docs at python
components: Documentation
messages: 371860
nosy: docs at python, pintman
priority: normal
severity: normal
status: open
title: locale.setlocale example incorrect
type: enhancement
versions: Python 3.6, Python 3.7, Python 3.8

Python tracker <report at bugs.python.org>

More information about the New-bugs-announce mailing list