[issue4324] locale documentation is inconsistent

2008-11-14 Thread Kai Willadsen

New submission from Kai Willadsen <[EMAIL PROTECTED]>:

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
  ...

--
assignee: georg.brandl
components: Documentation
messages: 75861
nosy: georg.brandl, kaiw
severity: normal
status: open
title: locale documentation is inconsistent
versions: Python 2.6

___
Python tracker <[EMAIL PROTECTED]>
<http://bugs.python.org/issue4324>
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue4529] parser module failure on valid try/except/finally blocks

2008-12-04 Thread Kai Willadsen

New submission from Kai Willadsen <[EMAIL PROTECTED]>:

Using the parser module to create a parse tree succeeds, but a
subsequent tuple2ast fails, when parsing valid try/except/finally (and
try/except/else/finally) blocks. parser.tuple2ast fails with:
  parser.ParserError: Illegal number of children for try/finally node.

--
files: parser-testcase.py
messages: 76900
nosy: kaiw
severity: normal
status: open
title: parser module failure on valid try/except/finally blocks
type: behavior
versions: Python 2.5
Added file: http://bugs.python.org/file12221/parser-testcase.py

___
Python tracker <[EMAIL PROTECTED]>
<http://bugs.python.org/issue4529>
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com