Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit bfa6872

Browse files
author
Skip Montanaro
committed
Zap the C API subsection altogether for now. It's not actually usable from
C yet anyway.
1 parent aa9b39f commit bfa6872

1 file changed

Lines changed: 0 additions & 58 deletions

File tree

Doc/lib/libdatetime.tex

Lines changed: 0 additions & 58 deletions
Original file line numberDiff line numberDiff line change
@@ -1399,61 +1399,3 @@ \subsection{\method{strftime()} Behavior}
13991399
varies across platforms. Regardless of platform, years before 1900
14001400
cannot be used.
14011401

1402-
1403-
\subsection{C API}
1404-
1405-
Struct typedefs:
1406-
1407-
\begin{verbatim}
1408-
PyDateTime_Date
1409-
PyDateTime_DateTime
1410-
PyDateTime_Time
1411-
PyDateTime_Delta
1412-
PyDateTime_TZInfo
1413-
\end{verbatim}
1414-
1415-
Type-check macros:
1416-
1417-
\begin{verbatim}
1418-
PyDate_Check(op)
1419-
PyDate_CheckExact(op)
1420-
1421-
PyDateTime_Check(op)
1422-
PyDateTime_CheckExact(op)
1423-
1424-
PyTime_Check(op)
1425-
PyTime_CheckExact(op)
1426-
1427-
PyDelta_Check(op)
1428-
PyDelta_CheckExact(op)
1429-
1430-
PyTZInfo_Check(op)
1431-
PyTZInfo_CheckExact(op)
1432-
\end{verbatim}
1433-
1434-
Accessor macros:
1435-
1436-
All objects are immutable, so accessors are read-only. All macros
1437-
return ints. For \class{date} and \class{datetime} instances:
1438-
\begin{verbatim}
1439-
PyDateTime_GET_YEAR(o)
1440-
PyDateTime_GET_MONTH(o)
1441-
PyDateTime_GET_DAY(o)
1442-
\end{verbatim}
1443-
1444-
For \class{datetime} instances:
1445-
\begin{verbatim}
1446-
PyDateTime_DATE_GET_HOUR(o)
1447-
PyDateTime_DATE_GET_MINUTE(o)
1448-
PyDateTime_DATE_GET_SECOND(o)
1449-
PyDateTime_DATE_GET_MICROSECOND(o)
1450-
\end{verbatim}
1451-
1452-
For \class{time} instances:
1453-
\begin{verbatim}
1454-
PyDateTime_TIME_GET_HOUR(o)
1455-
PyDateTime_TIME_GET_MINUTE(o)
1456-
PyDateTime_TIME_GET_SECOND(o)
1457-
PyDateTime_TIME_GET_MICROSECOND(o)
1458-
\end{verbatim}
1459-

0 commit comments

Comments
 (0)