Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

wrong docstrings in array module #57464

Closed
florentx mannequin opened this issue Oct 24, 2011 · 2 comments
Closed

wrong docstrings in array module #57464

florentx mannequin opened this issue Oct 24, 2011 · 2 comments
Labels
docs Documentation in the Doc dir type-bug An unexpected behavior, bug, or error

Comments

@florentx
Copy link
Mannequin

florentx mannequin commented Oct 24, 2011

BPO 13255
Nosy @florentx

Note: these values reflect the state of the issue at the time it was migrated and might not reflect the current state.

Show more details

GitHub fields:

assignee = None
closed_at = <Date 2011-10-24.11:18:53.470>
created_at = <Date 2011-10-24.10:48:07.185>
labels = ['type-bug', 'docs']
title = 'wrong docstrings in array module'
updated_at = <Date 2011-10-24.11:18:53.469>
user = 'https://github.com/florentx'

bugs.python.org fields:

activity = <Date 2011-10-24.11:18:53.469>
actor = 'flox'
assignee = 'docs@python'
closed = True
closed_date = <Date 2011-10-24.11:18:53.470>
closer = 'flox'
components = ['Documentation']
creation = <Date 2011-10-24.10:48:07.185>
creator = 'flox'
dependencies = []
files = []
hgrepos = []
issue_num = 13255
keywords = []
message_count = 2.0
messages = ['146292', '146293']
nosy_count = 3.0
nosy_names = ['flox', 'docs@python', 'python-dev']
pr_nums = []
priority = 'normal'
resolution = 'fixed'
stage = 'resolved'
status = 'closed'
superseder = None
type = 'behavior'
url = 'https://bugs.python.org/issue13255'
versions = ['Python 3.2', 'Python 3.3']

@florentx
Copy link
Mannequin Author

florentx mannequin commented Oct 24, 2011

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.

@florentx florentx mannequin assigned docspython Oct 24, 2011
@florentx florentx mannequin added docs Documentation in the Doc dir type-bug An unexpected behavior, bug, or error labels Oct 24, 2011
@python-dev
Copy link
Mannequin

python-dev mannequin commented Oct 24, 2011

New changeset 451fa5782145 by Florent Xicluna in branch '3.2':
Issue bpo-13255: wrong docstrings in array module.
http://hg.python.org/cpython/rev/451fa5782145

@florentx florentx mannequin closed this as completed Oct 24, 2011
@florentx florentx mannequin changed the title wrong docstring for array.fromunicode wrong docstrings in array module Oct 24, 2011
@ezio-melotti ezio-melotti transferred this issue from another repository Apr 10, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
docs Documentation in the Doc dir type-bug An unexpected behavior, bug, or error
Projects
None yet
Development

No branches or pull requests

0 participants