René's URL Explorer Experiment


Title: Docs: `calendar.calendar` and `calendar.prcal` document parameter as `year` but it is named `theyear` · Issue #153926 · python/cpython · GitHub

Open Graph Title: Docs: `calendar.calendar` and `calendar.prcal` document parameter as `year` but it is named `theyear` · Issue #153926 · python/cpython

X Title: Docs: `calendar.calendar` and `calendar.prcal` document parameter as `year` but it is named `theyear` · Issue #153926 · python/cpython

Description: Documentation The module-level functions calendar.calendar() and calendar.prcal() document their first parameter as year: .. function:: prcal(year, w=0, l=0, c=6, m=3) .. function:: calendar(year, w=2, l=1, c=6, m=3) However, both are bo...

Open Graph Description: Documentation The module-level functions calendar.calendar() and calendar.prcal() document their first parameter as year: .. function:: prcal(year, w=0, l=0, c=6, m=3) .. function:: calendar(year, ...

X Description: Documentation The module-level functions calendar.calendar() and calendar.prcal() document their first parameter as year: .. function:: prcal(year, w=0, l=0, c=6, m=3) .. function:: calendar(year, ...

Opengraph URL: https://github.com/python/cpython/issues/153926

X: @github

direct link

Domain: github.com


Hey, it has json ld scripts:
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Docs: `calendar.calendar` and `calendar.prcal` document parameter as `year` but it is named `theyear`","articleBody":"# Documentation\n\nThe module-level functions [`calendar.calendar()`](https://docs.python.org/3/library/calendar.html#calendar.calendar) and [`calendar.prcal()`](https://docs.python.org/3/library/calendar.html#calendar.prcal) document their first parameter as `year`:\n\n```rst\n.. function:: prcal(year, w=0, l=0, c=6, m=3)\n\n.. function:: calendar(year, w=2, l=1, c=6, m=3)\n```\n\nHowever, both are bound methods of the module's `TextCalendar` instance (`calendar = c.formatyear`, `prcal = c.pryear` in `Lib/calendar.py`), whose first parameter is named `theyear`:\n\n```pycon\n>>> import calendar, inspect\n>>> inspect.signature(calendar.calendar)\n\u003cSignature (theyear, w=2, l=1, c=6, m=3)>\n>>> inspect.signature(calendar.prcal)\n\u003cSignature (theyear, w=0, l=0, c=6, m=3)>\n```\n\nAs a result the documented keyword name does not work — `calendar.calendar(year=2025)` raises `TypeError`, while `calendar.calendar(theyear=2025)` succeeds.\n\nThe documentation should be updated to use the real parameter name `theyear`, which also matches the sibling `month()` and `prmonth()` functions documented just above.\n\n\n\u003c!-- gh-linked-prs -->\n### Linked PRs\n* gh-153927\n* gh-153937\n* gh-153938\n* gh-153939\n\u003c!-- /gh-linked-prs -->\n","author":{"url":"https://github.com/fedonman","@type":"Person","name":"fedonman"},"datePublished":"2026-07-18T11:43:29Z","url":"https://github.com/python/cpython/issues/153926"}

react-profiling0
react-import-mapreact,react-dom,react-dom/client,react-dom/profiling,react-is,react-reconciler,react/compiler-runtime,react/jsx-dev-runtime,react/jsx-runtime,scheduler@d5750093facf
route-pattern/_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format)
route-controllervoltron_issues_fragments
route-actionissue_layout
fetch-noncev2:a891c1d2-857e-e255-7eec-932d42e7a27d
current-catalog-service-hash81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114
request-id80CA:3F90DC:3A74B2:5049EE:6AECCA5C
html-safe-nonce1eacfa68605c1a0f03214588d43a5322b17df06a25ad5ea8c023a0d0adbcb00f
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI4MENBOjNGOTBEQzozQTc0QjI6NTA0OUVFOjZBRUNDQTVDIiwidmlzaXRvcl9pZCI6IjIwODg5MTY2ODk3NjY2MzIwMjgiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ==
visitor-hmac65e0cae6160b4ade355636fc146ca593e4217196910eb41ba7a19df92db9c54e
hovercard-subject-tagissue:4918096450
github-keyboard-shortcutsrepository,issues,copilot
google-site-verificationApib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I
octolytics-urlhttps://collector.github.com/github/collect
analytics-location///voltron/issues_fragments/issue_layout
fb:app_id1401488693436528
apple-itunes-appapp-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/python/cpython/153926/issue_layout
twitter:imagehttps://opengraph.githubassets.com/f2a2ce39cca0d3664a853ba69761d2a8e5d1a529f7aec6cfef4245e836b60e7a/python/cpython/issues/153926
twitter:cardsummary_large_image
og:imagehttps://opengraph.githubassets.com/f2a2ce39cca0d3664a853ba69761d2a8e5d1a529f7aec6cfef4245e836b60e7a/python/cpython/issues/153926
og:image:altDocumentation The module-level functions calendar.calendar() and calendar.prcal() document their first parameter as year: .. function:: prcal(year, w=0, l=0, c=6, m=3) .. function:: calendar(year, ...
og:image:width1200
og:image:height600
og:site_nameGitHub
og:typeobject
og:author:usernamefedonman
hostnamegithub.com
expected-hostnamegithub.com
Nonedc0b519c5798dc1150b88dc4c06a8b9634d0069218dc04e469970e76aad74016
turbo-cache-controlno-preview
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
disable-turbofalse
browser-stats-urlhttps://api.github.com/_private/browser/stats
browser-errors-urlhttps://api.github.com/_private/browser/errors
releasedb139f0bf57b59bf9a8c4abb0849924d6c6ca559
ui-targetfull
theme-color#1e2327
color-schemelight dark
react-app-nameissues

Links:

Skip to contenthttps://github.com/python/cpython/issues/153926#start-of-content
https://github.com/
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fpython%2Fcpython%2Fissues%2F153926
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%2Fissues%2F153926
Sign uphttps://github.com/signup?ref_cta=Sign+up&ref_loc=header+logged+out&ref_page=%2F%3Cuser-name%3E%2F%3Crepo-name%3E%2Fvoltron%2Fissues_fragments%2Fissue_layout&source=header-repo&source_repo=python%2Fcpython
Reloadhttps://github.com/python/cpython/issues/153926
Reloadhttps://github.com/python/cpython/issues/153926
Reloadhttps://github.com/python/cpython/issues/153926
pythonhttps://github.com/python
cpythonhttps://github.com/python/cpython
Codehttps://github.com/python/cpython
Issues5k+ (5k+)https://github.com/python/cpython/issues
Pull requests2.3k (2.3k)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/pulse
https://github.com/python/cpython
New issuehttps://github.com/login?return_to=https://github.com/python/cpython/issues/153926
New issuehttps://github.com/login?return_to=https://github.com/python/cpython/issues/153926
#153927https://github.com/python/cpython/pull/153927
Docs: calendar.calendar and calendar.prcal document parameter as year but it is named theyearhttps://github.com/python/cpython/issues/153926#top
#153927https://github.com/python/cpython/pull/153927
docsDocumentation in the Doc dirhttps://github.com/python/cpython/issues?q=state%3Aopen%20label%3A%22docs%22
https://github.com/fedonman
fedonmanhttps://github.com/fedonman
on Jul 18, 2026https://github.com/python/cpython/issues/153926#issue-4918096450
calendar.calendar()https://docs.python.org/3/library/calendar.html#calendar.calendar
calendar.prcal()https://docs.python.org/3/library/calendar.html#calendar.prcal
gh-153926: Fix documented parameter name for calendar.calendar and calendar.prcal #153927https://github.com/python/cpython/pull/153927
[3.15] gh-153926: Fix documented parameter name for calendar.calendar and calendar.prcal (GH-153927) #153937https://github.com/python/cpython/pull/153937
[3.14] gh-153926: Fix documented parameter name for calendar.calendar and calendar.prcal (GH-153927) #153938https://github.com/python/cpython/pull/153938
[3.13] gh-153926: Fix documented parameter name for calendar.calendar and calendar.prcal (GH-153927) #153939https://github.com/python/cpython/pull/153939
fedonmanhttps://github.com/fedonman
on Jul 18, 2026https://github.com/python/cpython/issues/153926#event-28157751966
Merge branch 'main' into fix-pythongh-153926-calendar-theyear-docshttps://github.com/fedonman/cpython/commit/64c15db60d9e7b3eadaf2f3ebcacfba418cd4bb7
pythongh-153926https://github.com/python/cpython/issues/153926
64c15dbhttps://github.com/fedonman/cpython/commit/64c15db60d9e7b3eadaf2f3ebcacfba418cd4bb7
picnixzhttps://github.com/picnixz
docsDocumentation in the Doc dirhttps://github.com/python/cpython/issues?q=state%3Aopen%20label%3A%22docs%22
on Jul 18, 2026https://github.com/python/cpython/issues/153926#event-28157861357
github-project-automationhttps://github.com/apps/github-project-automation
docs issueshttps://github.com/orgs/python/projects/52
on Jul 18, 2026https://github.com/python/cpython/issues/153926#event-28157862357
github-project-automationhttps://github.com/apps/github-project-automation
docs issueshttps://github.com/orgs/python/projects/52
on Jul 18, 2026https://github.com/python/cpython/issues/153926
fedonmanhttps://github.com/fedonman
on Jul 18, 2026https://github.com/python/cpython/issues/153926#event-28157905733
Merge branch 'main' into fix-pythongh-153926-calendar-theyear-docshttps://github.com/fedonman/cpython/commit/75535177d98173df5048b22014ae0fe8deb6565d
pythongh-153926https://github.com/python/cpython/issues/153926
7553517https://github.com/fedonman/cpython/commit/75535177d98173df5048b22014ae0fe8deb6565d
tomasr8https://github.com/tomasr8
completedhttps://github.com/python/cpython/issues?q=is%3Aissue%20state%3Aclosed%20archived%3Afalse%20reason%3Acompleted
#153927https://github.com/python/cpython/pull/153927
on Jul 18, 2026https://github.com/python/cpython/issues/153926#event-28158428578
tomasr8https://github.com/tomasr8
on Jul 18, 2026https://github.com/python/cpython/issues/153926#event-28158428584
gh-153926: Fix documented parameter name for `calendar.calendar` and …https://github.com/python/cpython/commit/d12434b4661c6be7430002e66a54d920f7d4ca7f
gh-153926https://github.com/python/cpython/issues/153926
d12434bhttps://github.com/python/cpython/commit/d12434b4661c6be7430002e66a54d920f7d4ca7f
[3.15] gh-153926: Fix documented parameter name for `calendar.calenda…https://github.com/python/cpython/commit/b009722988933331b479fd57c134db6ab7669cc8
gh-153926https://github.com/python/cpython/issues/153926
b009722https://github.com/python/cpython/commit/b009722988933331b479fd57c134db6ab7669cc8
[3.13] gh-153926: Fix documented parameter name for `calendar.calenda…https://github.com/python/cpython/commit/a264c83e1355bc8423524176efa8297860e9083b
gh-153926https://github.com/python/cpython/issues/153926
a264c83https://github.com/python/cpython/commit/a264c83e1355bc8423524176efa8297860e9083b
[3.14] gh-153926: Fix documented parameter name for `calendar.calenda…https://github.com/python/cpython/commit/343f0e553676eafa217396f57b3bc8e7c71f1670
gh-153926https://github.com/python/cpython/issues/153926
343f0e5https://github.com/python/cpython/commit/343f0e553676eafa217396f57b3bc8e7c71f1670
Sign up for freehttps://github.com/signup?return_to=https://github.com/python/cpython/issues/153926
Sign in to commenthttps://github.com/login?return_to=https://github.com/python/cpython/issues/153926
docsDocumentation in the Doc dirhttps://github.com/python/cpython/issues?q=state%3Aopen%20label%3A%22docs%22
docs issueshttps://github.com/orgs/python/projects/52
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.