[issue2018] TextCalendar.formatmonth is not influenced by setfirstweekday

2008-02-07 Thread MATSUI Tetsushi
MATSUI Tetsushi added the comment: In the message msg62100, I asked about the place of *setfirstweekday()*. Your answer in the message msg62173 was about *formatmonth()*. I don't think the fix is complete until some explanations are given for firstweekday and/or its getter/setter, since they have

[issue2018] TextCalendar.formatmonth is not influenced by setfirstweekday

2008-02-07 Thread Walter Dörwald
Walter Dörwald added the comment: You're supposed to use firstweekday as a property instead of using the getter method getfirstweekday(). Anyway this is fixed now in r60651 (trunk) and r60652 (release25-maint) -- resolution: accepted -> fixed status: open -> closed _

[issue2018] TextCalendar.formatmonth is not influenced by setfirstweekday

2008-02-07 Thread Walter Dörwald
Walter Dörwald added the comment: The doccumentation is here:http://docs.python.org/dev/library/calendar.html#calendar.TextCalendar.formatmonth (or in Doc/library/calendar.rst in the source). Anyway the first of those documentation bugs is fixed now in r60649 (trunk) and r60650 (release25-maint)

[issue2018] TextCalendar.formatmonth is not influenced by setfirstweekday

2008-02-06 Thread MATSUI Tetsushi
MATSUI Tetsushi added the comment: There is another wrong documentation about firstweekday. In the part of Calendar.iterweekdays, a method "firstweekday" appered. But indeed it means the method "getfirstweekday()", since firstweekday is merely an uncallable integer attribute of Calendar objects.

[issue2018] TextCalendar.formatmonth is not influenced by setfirstweekday

2008-02-06 Thread MATSUI Tetsushi
MATSUI Tetsushi added the comment: Thank you for the clarification. But then, where is the documentation about the setfirstweekday() method? __ Tracker <[EMAIL PROTECTED]> __ __

[issue2018] TextCalendar.formatmonth is not influenced by setfirstweekday

2008-02-06 Thread Walter Dörwald
Walter Dörwald added the comment: setfirstweekday() isn't supposed to have any influence on calendar objects created explicitely. The function setfirstweekday() is only for the module level interface. The documentation is wrong here. However you *can* change the first weekday with the setfirstwee

[issue2018] TextCalendar.formatmonth is not influenced by setfirstweekday

2008-02-06 Thread Christian Heimes
Changes by Christian Heimes: -- keywords: +easy priority: -> normal type: -> behavior __ Tracker <[EMAIL PROTECTED]> __ ___ Python-bugs-list m

[issue2018] TextCalendar.formatmonth is not influenced by setfirstweekday

2008-02-06 Thread MATSUI Tetsushi
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)