This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

classification
Title: misleading comment regarding C
Type: enhancement Stage: resolved
Components: Documentation Versions: Python 3.3, Python 3.4, Python 2.7
process
Status: closed Resolution: fixed
Dependencies: Superseder:
Assigned To: ezio.melotti Nosy List: christoph.baumgartner, docs@python, ezio.melotti, numerodix, python-dev
Priority: normal Keywords:

Created on 2013-10-20 18:19 by christoph.baumgartner, last changed 2022-04-11 14:57 by admin. This issue is now closed.

Messages (3)
msg200604 - (view) Author: Christoph Baumgartner (christoph.baumgartner) Date: 2013-10-20 18:19
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.
msg200682 - (view) Author: Roundup Robot (python-dev) (Python triager) Date: 2013-10-21 01:42
New changeset 737b79e524aa by Ezio Melotti in branch '2.7':
#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':
#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':
#19319: merge with 3.3.
http://hg.python.org/cpython/rev/49f8d07b6c5c
msg200683 - (view) Author: Ezio Melotti (ezio.melotti) * (Python committer) Date: 2013-10-21 01:43
Fixed, thanks for the report!
History
Date User Action Args
2022-04-11 14:57:52adminsetgithub: 63518
2013-10-21 01:43:14ezio.melottisetstatus: open -> closed

type: enhancement
assignee: docs@python -> ezio.melotti
versions: + Python 2.7, Python 3.3, Python 3.4
nosy: + ezio.melotti

messages: + msg200683
resolution: fixed
stage: resolved
2013-10-21 01:42:45python-devsetnosy: + python-dev
messages: + msg200682
2013-10-20 18:24:22numerodixsetnosy: + numerodix
2013-10-20 18:19:33christoph.baumgartnercreate