[Python-checkins] r60649 - python/trunk/Doc/library/calendar.rst
walter.doerwald
python-checkins at python.org
Thu Feb 7 20:30:22 CET 2008
Author: walter.doerwald
Date: Thu Feb 7 20:30:22 2008
New Revision: 60649
Modified:
python/trunk/Doc/library/calendar.rst
Log:
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.
Modified: python/trunk/Doc/library/calendar.rst
==============================================================================
--- python/trunk/Doc/library/calendar.rst (original)
+++ python/trunk/Doc/library/calendar.rst Thu Feb 7 20:30:22 2008
@@ -117,9 +117,10 @@
.. method:: TextCalendar.formatmonth(theyear, themonth[, w[, l]])
Return a month's calendar in a multi-line string. If *w* is provided, it
- specifies the width of the date columns, which are centered. If *l* is given, it
- specifies the number of lines that each week will use. Depends on the first
- weekday as set by :func:`setfirstweekday`.
+ specifies the width of the date columns, which are centered. If *l* is given,
+ it specifies the number of lines that each week will use. Depends on the
+ first weekday as specified in the constructor or set by the
+ :meth:`setfirstweekday` method.
.. method:: TextCalendar.prmonth(theyear, themonth[, w[, l]])
@@ -129,11 +130,12 @@
.. method:: TextCalendar.formatyear(theyear, themonth[, w[, l[, c[, m]]]])
- Return a *m*-column calendar for an entire year as a multi-line string. Optional
- parameters *w*, *l*, and *c* are for date column width, lines per week, and
- number of spaces between month columns, respectively. Depends on the first
- weekday as set by :meth:`setfirstweekday`. The earliest year for which a
- calendar can be generated is platform-dependent.
+ Return a *m*-column calendar for an entire year as a multi-line string.
+ Optional parameters *w*, *l*, and *c* are for date column width, lines per
+ week, and number of spaces between month columns, respectively. Depends on
+ the first weekday as specified in the constructor or set by the
+ :meth:`setfirstweekday` method. The earliest year for which a calendar can
+ be generated is platform-dependent.
.. method:: TextCalendar.pryear(theyear[, w[, l[, c[, m]]]])
More information about the Python-checkins
mailing list