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

PyObject_AsReadBuffer doc error #36378

Closed
madcow42 mannequin opened this issue Apr 4, 2002 · 2 comments
Closed

PyObject_AsReadBuffer doc error #36378

madcow42 mannequin opened this issue Apr 4, 2002 · 2 comments
Assignees
Labels
docs Documentation in the Doc dir

Comments

@madcow42
Copy link
Mannequin

madcow42 mannequin commented Apr 4, 2002

BPO 539081
Nosy @freddrake

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 = 'https://github.com/freddrake'
closed_at = <Date 2002-04-04.04:23:00.000>
created_at = <Date 2002-04-04.03:53:27.000>
labels = ['docs']
title = 'PyObject_AsReadBuffer doc error'
updated_at = <Date 2002-04-04.04:23:00.000>
user = 'https://bugs.python.org/madcow42'

bugs.python.org fields:

activity = <Date 2002-04-04.04:23:00.000>
actor = 'fdrake'
assignee = 'fdrake'
closed = True
closed_date = None
closer = None
components = ['Documentation']
creation = <Date 2002-04-04.03:53:27.000>
creator = 'madcow42'
dependencies = []
files = []
hgrepos = []
issue_num = 539081
keywords = []
message_count = 2.0
messages = ['10147', '10148']
nosy_count = 2.0
nosy_names = ['fdrake', 'madcow42']
pr_nums = []
priority = 'normal'
resolution = 'fixed'
stage = None
status = 'closed'
superseder = None
type = None
url = 'https://bugs.python.org/issue539081'
versions = ['Python 2.2']

@madcow42
Copy link
Mannequin Author

madcow42 mannequin commented Apr 4, 2002

The documentation for PyObject_AsReadBuffer (and
others in that group, I suspect) seems to be incorrect.

It notes that PyObject_AsReadBuffer returns 1 on
success, 0 on failure. However, it returns 0 on
success and -1 on failure.

This is true for the current documentation on
Python.org, as well as older versions.

Thanks!

(or, this could be treated as a bug in
PyObject_AsReadBuffer itself, returning the wrong
values... which is probably more accurate, so it is
consistent with other functions in the C API.
However, changing it's return value at this point
would break a LOT of software)

@madcow42 madcow42 mannequin closed this as completed Apr 4, 2002
@madcow42 madcow42 mannequin assigned freddrake Apr 4, 2002
@madcow42 madcow42 mannequin added the docs Documentation in the Doc dir label Apr 4, 2002
@madcow42 madcow42 mannequin closed this as completed Apr 4, 2002
@madcow42 madcow42 mannequin assigned freddrake Apr 4, 2002
@madcow42 madcow42 mannequin added the docs Documentation in the Doc dir label Apr 4, 2002
@freddrake
Copy link
Member

Logged In: YES
user_id=3066

Fixed in Doc/api/abstract.tex revisions 1.11 and 1.8.6.3.
Added the relevant PyObject_As*Buffer() descriptions to
Doc/api/api.tex revision 1.117.2.13 (for Python 2.1.3) as
well, since I'm making changes for these functions anyway.

@ezio-melotti ezio-melotti transferred this issue from another repository Apr 9, 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
Projects
None yet
Development

No branches or pull requests

1 participant