René's URL Explorer Experiment


Title: gh-140212: Add html for year-month option in Calendar by pgdr · Pull Request #140230 · python/cpython · GitHub

Open Graph Title: gh-140212: Add html for year-month option in Calendar by pgdr · Pull Request #140230 · python/cpython

X Title: gh-140212: Add html for year-month option in Calendar by pgdr · Pull Request #140230 · python/cpython

Description: Running python3.13 -m calendar 2025 pretty-prints the calendar for all of 2025. If we add the month at the end, it only prints the month. python3.13 -m calendar 2025 It is possible to get HTML output by using python -m calendar -t html 2025, which gives the calender for 2025 in HTML format. However, if we add the month, python -m calendar -t html 2025 10 it fails: [~]$ python3.13 -m calendar -t html 2025 10 usage: calendar.py [-h] [-w WIDTH] [-l LINES] [-s SPACING] [-m MONTHS] [-c CSS] [-L LOCALE] [-e ENCODING] [-t {text,html}] [-f FIRST_WEEKDAY] [year] [month] calendar.py: error: incorrect number of arguments This PR simply adds support for HTML-formatting the year-month option. A test is included, and one existing test is removed: a test verifying that the year month option fails. Issue: gh-140212

Open Graph Description: Running python3.13 -m calendar 2025 pretty-prints the calendar for all of 2025. If we add the month at the end, it only prints the month. python3.13 -m calendar 2025 It is possible to get HTML out...

X Description: Running python3.13 -m calendar 2025 pretty-prints the calendar for all of 2025. If we add the month at the end, it only prints the month. python3.13 -m calendar 2025 It is possible to get HTML out...

Opengraph URL: https://github.com/python/cpython/pull/140230

X: @github

direct link

Domain: github.com

react-profiling0
react-import-mapreact,react-dom,react-dom/client,react-dom/profiling,react-is,react/compiler-runtime,react/jsx-dev-runtime,react/jsx-runtime,scheduler@b8488ee2c322
route-pattern/:user_id/:repository/pull/:id/files(.:format)
route-controllerpull_requests
route-actionfiles
fetch-noncev2:d6b3cea9-c9fb-ade0-f699-379454894a9b
current-catalog-service-hashae870bc5e265a340912cde392f23dad3671a0a881730ffdadd82f2f57d81641b
request-idC1AA:3F8AB1:4C174CB:605E5EF:6B023F4E
html-safe-noncedb1490240ebc2e293f73f7f11e1eafc4c81e50181de5eae3d3c3baf8b336002b
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJDMUFBOjNGOEFCMTo0QzE3NENCOjYwNUU1RUY6NkIwMjNGNEUiLCJ2aXNpdG9yX2lkIjoiNDI5OTUyNTg4NTg4ODk3MDU3NCIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9
visitor-hmac7024ed2c10db7ee034c3e2b93580c4df68d0455a60d6b484b5cb2505117cdf7a
hovercard-subject-tagpull_request:2921827114
github-keyboard-shortcutsrepository,pull-request-list,pull-request-conversation,pull-request-files-changed,copilot
google-site-verificationApib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I
octolytics-urlhttps://collector.github.com/github/collect
analytics-location///pull_requests/show/files
fb:app_id1401488693436528
apple-itunes-appapp-id=1477376905, app-argument=https://github.com/python/cpython/pull/140230/files
twitter:imagehttps://avatars.githubusercontent.com/u/17569537?s=400&v=4
twitter:cardsummary_large_image
og:imagehttps://avatars.githubusercontent.com/u/17569537?s=400&v=4
og:image:altRunning python3.13 -m calendar 2025 pretty-prints the calendar for all of 2025. If we add the month at the end, it only prints the month. python3.13 -m calendar 2025 It is possible to get HTML out...
og:site_nameGitHub
og:typeobject
hostnamegithub.com
expected-hostnamegithub.com
None87e774ee7c6b3bee0490394e4d3e57ec9dbc956f74b87ea685dc8996c1676456
turbo-cache-controlno-preview
diff-viewunified
go-importgithub.com/python/cpython git https://github.com/python/cpython.git
octolytics-dimension-user_id1525981
octolytics-dimension-user_loginpython
octolytics-dimension-repository_id81598961
octolytics-dimension-repository_nwopython/cpython
octolytics-dimension-repository_publictrue
octolytics-dimension-repository_is_forkfalse
octolytics-dimension-repository_network_root_id81598961
octolytics-dimension-repository_network_root_nwopython/cpython
turbo-body-classeslogged-out env-production page-responsive full-width
disable-turbotrue
browser-stats-urlhttps://api.github.com/_private/browser/stats
browser-errors-urlhttps://api.github.com/_private/browser/errors
release423dbb54c5e7bfecc838eb387c1435eb3d0e760d
ui-targetfull
theme-color#1e2327
color-schemelight dark

Links:

Skip to contenthttps://github.com/python/cpython/pull/140230/files#start-of-content
https://github.com/
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fpython%2Fcpython%2Fpull%2F140230%2Ffiles
GitHubRepository hosting, code review, and collaborationhttps://github.com/platform
CopilotAI coding agent for tasks, projects, and automated workhttps://github.com/features/copilot
ActionsCI/CD and automationhttps://github.com/features/actions
Code QualityQuality analysis, fixes, and enforcementhttps://github.com/features/code-quality
CodespacesCloud development environmentshttps://github.com/features/codespaces
Code SecurityVulnerability detection and remediationhttps://github.com/security/advanced-security/code-security
Secret ProtectionSecret scanning and leak preventionhttps://github.com/security/advanced-security/secret-protection
All Featureshttps://github.com/features
Documentationhttps://docs.github.com/en
Traininghttps://learn.github.com/skills
Certificationshttps://learn.github.com/credentials
Build with Copilothttps://github.com/features/ai
Customize Copilothttps://docs.github.com/en/copilot/how-tos/copilot-on-github/customize-copilot/customize-copilot-overview
Integrationshttps://github.com/marketplace
Trending reposhttps://github.com/trending
GitHub Sponsorshttps://github.com/open-source/sponsors
Developer articleshttps://github.com/resources/articles
ChangelogYour source for the latest features, improvements, and fixes across GitHub products, all in one place.https://github.blog/changelog/
Enterpriseshttps://github.com/enterprise
Teamhttps://github.com/team
Startupshttps://github.com/enterprise/startups
Nonprofitshttps://github.com/solutions/industry/nonprofits
Healthcarehttps://github.com/solutions/industry/healthcare
Financial serviceshttps://github.com/solutions/industry/financial-services
Manufacturinghttps://github.com/solutions/industry/manufacturing
Governmenthttps://github.com/solutions/industry/government
See all industrieshttps://github.com/solutions/industry
Why GitHubhttps://github.com/why-github
Customer Storieshttps://github.com/customer-stories
Business insightshttps://github.com/solutions/executive-insights
Trust Centerhttps://github.com/trust-center
GitHub Advanced SecurityEnterprise-grade code securityhttps://github.com/security/advanced-security
Copilot for businessEnterprise-grade AI featureshttps://github.com/features/copilot/copilot-business
Premium SupportEnterprise-grade 24/7 supporthttps://github.com/enterprise/premium-support
Documentationhttps://docs.github.com/en
Resource centerhttps://github.com/resources
Bloghttps://github.blog/
Events & webinarshttps://github.com/resources/events
Community Forumhttps://github.com/orgs/community/discussions
Customer Storieshttps://github.com/customer-stories
Integrationshttps://github.com/marketplace
Customer supporthttps://help.github.com/
Traininghttps://learn.github.com/skills
GitHub Statushttps://www.githubstatus.com/
Abouthttps://github.com/about
Partnershttps://github.com/partners
Changeloghttps://github.blog/changelog/
GitHub UniverseThe event for developers, by developers — talks, workshops, and what’s next for GitHub.https://githubuniverse.com/
Pricinghttps://github.com/pricing
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fpython%2Fcpython%2Fpull%2F140230%2Ffiles
Sign uphttps://github.com/signup?ref_cta=Sign+up&ref_loc=header+logged+out&ref_page=%2F%3Cuser-name%3E%2F%3Crepo-name%3E%2Fpull_requests%2Fshow%2Ffiles&source=header-repo&source_repo=python%2Fcpython
Reloadhttps://github.com/python/cpython/pull/140230/files
Reloadhttps://github.com/python/cpython/pull/140230/files
Reloadhttps://github.com/python/cpython/pull/140230/files
pythonhttps://github.com/python
cpythonhttps://github.com/python/cpython
Codehttps://github.com/python/cpython
Issues5k+ (5k+)https://github.com/python/cpython/issues
Pull requests2.4k (2.4k)https://github.com/python/cpython/pulls
Actionshttps://github.com/python/cpython/actions
Projectshttps://github.com/python/cpython/projects
Security and qualityhttps://github.com/python/cpython/security
Insightshttps://github.com/python/cpython/insights
Sign up for GitHub https://github.com/signup?return_to=%2Fpython%2Fcpython%2Fissues%2Fnew%2Fchoose
terms of servicehttps://docs.github.com/terms
privacy statementhttps://docs.github.com/privacy
Sign inhttps://github.com/login?return_to=%2Fpython%2Fcpython%2Fissues%2Fnew%2Fchoose
hugovkhttps://github.com/hugovk
python:mainhttps://github.com/python/cpython/tree/main
pgdr:calendar-html-monthhttps://github.com/pgdr/cpython/tree/calendar-html-month
Conversation 18 https://github.com/python/cpython/pull/140230
Commits 9 https://github.com/python/cpython/pull/140230/commits
Checks 0 https://github.com/python/cpython/pull/140230/checks
Files changed https://github.com/python/cpython/pull/140230/files
Please reload this pagehttps://github.com/python/cpython/pull/140230/files
gh-140212: Add html for year-month option in Calendar https://github.com/python/cpython/pull/140230/files#top
Show all changes 9 commits https://github.com/python/cpython/pull/140230/files
1a9f1fb gh-140212: Add html for year-date option in Calendar pgdr Oct 16, 2025 https://github.com/python/cpython/pull/140230/commits/1a9f1fb6dad6e86962ea7d2bbed2bd6c30fedadf
4c3384b gh-140212: Add blurb for calendar fix pgdr Oct 16, 2025 https://github.com/python/cpython/pull/140230/commits/4c3384b5da4e5279e7cd3e7b02d3363ebb883a98
1e2943b Update documentation for arguments to calendar pgdr Oct 16, 2025 https://github.com/python/cpython/pull/140230/commits/1e2943bb9706d1a6a6600853655188d79711165c
b2f6f22 Update documentation for Calendar's HTML format pgdr Oct 16, 2025 https://github.com/python/cpython/pull/140230/commits/b2f6f226e6ce8efcde51a774a0cdcc28baf26958
87248cb Move blurb to library pgdr Oct 20, 2025 https://github.com/python/cpython/pull/140230/commits/87248cb7003957bd7e4c855b30fa3650cc650712
e0f9a9e Fix backticks in blurb, add contributed pgdr Oct 22, 2025 https://github.com/python/cpython/pull/140230/commits/e0f9a9e12fb350beebb8ba8ac35ab8aa549bc6a5
f54f757 Refactor out html page pgdr Oct 22, 2025 https://github.com/python/cpython/pull/140230/commits/f54f75799e795ccf967e9a33da1aa730e098f67f
042034c Remove duplicate function pgdr Oct 22, 2025 https://github.com/python/cpython/pull/140230/commits/042034c92e89069c5580c8515fbbddd7f909d98d
d1b9b2b Add What's new entry pgdr Oct 23, 2025 https://github.com/python/cpython/pull/140230/commits/d1b9b2b663588d8525f39c8e2e91d3bbed88dc41
Clear filters https://github.com/python/cpython/pull/140230/files
Please reload this pagehttps://github.com/python/cpython/pull/140230/files
Please reload this pagehttps://github.com/python/cpython/pull/140230/files
calendar.rst https://github.com/python/cpython/pull/140230/files#diff-ed4a14fd44aa1921a700e6c19597ba19b317a302a286f829bb9cde63807f5fbe
3.15.rst https://github.com/python/cpython/pull/140230/files#diff-bd7a9c5b54eeb2b40e6db5e48e8d79d309d8738e776a40918773c6840189edf9
calendar.py https://github.com/python/cpython/pull/140230/files#diff-7976dc087a43c5bd465c0df88ff25bca03e469ea5d17478d81fd17472df87c28
test_calendar.py https://github.com/python/cpython/pull/140230/files#diff-09db557aabda14ff2505042e4f8ac55e5c91acea70fa9a7d5697c27a941c8bec
2025-10-16-22-49-16.gh-issue-140212.llBNd0.rst https://github.com/python/cpython/pull/140230/files#diff-edf6e07b6364c939c81f08e1b683be17be8969ab489b2119464261b445e07637
Doc/library/calendar.rsthttps://github.com/python/cpython/pull/140230/files#diff-ed4a14fd44aa1921a700e6c19597ba19b317a302a286f829bb9cde63807f5fbe
View file https://github.com/pgdr/cpython/blob/d1b9b2b663588d8525f39c8e2e91d3bbed88dc41/Doc/library/calendar.rst
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/python/cpython/pull/140230/{{ revealButtonHref }}
https://github.com/python/cpython/pull/140230/files#diff-ed4a14fd44aa1921a700e6c19597ba19b317a302a286f829bb9cde63807f5fbe
https://github.com/python/cpython/pull/140230/files#diff-ed4a14fd44aa1921a700e6c19597ba19b317a302a286f829bb9cde63807f5fbe
https://github.com/python/cpython/blob/main/.github/CODEOWNERS#L116
Doc/whatsnew/3.15.rsthttps://github.com/python/cpython/pull/140230/files#diff-bd7a9c5b54eeb2b40e6db5e48e8d79d309d8738e776a40918773c6840189edf9
View file https://github.com/pgdr/cpython/blob/d1b9b2b663588d8525f39c8e2e91d3bbed88dc41/Doc/whatsnew/3.15.rst
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/python/cpython/pull/140230/{{ revealButtonHref }}
https://github.com/python/cpython/pull/140230/files#diff-bd7a9c5b54eeb2b40e6db5e48e8d79d309d8738e776a40918773c6840189edf9
https://github.com/python/cpython/pull/140230/files#diff-bd7a9c5b54eeb2b40e6db5e48e8d79d309d8738e776a40918773c6840189edf9
https://github.com/python/cpython/blob/main/.github/CODEOWNERS#L387
Lib/calendar.pyhttps://github.com/python/cpython/pull/140230/files#diff-7976dc087a43c5bd465c0df88ff25bca03e469ea5d17478d81fd17472df87c28
View file https://github.com/pgdr/cpython/blob/d1b9b2b663588d8525f39c8e2e91d3bbed88dc41/Lib/calendar.py
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/python/cpython/pull/140230/{{ revealButtonHref }}
https://github.com/python/cpython/pull/140230/files#diff-7976dc087a43c5bd465c0df88ff25bca03e469ea5d17478d81fd17472df87c28
https://github.com/python/cpython/pull/140230/files#diff-7976dc087a43c5bd465c0df88ff25bca03e469ea5d17478d81fd17472df87c28
https://github.com/python/cpython/pull/140230/files#diff-7976dc087a43c5bd465c0df88ff25bca03e469ea5d17478d81fd17472df87c28
https://github.com/python/cpython/pull/140230/files#diff-7976dc087a43c5bd465c0df88ff25bca03e469ea5d17478d81fd17472df87c28
https://github.com/python/cpython/pull/140230/files#diff-7976dc087a43c5bd465c0df88ff25bca03e469ea5d17478d81fd17472df87c28
https://github.com/python/cpython/pull/140230/files#diff-7976dc087a43c5bd465c0df88ff25bca03e469ea5d17478d81fd17472df87c28
https://github.com/python/cpython/pull/140230/files#diff-7976dc087a43c5bd465c0df88ff25bca03e469ea5d17478d81fd17472df87c28
https://github.com/python/cpython/blob/main/.github/CODEOWNERS#L388
Lib/test/test_calendar.pyhttps://github.com/python/cpython/pull/140230/files#diff-09db557aabda14ff2505042e4f8ac55e5c91acea70fa9a7d5697c27a941c8bec
View file https://github.com/pgdr/cpython/blob/d1b9b2b663588d8525f39c8e2e91d3bbed88dc41/Lib/test/test_calendar.py
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/python/cpython/pull/140230/{{ revealButtonHref }}
https://github.com/python/cpython/pull/140230/files#diff-09db557aabda14ff2505042e4f8ac55e5c91acea70fa9a7d5697c27a941c8bec
https://github.com/python/cpython/pull/140230/files#diff-09db557aabda14ff2505042e4f8ac55e5c91acea70fa9a7d5697c27a941c8bec
https://github.com/python/cpython/pull/140230/files#diff-09db557aabda14ff2505042e4f8ac55e5c91acea70fa9a7d5697c27a941c8bec
https://github.com/python/cpython/pull/140230/files#diff-09db557aabda14ff2505042e4f8ac55e5c91acea70fa9a7d5697c27a941c8bec
https://github.com/python/cpython/pull/140230/files#diff-09db557aabda14ff2505042e4f8ac55e5c91acea70fa9a7d5697c27a941c8bec
https://github.com/python/cpython/pull/140230/files#diff-09db557aabda14ff2505042e4f8ac55e5c91acea70fa9a7d5697c27a941c8bec
Misc/NEWS.d/next/Library/2025-10-16-22-49-16.gh-issue-140212.llBNd0.rsthttps://github.com/python/cpython/pull/140230/files#diff-edf6e07b6364c939c81f08e1b683be17be8969ab489b2119464261b445e07637
View file https://github.com/pgdr/cpython/blob/d1b9b2b663588d8525f39c8e2e91d3bbed88dc41/Misc/NEWS.d/next/Library/2025-10-16-22-49-16.gh-issue-140212.llBNd0.rst
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/python/cpython/pull/140230/{{ revealButtonHref }}
https://github.com
Termshttps://docs.github.com/site-policy/github-terms/github-terms-of-service
Privacyhttps://docs.github.com/site-policy/privacy-policies/github-privacy-statement
Securityhttps://github.com/security
Statushttps://www.githubstatus.com/
Communityhttps://github.community/
Docshttps://docs.github.com/
Contacthttps://support.github.com?tags=dotcom-footer

Viewport: width=device-width


URLs of crawlers that visited me.