New submission from Bill Thiede <couchmo...@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 <rep...@bugs.python.org> <http://bugs.python.org/issue7722> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com