Title: Calendar fails to produce html on year and month · Issue #140212 · python/cpython · GitHub
Open Graph Title: Calendar fails to produce html on year and month · Issue #140212 · python/cpython
X Title: Calendar fails to produce html on year and month · Issue #140212 · python/cpython
Description: Bug report Bug description: Calling python -m calendar -t html 2025 10 results in the message error: incorrect number of arguments. However, according to the arguments, it should be supported: calendar.py [-h] [-w WIDTH] [-l LINES] [-s S...
Open Graph Description: Bug report Bug description: Calling python -m calendar -t html 2025 10 results in the message error: incorrect number of arguments. However, according to the arguments, it should be supported: cale...
X Description: Bug report Bug description: Calling python -m calendar -t html 2025 10 results in the message error: incorrect number of arguments. However, according to the arguments, it should be supported: cale...
Opengraph URL: https://github.com/python/cpython/issues/140212
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Calendar fails to produce html on year and month","articleBody":"# Bug report\n\n### Bug description:\n\nCalling\n\n```\npython -m calendar -t html 2025 10\n```\n\nresults in the message `error: incorrect number of arguments`.\n\nHowever, according to the arguments, it should be supported:\n\n```\ncalendar.py [-h] [-w WIDTH] [-l LINES] [-s SPACING] [-m MONTHS] [-c CSS] [-L LOCALE] [-e ENCODING] [-t {text,html}] [-f FIRST_WEEKDAY] [year] [month]\n```\n\nI have attached a patch, and if there's support for it, I can create a PR for it.\n\n[0001-Add-calendar-year-month-support-for-html.patch](https://github.com/user-attachments/files/22949906/0001-Add-calendar-year-month-support-for-html.patch)\n\n### CPython versions tested on:\n\n3.12, 3.13, 3.14\n\n### Operating systems tested on:\n\nLinux\n\n\u003c!-- gh-linked-prs -->\n### Linked PRs\n* gh-140230\n\u003c!-- /gh-linked-prs -->\n","author":{"url":"https://github.com/pgdr","@type":"Person","name":"pgdr"},"datePublished":"2025-10-16T13:04:50Z","url":"https://github.com/python/cpython/issues/140212"}
| react-profiling | 0 |
| react-import-map | react,react-dom,react-dom/client,react-dom/profiling,react-is,react/compiler-runtime,react/jsx-dev-runtime,react/jsx-runtime,scheduler@b8488ee2c322 |
| route-pattern | /_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format) |
| route-controller | voltron_issues_fragments |
| route-action | issue_layout |
| fetch-nonce | v2:e8984d3e-27ae-04eb-f5de-140183253ff5 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | EDAC:2E9D3B:BA095C:E9D517:6B023687 |
| html-safe-nonce | 9c376703623c82d6b369ffd60099b2d9c18eba2ae5a70f22dcdb14919e4eb8c3 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJFREFDOjJFOUQzQjpCQTA5NUM6RTlENTE3OjZCMDIzNjg3IiwidmlzaXRvcl9pZCI6IjE5NDY0ODc1NzI3MDg2MDM1MjciLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ== |
| visitor-hmac | cadf728d063a5f42f592f38aba4dd3b1111cbcb2e505cd9225a5993e162cc19a |
| hovercard-subject-tag | issue:3521811017 |
| github-keyboard-shortcuts | repository,issues,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/python/cpython/140212/issue_layout |
| twitter:image | https://opengraph.githubassets.com/b82004611bcc3e87eda259092d70dcc590818a994e0ab63eb0009f10efe75104/python/cpython/issues/140212 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/b82004611bcc3e87eda259092d70dcc590818a994e0ab63eb0009f10efe75104/python/cpython/issues/140212 |
| og:image:alt | Bug report Bug description: Calling python -m calendar -t html 2025 10 results in the message error: incorrect number of arguments. However, according to the arguments, it should be supported: cale... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | pgdr |
| hostname | github.com |
| expected-hostname | github.com |
| None | 87e774ee7c6b3bee0490394e4d3e57ec9dbc956f74b87ea685dc8996c1676456 |
| turbo-cache-control | no-preview |
| go-import | github.com/python/cpython git https://github.com/python/cpython.git |
| octolytics-dimension-user_id | 1525981 |
| octolytics-dimension-user_login | python |
| octolytics-dimension-repository_id | 81598961 |
| octolytics-dimension-repository_nwo | python/cpython |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 81598961 |
| octolytics-dimension-repository_network_root_nwo | python/cpython |
| turbo-body-classes | logged-out env-production page-responsive |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | 423dbb54c5e7bfecc838eb387c1435eb3d0e760d |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
| react-app-name | issues |
Links:
Viewport: width=device-width