This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

classification
Title: calendar.{HTMLCalendar,TextCalendar}.formatyear have incorrect definition
Type: Stage:
Components: Documentation Versions: Python 2.6
process
Status: closed Resolution: fixed
Dependencies: Superseder:
Assigned To: georg.brandl Nosy List: georg.brandl, wathiede
Priority: normal Keywords:

Created on 2010-01-17 03:35 by wathiede, last changed 2022-04-11 14:56 by admin. This issue is now closed.

Messages (2)
msg97931 - (view) Author: Bill Thiede (wathiede) Date: 2010-01-17 03:35
The documentation for both HTMLCalendar and TextCalendar from the calendar module have formatyear defined as:

TextCalendar.formatyear(theyear, themonth[, w[, l[, c[, m]]]])

and 

HTMLCalendar. formatyear(theyear, themonth[, width])

However the function definitions are actually:

TextCalendar.formatyear(self, theyear, w=2, l=1, c=6, m=3)

and 

HTMLCalendar.formatyear(self, theyear, width=3)

There is no 'themonth' parameter in either.  I wouldn't be surprised if this was a cut-n-paste error from the 'formatmonth' variants.
msg97933 - (view) Author: Georg Brandl (georg.brandl) * (Python committer) Date: 2010-01-17 08:33
That was already fixed on trunk, but not yet merged to 2.6.  I've done so now in r77559.
History
Date User Action Args
2022-04-11 14:56:56adminsetgithub: 51971
2010-01-17 08:33:24georg.brandlsetstatus: open -> closed
resolution: fixed
messages: + msg97933
2010-01-17 03:35:25wathiedecreate