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.

Author sobolevn
Recipients amaury.forgeotdarc, belopolsky, meador.inge, sobolevn, zach.ware
Date 2022-01-30.15:03:49
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1643555029.82.0.98723415046.issue46585@roundup.psfhosted.org>
In-reply-to
Content
After looking at https://github.com/python/cpython/blame/8fb36494501aad5b0c1d34311c9743c60bb9926c/Lib/ctypes/test/test_python_api.py#L5-L10 in https://bugs.python.org/issue46584

it seems that we should address this comment:

```
# This section should be moved into ctypes\__init__.py, when it's ready.

from _ctypes import PyObj_FromPtr
```

by either:
1. Making `PyObj_FromPtr` public by re-exporting it from `ctypes`
2. Removing this comment

Arguments for `(1)`:
- It is quite widely used and there are a lot of articles mentioning it: https://www.programcreek.com/python/example/77012/_ctypes.PyObj_FromPtr and https://programtalk.com/python-examples/_ctypes.PyObj_FromPtr/ Basically, Google is filled with results.
- It looks useful for educational purposes.

I don't think that I am familiar with `ctypes`'s history well enough to make an educated dicision here.

But, I would love to work on this after this decision is made :)
History
Date User Action Args
2022-01-30 15:03:49sobolevnsetrecipients: + sobolevn, amaury.forgeotdarc, belopolsky, meador.inge, zach.ware
2022-01-30 15:03:49sobolevnsetmessageid: <1643555029.82.0.98723415046.issue46585@roundup.psfhosted.org>
2022-01-30 15:03:49sobolevnlinkissue46585 messages
2022-01-30 15:03:49sobolevncreate