mirror of
https://github.com/python/cpython.git
synced 2025-08-30 21:48:47 +00:00
gh-110850: Add PyTime_t C API (GH-115215)
* gh-110850: Add PyTime_t C API Add PyTime_t API: * PyTime_t type. * PyTime_MIN and PyTime_MAX constants. * PyTime_AsSecondsDouble(), PyTime_Monotonic(), PyTime_PerfCounter() and PyTime_GetSystemClock() functions. Co-authored-by: Victor Stinner <vstinner@python.org>
This commit is contained in:
parent
c39272e143
commit
879f4546bf
19 changed files with 448 additions and 114 deletions
13
Doc/conf.py
13
Doc/conf.py
|
@ -135,11 +135,14 @@ nitpick_ignore = [
|
|||
('c:type', 'wchar_t'),
|
||||
('c:type', '__int64'),
|
||||
('c:type', 'unsigned __int64'),
|
||||
('c:type', 'double'),
|
||||
# Standard C structures
|
||||
('c:struct', 'in6_addr'),
|
||||
('c:struct', 'in_addr'),
|
||||
('c:struct', 'stat'),
|
||||
('c:struct', 'statvfs'),
|
||||
('c:struct', 'timeval'),
|
||||
('c:struct', 'timespec'),
|
||||
# Standard C macros
|
||||
('c:macro', 'LLONG_MAX'),
|
||||
('c:macro', 'LLONG_MIN'),
|
||||
|
@ -269,12 +272,12 @@ nitpick_ignore += [
|
|||
('py:meth', 'index'), # list.index, tuple.index, etc.
|
||||
]
|
||||
|
||||
# gh-106948: Copy standard C types declared in the "c:type" domain to the
|
||||
# "c:identifier" domain, since "c:function" markup looks for types in the
|
||||
# "c:identifier" domain. Use list() to not iterate on items which are being
|
||||
# added
|
||||
# gh-106948: Copy standard C types declared in the "c:type" domain and C
|
||||
# structures declared in the "c:struct" domain to the "c:identifier" domain,
|
||||
# since "c:function" markup looks for types in the "c:identifier" domain. Use
|
||||
# list() to not iterate on items which are being added
|
||||
for role, name in list(nitpick_ignore):
|
||||
if role == 'c:type':
|
||||
if role in ('c:type', 'c:struct'):
|
||||
nitpick_ignore.append(('c:identifier', name))
|
||||
del role, name
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue