Message279228
The patch should include an update to documentation.
1. We should probably explain that python -mcalendar does not reproduce the output of UNIX cal. For example, on Mac OS (and various Linux variants):
$ cal 9 1752
September 1752
Su Mo Tu We Th Fr Sa
1 2 14 15 16
17 18 19 20 21 22 23
24 25 26 27 28 29 30
but
$ python3 -mcalendar 1752 9
September 1752
Mo Tu We Th Fr Sa Su
1 2 3
4 5 6 7 8 9 10
11 12 13 14 15 16 17
18 19 20 21 22 23 24
25 26 27 28 29 30
2. We should explain that while the calendar module relies on datetime, it implements an infinite calendar with a period of 400 years.
3. A reference should be made to ISO 8601 for our treatment of nonpositive years.
Given ISO 8601 and the simplicity of this change, I don't think Raymond will insist that we continue imposing datetime-like limits, but I would like to give him a chance to renew his objection once the no-limits calendar is documented. |
|
Date |
User |
Action |
Args |
2016-10-22 22:22:46 | belopolsky | set | recipients:
+ belopolsky, doerwalter, rhettinger, serhiy.storchaka, matrixise, xiang.zhang, Mariatta, golly |
2016-10-22 22:22:46 | belopolsky | set | messageid: <1477174966.19.0.924369457789.issue28281@psf.upfronthosting.co.za> |
2016-10-22 22:22:46 | belopolsky | link | issue28281 messages |
2016-10-22 22:22:45 | belopolsky | create | |
|