Skip to content

Commit

Permalink
bpo-36783: Add new references for C API Documentation changes (GH-13204)
Browse files Browse the repository at this point in the history
(cherry picked from commit d28772a)

Co-authored-by: Edison A <20975616+SimiCode@users.noreply.github.com>
  • Loading branch information
miss-islington and edison12a committed May 19, 2019
1 parent 561c63c commit 951b161
Show file tree
Hide file tree
Showing 2 changed files with 23 additions and 6 deletions.
12 changes: 6 additions & 6 deletions Doc/c-api/datetime.rst
Original file line number Diff line number Diff line change
Expand Up @@ -106,6 +106,12 @@ Macros to create objects:
.. versionadded:: 3.6
.. c:function:: PyObject* PyTime_FromTime(int hour, int minute, int second, int usecond)
Return a :class:`datetime.time` object with the specified hour, minute, second and
microsecond.
.. c:function:: PyObject* PyTime_FromTimeAndFold(int hour, int minute, int second, int usecond, int fold)
Return a :class:`datetime.time` object with the specified hour, minute, second,
Expand All @@ -114,12 +120,6 @@ Macros to create objects:
.. versionadded:: 3.6
.. c:function:: PyObject* PyTime_FromTime(int hour, int minute, int second, int usecond)
Return a :class:`datetime.time` object with the specified hour, minute, second and
microsecond.
.. c:function:: PyObject* PyDelta_FromDSU(int days, int seconds, int useconds)
Return a :class:`datetime.timedelta` object representing the given number
Expand Down
17 changes: 17 additions & 0 deletions Doc/data/refcounts.dat
Original file line number Diff line number Diff line change
Expand Up @@ -413,6 +413,16 @@ PyDateTime_FromDateAndTime:int:minute::
PyDateTime_FromDateAndTime:int:second::
PyDateTime_FromDateAndTime:int:usecond::

PyDateTime_FromDateAndTimeAndFold:PyObject*::+1:
PyDateTime_FromDateAndTimeAndFold:int:year::
PyDateTime_FromDateAndTimeAndFold:int:month::
PyDateTime_FromDateAndTimeAndFold:int:day::
PyDateTime_FromDateAndTimeAndFold:int:hour::
PyDateTime_FromDateAndTimeAndFold:int:minute::
PyDateTime_FromDateAndTimeAndFold:int:second::
PyDateTime_FromDateAndTimeAndFold:int:usecond::
PyDateTime_FromDateAndTimeAndFold:int:fold::

PyDateTime_FromTimestamp:PyObject*::+1:
PyDateTime_FromTimestamp:PyObject*:args:0:

Expand Down Expand Up @@ -2210,6 +2220,13 @@ PyTime_FromTime:int:minute::
PyTime_FromTime:int:second::
PyTime_FromTime:int:usecond::

PyTime_FromTimeAndFold:PyObject*::+1:
PyTime_FromTimeAndFold:int:hour::
PyTime_FromTimeAndFold:int:minute::
PyTime_FromTimeAndFold:int:second::
PyTime_FromTimeAndFold:int:usecond::
PyTime_FromTimeAndFold:int:fold::

PyTraceMalloc_Track:int:::
PyTraceMalloc_Track:unsigned int:domain::
PyTraceMalloc_Track:uintptr_t:ptr::
Expand Down

0 comments on commit 951b161

Please sign in to comment.