[docs] [issue13255] wrong docstring for array.fromunicode

Florent Xicluna report at bugs.python.org
Mon Oct 24 12:48:07 CEST 2011


New submission from Florent Xicluna <florent.xicluna at gmail.com>:

The docstring should say "ustr.encode" instead of "ustr.decode".
The documentation page is correct.

>>> print(array.array.fromunicode.__doc__)
fromunicode(ustr)

Extends this array with data from the unicode string ustr.
The array must be a unicode type array; otherwise a ValueError
is raised.  Use array.frombytes(ustr.decode(...)) to
append Unicode data to an array of some other type.

----------
assignee: docs at python
components: Documentation
messages: 146292
nosy: docs at python, flox
priority: normal
severity: normal
stage: needs patch
status: open
title: wrong docstring for array.fromunicode
type: behavior
versions: Python 3.2, Python 3.3

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue13255>
_______________________________________


More information about the docs mailing list