Title: locale documentation is inconsistent
Type: Stage:
Components: Documentation Versions: Python 2.6
Status: closed Resolution: fixed
Dependencies: Superseder:
Assigned To: georg.brandl Nosy List: georg.brandl, kaiw
Priority: normal Keywords:

Created on 2008-11-14 13:28 by kaiw, last changed 2008-11-15 08:10 by georg.brandl. This issue is now closed.

Messages (2)
msg75861 - (view) Author: Kai Willadsen (kaiw) Date: 2008-11-14 13:28
The documentation for locale.getlocale is not consistent with the
example given. The docs for getlocale([category]) say:
  "category may be one of the LC_* values except LC_ALL."
but the example at the bottom of the documentation starts with:
  >>> import locale
  >>> loc = locale.getlocale(locale.LC_ALL) # get current locale
msg75906 - (view) Author: Georg Brandl (georg.brandl) * (Python committer) Date: 2008-11-15 08:10
Thanks, fixed in r67224.
Date User Action Args
2008-11-15 08:10:15georg.brandlsetstatus: open -> closed
resolution: fixed
messages: + msg75906
2008-11-14 13:28:30kaiwcreate