Title: wrong docstrings in array module
Type: behavior Stage: resolved
Components: Documentation Versions: Python 3.2, Python 3.3
Status: closed Resolution: fixed
Dependencies: Superseder:
Assigned To: docs@python Nosy List: docs@python, flox, python-dev
Priority: normal Keywords:

Created on 2011-10-24 10:48 by flox, last changed 2011-10-24 11:18 by flox. This issue is now closed.

Messages (2)
msg146292 - (view) Author: Florent Xicluna (flox) * (Python committer) Date: 2011-10-24 10:48
The docstring should say "ustr.encode" instead of "ustr.decode".
The documentation page is correct.

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

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.
msg146293 - (view) Author: Roundup Robot (python-dev) Date: 2011-10-24 11:17
New changeset 451fa5782145 by Florent Xicluna in branch '3.2':
Issue #13255: wrong docstrings in array module.
Date User Action Args
2011-10-24 11:18:53floxsetstatus: open -> closed
title: wrong docstring for array.fromunicode -> wrong docstrings in array module
resolution: fixed
stage: needs patch -> resolved
2011-10-24 11:17:58python-devsetnosy: + python-dev
messages: + msg146293
2011-10-24 10:48:07floxcreate