[Python-checkins] CVS: python/dist/src/Doc/lib libcalendar.tex,1.13,1.14
Fred L. Drake
fdrake@users.sourceforge.net
Tue, 11 Dec 2001 21:40:48 -0800
Update of /cvsroot/python/python/dist/src/Doc/lib
In directory usw-pr-cvs1:/tmp/cvs-serv5801/Doc/lib
Modified Files:
libcalendar.tex
Log Message:
Document that isleap() returns exactly 1 or 0, which is guaranteed by the
docstring.
This closes SF bug #485794.
Additional (very) small details were added.
Index: libcalendar.tex
===================================================================
RCS file: /cvsroot/python/python/dist/src/Doc/lib/libcalendar.tex,v
retrieving revision 1.13
retrieving revision 1.14
diff -C2 -d -r1.13 -r1.14
*** libcalendar.tex 2001/11/28 07:26:15 1.13
--- libcalendar.tex 2001/12/12 05:40:46 1.14
***************
*** 13,17 ****
the first day of the week, and Sunday as the last (the European
convention). Use \function{setfirstweekday()} to set the first day of the
! week to Sunday (6) or to any other weekday.
\begin{funcdesc}{setfirstweekday}{weekday}
--- 13,18 ----
the first day of the week, and Sunday as the last (the European
convention). Use \function{setfirstweekday()} to set the first day of the
! week to Sunday (6) or to any other weekday. Parameters that specify
! dates are given as integers.
\begin{funcdesc}{setfirstweekday}{weekday}
***************
*** 33,42 ****
\begin{funcdesc}{isleap}{year}
! Returns true if \var{year} is a leap year.
\end{funcdesc}
\begin{funcdesc}{leapdays}{y1, y2}
Returns the number of leap years in the range
! [\var{y1}\ldots\var{y2}).
\end{funcdesc}
--- 34,43 ----
\begin{funcdesc}{isleap}{year}
! Returns \code{1} if \var{year} is a leap year, otherwise \code{0}.
\end{funcdesc}
\begin{funcdesc}{leapdays}{y1, y2}
Returns the number of leap years in the range
! [\var{y1}\ldots\var{y2}), where \var{y1} and \var{y2} are years.
\end{funcdesc}