[issue7722] calendar.{HTMLCalendar, TextCalendar}.formatyear have incorrect definition

Bill Thiede report at bugs.python.org
Sun Jan 17 04:35:27 CET 2010


New submission from Bill Thiede <couchmoney at gmail.com>:

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.

----------
assignee: georg.brandl
components: Documentation
messages: 97931
nosy: georg.brandl, wathiede
severity: normal
status: open
title: calendar.{HTMLCalendar,TextCalendar}.formatyear have incorrect definition
versions: Python 2.6

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue7722>
_______________________________________


More information about the Python-bugs-list mailing list