[docs] Calendar Documentation Bug

Melissa Thielen melissa.thielen at mwcradio.com
Wed Jan 23 23:00:42 CET 2013


Location: http://docs.python.org/2/library/calendar.html

For calendar.monthcalendar(), the documentation states "Each week begins
with Monday..."; however, really it is Sunday.

When doing a simple import calendar, calendar.firstweekday() in the python
shell, it returns 6 or Sunday. This is also confirmed when doing
calendar.monthcalendar(year, month) for any month. It's off by 1 if the
week were to begin on Monday, but correct if the week begins on Sunday.

Thanks!

-- 
Melissa Thielen
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/docs/attachments/20130123/a4dd15a0/attachment-0001.html>


More information about the docs mailing list