Skip to content

Commit 951b161

Browse files
bpo-36783: Add new references for C API Documentation changes (GH-13204)
(cherry picked from commit d28772a) Co-authored-by: Edison A <[email protected]>
1 parent 561c63c commit 951b161

File tree

2 files changed

+23
-6
lines changed

2 files changed

+23
-6
lines changed

Doc/c-api/datetime.rst

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -106,6 +106,12 @@ Macros to create objects:
106106
.. versionadded:: 3.6
107107
108108
109+
.. c:function:: PyObject* PyTime_FromTime(int hour, int minute, int second, int usecond)
110+
111+
Return a :class:`datetime.time` object with the specified hour, minute, second and
112+
microsecond.
113+
114+
109115
.. c:function:: PyObject* PyTime_FromTimeAndFold(int hour, int minute, int second, int usecond, int fold)
110116
111117
Return a :class:`datetime.time` object with the specified hour, minute, second,
@@ -114,12 +120,6 @@ Macros to create objects:
114120
.. versionadded:: 3.6
115121
116122
117-
.. c:function:: PyObject* PyTime_FromTime(int hour, int minute, int second, int usecond)
118-
119-
Return a :class:`datetime.time` object with the specified hour, minute, second and
120-
microsecond.
121-
122-
123123
.. c:function:: PyObject* PyDelta_FromDSU(int days, int seconds, int useconds)
124124
125125
Return a :class:`datetime.timedelta` object representing the given number

Doc/data/refcounts.dat

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -413,6 +413,16 @@ PyDateTime_FromDateAndTime:int:minute::
413413
PyDateTime_FromDateAndTime:int:second::
414414
PyDateTime_FromDateAndTime:int:usecond::
415415

416+
PyDateTime_FromDateAndTimeAndFold:PyObject*::+1:
417+
PyDateTime_FromDateAndTimeAndFold:int:year::
418+
PyDateTime_FromDateAndTimeAndFold:int:month::
419+
PyDateTime_FromDateAndTimeAndFold:int:day::
420+
PyDateTime_FromDateAndTimeAndFold:int:hour::
421+
PyDateTime_FromDateAndTimeAndFold:int:minute::
422+
PyDateTime_FromDateAndTimeAndFold:int:second::
423+
PyDateTime_FromDateAndTimeAndFold:int:usecond::
424+
PyDateTime_FromDateAndTimeAndFold:int:fold::
425+
416426
PyDateTime_FromTimestamp:PyObject*::+1:
417427
PyDateTime_FromTimestamp:PyObject*:args:0:
418428

@@ -2210,6 +2220,13 @@ PyTime_FromTime:int:minute::
22102220
PyTime_FromTime:int:second::
22112221
PyTime_FromTime:int:usecond::
22122222

2223+
PyTime_FromTimeAndFold:PyObject*::+1:
2224+
PyTime_FromTimeAndFold:int:hour::
2225+
PyTime_FromTimeAndFold:int:minute::
2226+
PyTime_FromTimeAndFold:int:second::
2227+
PyTime_FromTimeAndFold:int:usecond::
2228+
PyTime_FromTimeAndFold:int:fold::
2229+
22132230
PyTraceMalloc_Track:int:::
22142231
PyTraceMalloc_Track:unsigned int:domain::
22152232
PyTraceMalloc_Track:uintptr_t:ptr::

0 commit comments

Comments
 (0)