mirror of https://github.com/python/cpython
Backport LaTeX version of r60649:
Clarify that the output of TextCalendar.formatmonth() and TextCalendar.formatyear() for custom instances won't be influenced by calls to the module global setfirstweekday() function. Fixes #2018.
This commit is contained in:
parent
527bf3a826
commit
902af8da7c
|
@ -113,8 +113,8 @@ This class can be used to generate plain text calendars.
|
||||||
Return a month's calendar in a multi-line string. If \var{w} is
|
Return a month's calendar in a multi-line string. If \var{w} is
|
||||||
provided, it specifies the width of the date columns, which are
|
provided, it specifies the width of the date columns, which are
|
||||||
centered. If \var{l} is given, it specifies the number of lines that
|
centered. If \var{l} is given, it specifies the number of lines that
|
||||||
each week will use. Depends on the first weekday as set by
|
each week will use. Depends on the first weekday as specified in the constructor
|
||||||
\function{setfirstweekday()}.
|
or set by the \method{setfirstweekday()} method.
|
||||||
\end{methoddesc}
|
\end{methoddesc}
|
||||||
|
|
||||||
\begin{methoddesc}{prmonth}{theyear, themonth\optional{, w\optional{, l}}}
|
\begin{methoddesc}{prmonth}{theyear, themonth\optional{, w\optional{, l}}}
|
||||||
|
@ -126,9 +126,9 @@ Print a month's calendar as returned by \method{formatmonth()}.
|
||||||
Return a \var{m}-column calendar for an entire year as a multi-line string.
|
Return a \var{m}-column calendar for an entire year as a multi-line string.
|
||||||
Optional parameters \var{w}, \var{l}, and \var{c} are for date column
|
Optional parameters \var{w}, \var{l}, and \var{c} are for date column
|
||||||
width, lines per week, and number of spaces between month columns,
|
width, lines per week, and number of spaces between month columns,
|
||||||
respectively. Depends on the first weekday as set by
|
respectively. Depends on the first weekday as specified in the constructor or
|
||||||
\method{setfirstweekday()}. The earliest year for which a calendar can
|
set by the \method{setfirstweekday()} method. The earliest year for which a
|
||||||
be generated is platform-dependent.
|
calendar can be generated is platform-dependent.
|
||||||
\end{methoddesc}
|
\end{methoddesc}
|
||||||
|
|
||||||
\begin{methoddesc}{pryear}{theyear\optional{, w\optional{, l\optional{,
|
\begin{methoddesc}{pryear}{theyear\optional{, w\optional{, l\optional{,
|
||||||
|
|
Loading…
Reference in New Issue