]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
gh-92869: ctypes: Add c_time_t (#92870)
authorThomas Perl <m@thp.io>
Sun, 3 Jul 2022 18:58:02 +0000 (20:58 +0200)
committerGitHub <noreply@github.com>
Sun, 3 Jul 2022 18:58:02 +0000 (11:58 -0700)
commitb296c7442be97600dc87819e885e037313883d8e
tree1bac0d27ad4aa8f047864ead58cb480057e12243
parent39c29f753e6d6f390dce5a36613c1e03f43d28ea
gh-92869: ctypes: Add c_time_t (#92870)

Adds `ctypes.c_time_t` to represent the C `time_t` type accurately as its size varies.

Primarily-authored-by: Adam Turner <9087854+AA-Turner@users.noreply.github.com>
Co-authored-by: Gregory P. Smith <greg@krypto.org> [Google]
Doc/library/ctypes.rst
Lib/ctypes/__init__.py
Lib/test/test_ctypes/test_sizes.py
Misc/NEWS.d/next/Library/2022-05-17-06-27-39.gh-issue-92869.t8oBkw.rst [new file with mode: 0644]
Modules/_ctypes/_ctypes.c