[New-bugs-announce] [issue2018] TextCalendar.formatmonth is not influenced by setfirstweekday

MATSUI Tetsushi report at bugs.python.org
Wed Feb 6 10:42:01 CET 2008


New submission from MATSUI Tetsushi:

TextCalendar.formatmonth is not influenced by setfirstweekday,
but the argument of constructor.

Documentation:
Depends on the first weekday as set by setfirstweekday().

actual behavior:
>>> cal0 = calendar.TextCalendar()
>>> print cal0.formatmonth(2008, 2)
   February 2008
Mo Tu We Th Fr Sa Su
             1  2  3
 4  5  6  7  8  9 10
11 12 13 14 15 16 17
18 19 20 21 22 23 24
25 26 27 28 29

>>> calendar.setfirstweekday(4)
>>> print cal0.formatmonth(2008, 2)
   February 2008
Mo Tu We Th Fr Sa Su
             1  2  3
 4  5  6  7  8  9 10
11 12 13 14 15 16 17
18 19 20 21 22 23 24
25 26 27 28 29

----------
components: Documentation
messages: 62090
nosy: mft
severity: normal
status: open
title: TextCalendar.formatmonth is not influenced by setfirstweekday
versions: Python 2.5, Python 2.6

__________________________________
Tracker <report at bugs.python.org>
<http://bugs.python.org/issue2018>
__________________________________


More information about the New-bugs-announce mailing list