Title: Docs: `filecmp.cmpfiles` parameters documented as `dir1`/`dir2` but named `a`/`b` · Issue #153899 · python/cpython · GitHub
Open Graph Title: Docs: `filecmp.cmpfiles` parameters documented as `dir1`/`dir2` but named `a`/`b` · Issue #153899 · python/cpython
X Title: Docs: `filecmp.cmpfiles` parameters documented as `dir1`/`dir2` but named `a`/`b` · Issue #153899 · python/cpython
Description: Documentation The documented signature of filecmp.cmpfiles names its first two parameters dir1 and dir2: .. function:: cmpfiles(dir1, dir2, common, shallow=True) Compare the files in the two directories *dir1* and *dir2* whose names are ...
Open Graph Description: Documentation The documented signature of filecmp.cmpfiles names its first two parameters dir1 and dir2: .. function:: cmpfiles(dir1, dir2, common, shallow=True) Compare the files in the two direct...
X Description: Documentation The documented signature of filecmp.cmpfiles names its first two parameters dir1 and dir2: .. function:: cmpfiles(dir1, dir2, common, shallow=True) Compare the files in the two direct...
Opengraph URL: https://github.com/python/cpython/issues/153899
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Docs: `filecmp.cmpfiles` parameters documented as `dir1`/`dir2` but named `a`/`b`","articleBody":"# Documentation\n\nThe documented signature of [`filecmp.cmpfiles`](https://docs.python.org/3/library/filecmp.html#filecmp.cmpfiles) names its first two parameters `dir1` and `dir2`:\n\n```rst\n.. function:: cmpfiles(dir1, dir2, common, shallow=True)\n\n Compare the files in the two directories *dir1* and *dir2* whose names are\n given by *common*.\n```\n\nHowever, the actual parameters are named `a` and `b` (`Lib/filecmp.py`):\n\n```python\ndef cmpfiles(a, b, common, shallow=True):\n```\n\nAs a result the documented keyword names do not work — calling `filecmp.cmpfiles(dir1=..., dir2=..., common=...)` raises `TypeError`, while `filecmp.cmpfiles(a=..., b=..., common=...)` succeeds.\n\nThe documentation should be updated to use the real parameter names `a` and `b`.\n\n\n\u003c!-- gh-linked-prs -->\n### Linked PRs\n* gh-153900\n* gh-153910\n* gh-153911\n* gh-153912\n\u003c!-- /gh-linked-prs -->\n","author":{"url":"https://github.com/fedonman","@type":"Person","name":"fedonman"},"datePublished":"2026-07-18T09:52:04Z","url":"https://github.com/python/cpython/issues/153899"}
| react-profiling | 0 |
| react-import-map | react,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-controller | voltron_issues_fragments |
| route-action | issue_layout |
| fetch-nonce | v2:b57d1983-5657-c0e0-4aa5-ecbf86fe36bb |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | 9112:320D53:39C8A9:4F7477:6AECCA43 |
| html-safe-nonce | 076d6fb7ef1a11e44f46279c15f72ef240523e30c1c9d3e08f6790abcaf030fa |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI5MTEyOjMyMEQ1MzozOUM4QTk6NEY3NDc3OjZBRUNDQTQzIiwidmlzaXRvcl9pZCI6IjE3MzQ1MjcwMTUzNDQ0NTgzMDciLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ== |
| visitor-hmac | 9ff5e6ef6aeb216c557ecfb2f4224e53686df75ed5bdf2eda0f3be3015cae0ee |
| hovercard-subject-tag | issue:4917754029 |
| 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/153899/issue_layout |
| twitter:image | https://opengraph.githubassets.com/d0c0b49b4328620f7ebc411bc405d1623c9f3ee59bb835e754a267e8396580f1/python/cpython/issues/153899 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/d0c0b49b4328620f7ebc411bc405d1623c9f3ee59bb835e754a267e8396580f1/python/cpython/issues/153899 |
| og:image:alt | Documentation The documented signature of filecmp.cmpfiles names its first two parameters dir1 and dir2: .. function:: cmpfiles(dir1, dir2, common, shallow=True) Compare the files in the two direct... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | fedonman |
| hostname | github.com |
| expected-hostname | github.com |
| None | dc0b519c5798dc1150b88dc4c06a8b9634d0069218dc04e469970e76aad74016 |
| 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 | db139f0bf57b59bf9a8c4abb0849924d6c6ca559 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
| react-app-name | issues |
Links:
Viewport: width=device-width