Hi! I’m not 100% sure right now (and I don’t have access to my laptop this week), but I think I considered adding this feature when I was working on that test coverage. In the end, I came across a very old thread (maybe a patch review?) where @rhettinger was opposed to changing the module’s interface and/or output — and his arguments were very solid. Maybe Raymond can quickly weigh in on this..
Activity
tanloong commented on Oct 16, 2025
I just found the change that brings about this behavior: 8b7bc06
The more original change: 49fd7fa#diff-7976dc087a43c5bd465c0df88ff25bca03e469ea5d17478d81fd17472df87c28R678
StanFromIreland commented on Oct 16, 2025
It has been like this for many versions, so I think this is a feature.
CC @AA-Turner
pythongh-140212: Add html for year-date option in Calendar
pgdr commented on Oct 16, 2025
@StanFromIreland Added PR in #140230
bxsx commented on Oct 16, 2025
Hi! I’m not 100% sure right now (and I don’t have access to my laptop this week), but I think I considered adding this feature when I was working on that test coverage. In the end, I came across a very old thread (maybe a patch review?) where @rhettinger was opposed to changing the module’s interface and/or output — and his arguments were very solid. Maybe Raymond can quickly weigh in on this..
pythongh-140212: Add blurb for calendar fix
pgdr commented on Oct 22, 2025
@bxsx @rhettinger If this fix is not wanted, I think we should at fix the error message error: incorrect number of arguments.
It would be better to say something like error: HTML formatting does not support year-month option.
The PR #140230 is in any case ready to be reviewed.
gh-140212: Add html for year-month option in Calendar (#140230)
pythongh-140212: Add html for year-month option in Calendar (python#1…