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.monthrange for February 2015
Type: behavior Stage: resolved
Components: Extension Modules Versions: Python 3.4
process
Status: closed Resolution: not a bug
Dependencies: Superseder:
Assigned To: Nosy List: ethan.furman, geoffreyspear, skarpovsky
Priority: normal Keywords:

Created on 2015-02-05 18:29 by skarpovsky, last changed 2022-04-11 14:58 by admin. This issue is now closed.

Messages (3)
msg235440 - (view) Author: Sergiy (skarpovsky) Date: 2015-02-05 18:29
>>>print(calendar.monthrange(2015,2))
(6, 28)
February has only 5 weeks.
msg235442 - (view) Author: Geoffrey Spear (geoffreyspear) * Date: 2015-02-05 18:37
"Returns weekday of first day of the month and number of days in month, for the specified year and month.".

The 6 means February began on a Sunday, not that there are 6 weeks in the month.
msg235443 - (view) Author: Ethan Furman (ethan.furman) * (Python committer) Date: 2015-02-05 18:44
https://docs.python.org/3/library/calendar.html#calendar.monthrange
History
Date User Action Args
2022-04-11 14:58:12adminsetgithub: 67587
2015-02-05 18:44:56ethan.furmansetstatus: open -> closed

nosy: + ethan.furman
messages: + msg235443

resolution: not a bug
stage: resolved
2015-02-05 18:37:25geoffreyspearsetnosy: + geoffreyspear
messages: + msg235442
2015-02-05 18:29:54skarpovskycreate