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

misleading comment regarding C #63518

Closed
christophbaumgartner mannequin opened this issue Oct 20, 2013 · 3 comments
Closed

misleading comment regarding C #63518

christophbaumgartner mannequin opened this issue Oct 20, 2013 · 3 comments
Assignees
Labels
docs Documentation in the Doc dir type-feature A feature request or enhancement

Comments

@christophbaumgartner
Copy link
Mannequin

christophbaumgartner mannequin commented Oct 20, 2013

BPO 19319
Nosy @ezio-melotti

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/ezio-melotti'
closed_at = <Date 2013-10-21.01:43:14.751>
created_at = <Date 2013-10-20.18:19:33.827>
labels = ['type-feature', 'docs']
title = 'misleading comment regarding C'
updated_at = <Date 2013-10-21.01:43:14.694>
user = 'https://bugs.python.org/christophbaumgartner'

bugs.python.org fields:

activity = <Date 2013-10-21.01:43:14.694>
actor = 'ezio.melotti'
assignee = 'ezio.melotti'
closed = True
closed_date = <Date 2013-10-21.01:43:14.751>
closer = 'ezio.melotti'
components = ['Documentation']
creation = <Date 2013-10-20.18:19:33.827>
creator = 'christoph.baumgartner'
dependencies = []
files = []
hgrepos = []
issue_num = 19319
keywords = []
message_count = 3.0
messages = ['200604', '200682', '200683']
nosy_count = 5.0
nosy_names = ['ezio.melotti', 'docs@python', 'python-dev', 'numerodix', 'christoph.baumgartner']
pr_nums = []
priority = 'normal'
resolution = 'fixed'
stage = 'resolved'
status = 'closed'
superseder = None
type = 'enhancement'
url = 'https://bugs.python.org/issue19319'
versions = ['Python 2.7', 'Python 3.3', 'Python 3.4']

@christophbaumgartner
Copy link
Mannequin Author

christophbaumgartner mannequin commented Oct 20, 2013

The documentation about ctypes.sizeof:

"Returns the size in bytes of a ctypes type or instance memory buffer. Does the same as the C sizeof() function."

'sizeof' is an operator. I would drop the parentheses as well.

@christophbaumgartner christophbaumgartner mannequin added the docs Documentation in the Doc dir label Oct 20, 2013
@python-dev
Copy link
Mannequin

python-dev mannequin commented Oct 21, 2013

New changeset 737b79e524aa by Ezio Melotti in branch '2.7':
bpo-19319: fix ctypes docs: sizeof is an operator in C, not a function.
http://hg.python.org/cpython/rev/737b79e524aa

New changeset d8e352e2f110 by Ezio Melotti in branch '3.3':
bpo-19319: fix ctypes docs: sizeof is an operator in C, not a function.
http://hg.python.org/cpython/rev/d8e352e2f110

New changeset 49f8d07b6c5c by Ezio Melotti in branch 'default':
bpo-19319: merge with 3.3.
http://hg.python.org/cpython/rev/49f8d07b6c5c

@ezio-melotti
Copy link
Member

Fixed, thanks for the report!

@ezio-melotti ezio-melotti added the type-feature A feature request or enhancement label Oct 21, 2013
@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-feature A feature request or enhancement
Projects
None yet
Development

No branches or pull requests

1 participant