[Python-checkins] [3.9] gh-90359: Update documentation to follow PEP 495. (gh-94800). (gh-94835)

ned-deily webhook-mailer at python.org
Thu Jul 28 15:31:27 EDT 2022


https://github.com/python/cpython/commit/7b8776511a79c0cb3ec21bbe41d45139e6e75603
commit: 7b8776511a79c0cb3ec21bbe41d45139e6e75603
branch: 3.9
author: Dong-hee Na <donghee.na at python.org>
committer: ned-deily <nad at python.org>
date: 2022-07-28T15:31:17-04:00
summary:

[3.9] gh-90359: Update documentation to follow PEP 495. (gh-94800). (gh-94835)

(cherry picked from commit 07374cce52abb7fd39729dc1b646ca3029b64c64)

Co-authored-by: Dong-hee Na <donghee.na at python.org>

files:
M Doc/c-api/datetime.rst

diff --git a/Doc/c-api/datetime.rst b/Doc/c-api/datetime.rst
index 66f148df28680..ad6ae65335a16 100644
--- a/Doc/c-api/datetime.rst
+++ b/Doc/c-api/datetime.rst
@@ -191,6 +191,13 @@ must not be ``NULL``, and the type is not checked:
    Return the microsecond, as an int from 0 through 999999.
 
 
+.. c:function:: int PyDateTime_DATE_GET_FOLD(PyDateTime_DateTime *o)
+
+   Return the fold, as an int from 0 through 1.
+
+   .. versionadded:: 3.6
+
+
 Macros to extract fields from time objects.  The argument must be an instance of
 :c:data:`PyDateTime_Time`, including subclasses. The argument must not be ``NULL``,
 and the type is not checked:
@@ -215,6 +222,13 @@ and the type is not checked:
    Return the microsecond, as an int from 0 through 999999.
 
 
+.. c:function:: int PyDateTime_TIME_GET_FOLD(PyDateTime_Time *o)
+
+   Return the fold, as an int from 0 through 1.
+
+   .. versionadded:: 3.6
+
+
 Macros to extract fields from time delta objects.  The argument must be an
 instance of :c:data:`PyDateTime_Delta`, including subclasses. The argument must
 not be ``NULL``, and the type is not checked:



More information about the Python-checkins mailing list