[Python-checkins] python/dist/src/Doc/lib libdatetime.tex,1.47,1.48
montanaro@users.sourceforge.net
montanaro@users.sourceforge.net
Wed, 16 Jul 2003 12:46:09 -0700
Update of /cvsroot/python/python/dist/src/Doc/lib
In directory sc8-pr-cvs1:/tmp/cvs-serv5023
Modified Files:
libdatetime.tex
Log Message:
expose the C API subsection which was hidden from LaTeX in a comment. In
the info conversion the \comment LaTeX macro mapped to a Texinfo @ignore
macro. Unfortunately, py2texi.el is not smart enough to avoid generating
links to the @ignore'd section, which causes makeinfo to croak.
Exposing this text is probably not the most correct thing to do, as this
documentation really belongs in the C API manual. This does get the info
files generated, however, which is a more practical goal considering the
impending release of 2.3rc1.
Index: libdatetime.tex
===================================================================
RCS file: /cvsroot/python/python/dist/src/Doc/lib/libdatetime.tex,v
retrieving revision 1.47
retrieving revision 1.48
diff -C2 -d -r1.47 -r1.48
*** libdatetime.tex 2 Jul 2003 14:44:55 -0000 1.47
--- libdatetime.tex 16 Jul 2003 19:46:07 -0000 1.48
***************
*** 1401,1410 ****
- \begin{comment}
-
\subsection{C API}
Struct typedefs:
PyDateTime_Date
PyDateTime_DateTime
--- 1401,1409 ----
\subsection{C API}
Struct typedefs:
+ \begin{verbatim}
PyDateTime_Date
PyDateTime_DateTime
***************
*** 1412,1418 ****
--- 1411,1419 ----
PyDateTime_Delta
PyDateTime_TZInfo
+ \end{verbatim}
Type-check macros:
+ \begin{verbatim}
PyDate_Check(op)
PyDate_CheckExact(op)
***************
*** 1429,1454 ****
PyTZInfo_Check(op)
PyTZInfo_CheckExact(op)
Accessor macros:
All objects are immutable, so accessors are read-only. All macros
! return ints:
!
! For \class{date} and \class{datetime} instances:
! PyDateTime_GET_YEAR(o)
! PyDateTime_GET_MONTH(o)
! PyDateTime_GET_DAY(o)
! For \class{datetime} instances:
! PyDateTime_DATE_GET_HOUR(o)
! PyDateTime_DATE_GET_MINUTE(o)
! PyDateTime_DATE_GET_SECOND(o)
! PyDateTime_DATE_GET_MICROSECOND(o)
! For \class{time} instances:
! PyDateTime_TIME_GET_HOUR(o)
! PyDateTime_TIME_GET_MINUTE(o)
! PyDateTime_TIME_GET_SECOND(o)
! PyDateTime_TIME_GET_MICROSECOND(o)
- \end{comment}
--- 1430,1459 ----
PyTZInfo_Check(op)
PyTZInfo_CheckExact(op)
+ \end{verbatim}
Accessor macros:
All objects are immutable, so accessors are read-only. All macros
! return ints. For \class{date} and \class{datetime} instances:
! \begin{verbatim}
! PyDateTime_GET_YEAR(o)
! PyDateTime_GET_MONTH(o)
! PyDateTime_GET_DAY(o)
! \end{verbatim}
! For \class{datetime} instances:
! \begin{verbatim}
! PyDateTime_DATE_GET_HOUR(o)
! PyDateTime_DATE_GET_MINUTE(o)
! PyDateTime_DATE_GET_SECOND(o)
! PyDateTime_DATE_GET_MICROSECOND(o)
! \end{verbatim}
! For \class{time} instances:
! \begin{verbatim}
! PyDateTime_TIME_GET_HOUR(o)
! PyDateTime_TIME_GET_MINUTE(o)
! PyDateTime_TIME_GET_SECOND(o)
! PyDateTime_TIME_GET_MICROSECOND(o)
! \end{verbatim}