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.14:56:00
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1643554560.13.0.0620214587258.issue46584@roundup.psfhosted.org>
In-reply-to
Content
Right now Lib/ctypes/test/test_python_api.py has these lines:

```
if sys.version_info > (2, 4):
    c_py_ssize_t = c_size_t
else:
    c_py_ssize_t = c_int
```

Source: https://github.com/python/cpython/blame/8fb36494501aad5b0c1d34311c9743c60bb9926c/Lib/ctypes/test/test_python_api.py#L13-L16

I think that there's no reason to keep code compat for python versions `<=2.3`. Other modules in CPython do refactor this by removing old and unused code, especially in tests.

I propose to do the same here.
History
Date User Action Args
2022-01-30 14:56:00sobolevnsetrecipients: + sobolevn, amaury.forgeotdarc, belopolsky, meador.inge, zach.ware
2022-01-30 14:56:00sobolevnsetmessageid: <1643554560.13.0.0620214587258.issue46584@roundup.psfhosted.org>
2022-01-30 14:56:00sobolevnlinkissue46584 messages
2022-01-30 14:56:00sobolevncreate