New submission from Florent Xicluna <florent.xicl...@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@python components: Documentation messages: 146292 nosy: docs@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 <rep...@bugs.python.org> <http://bugs.python.org/issue13255> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com