| 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:72c453b8-c498-c9f7-afc8-3c5f421e2675 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | C3D4:AFBD9:1E92586:282BF28:6B0231C8 |
| html-safe-nonce | 1e57635ee42f45df169c55b7e3fffc31c510baddda7c50998afa7b794f02753c |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJDM0Q0OkFGQkQ5OjFFOTI1ODY6MjgyQkYyODo2QjAyMzFDOCIsInZpc2l0b3JfaWQiOiI0NDE0MjYzMDU1Mjc4NTUxNDk2IiwicmVnaW9uX2VkZ2UiOiJpYWQiLCJyZWdpb25fcmVuZGVyIjoiaWFkIn0= |
| visitor-hmac | d26de0770c54ac5faa8bc3948955758e2acb8aa312ba5ab929baed701ec84acb |
| hovercard-subject-tag | issue:2256425791 |
| github-keyboard-shortcuts | repository,issues,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | ///voltron/issues_fragments/issue_layout |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/python/cpython/118150/issue_layout |
| twitter:image | https://opengraph.githubassets.com/594f5a8e1e3bee0ea616ca2b31a800f88b4ebefb188dbd9d9c9d2a9f498099ec/python/cpython/issues/118150 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/594f5a8e1e3bee0ea616ca2b31a800f88b4ebefb188dbd9d9c9d2a9f498099ec/python/cpython/issues/118150 |
| og:image:alt | Bug report Bug description: #!/usr/bin/python3 import difflib def get_lines(filename): with open(filename, 'r', encoding='utf8') as fd: return fd.readlines() old_new = list(difflib.unified_diff( ge... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | Sxderp |
| 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 |
| Skip to content | https://github.com/python/cpython/issues/118150#start-of-content |
| https://github.com/ |
| Sign in | https://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fpython%2Fcpython%2Fissues%2F118150 |
| GitHubRepository hosting, code review, and collaboration | https://github.com/platform |
| CopilotAI coding agent for tasks, projects, and automated work | https://github.com/features/copilot |
| ActionsCI/CD and automation | https://github.com/features/actions |
| Code QualityQuality analysis, fixes, and enforcement | https://github.com/features/code-quality |
| CodespacesCloud development environments | https://github.com/features/codespaces |
| Code SecurityVulnerability detection and remediation | https://github.com/security/advanced-security/code-security |
| Secret ProtectionSecret scanning and leak prevention | https://github.com/security/advanced-security/secret-protection |
| All Features | https://github.com/features |
| Documentation | https://docs.github.com/en |
| Training | https://learn.github.com/skills |
| Certifications | https://learn.github.com/credentials |
| Build with Copilot | https://github.com/features/ai |
| Customize Copilot | https://docs.github.com/en/copilot/how-tos/copilot-on-github/customize-copilot/customize-copilot-overview |
| Integrations | https://github.com/marketplace |
| Trending repos | https://github.com/trending |
| GitHub Sponsors | https://github.com/open-source/sponsors |
| Developer articles | https://github.com/resources/articles |
| ChangelogYour source for the latest features, improvements, and fixes across GitHub products, all in one place. | https://github.blog/changelog/ |
| Enterprises | https://github.com/enterprise |
| Team | https://github.com/team |
| Startups | https://github.com/enterprise/startups |
| Nonprofits | https://github.com/solutions/industry/nonprofits |
| Healthcare | https://github.com/solutions/industry/healthcare |
| Financial services | https://github.com/solutions/industry/financial-services |
| Manufacturing | https://github.com/solutions/industry/manufacturing |
| Government | https://github.com/solutions/industry/government |
| See all industries | https://github.com/solutions/industry |
| Why GitHub | https://github.com/why-github |
| Customer Stories | https://github.com/customer-stories |
| Business insights | https://github.com/solutions/executive-insights |
| Trust Center | https://github.com/trust-center |
| GitHub Advanced SecurityEnterprise-grade code security | https://github.com/security/advanced-security |
| Copilot for businessEnterprise-grade AI features | https://github.com/features/copilot/copilot-business |
| Premium SupportEnterprise-grade 24/7 support | https://github.com/enterprise/premium-support |
| Documentation | https://docs.github.com/en |
| Resource center | https://github.com/resources |
| Blog | https://github.blog/ |
| Events & webinars | https://github.com/resources/events |
| Community Forum | https://github.com/orgs/community/discussions |
| Customer Stories | https://github.com/customer-stories |
| Integrations | https://github.com/marketplace |
| Customer support | https://help.github.com/ |
| Training | https://learn.github.com/skills |
| GitHub Status | https://www.githubstatus.com/ |
| About | https://github.com/about |
| Partners | https://github.com/partners |
| Changelog | https://github.blog/changelog/ |
| GitHub UniverseThe event for developers, by developers — talks, workshops, and what’s next for GitHub. | https://githubuniverse.com/ |
| Pricing | https://github.com/pricing |
| Sign in | https://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fpython%2Fcpython%2Fissues%2F118150 |
| Sign up | https://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 |
| Reload | https://github.com/python/cpython/issues/118150 |
| Reload | https://github.com/python/cpython/issues/118150 |
| Reload | https://github.com/python/cpython/issues/118150 |
| python | https://github.com/python |
| cpython | https://github.com/python/cpython |
| Code | https://github.com/python/cpython |
| Issues5k+ (5k+) | https://github.com/python/cpython/issues |
| Pull requests2.4k (2.4k) | https://github.com/python/cpython/pulls |
| Actions | https://github.com/python/cpython/actions |
| Projects | https://github.com/python/cpython/projects |
| Security and quality | https://github.com/python/cpython/security |
| Insights | https://github.com/python/cpython/insights |
| https://github.com/python/cpython |
| New issue | https://github.com/login?return_to=https://github.com/python/cpython/issues/118150 |
| New issue | https://github.com/login?return_to=https://github.com/python/cpython/issues/118150 |
| Difflib creates unreasonably large diffs | https://github.com/python/cpython/issues/118150#top |
| stdlibStandard Library Python modules in the Lib/ directory | https://github.com/python/cpython/issues?q=state%3Aopen%20label%3A%22stdlib%22 |
| type-bugAn unexpected behavior, bug, or error | https://github.com/python/cpython/issues?q=state%3Aopen%20label%3A%22type-bug%22 |
| https://github.com/Sxderp |
| Sxderp | https://github.com/Sxderp |
| on Apr 22, 2024 | https://github.com/python/cpython/issues/118150#issue-2256425791 |
| external.old.json | https://github.com/python/cpython/files/15062940/external.old.json |
| external.new.json | https://github.com/python/cpython/files/15062942/external.new.json |
| small.external.old.json | https://github.com/python/cpython/files/15064002/small.external.old.json |
| small.external.new.json | https://github.com/python/cpython/files/15064001/small.external.new.json |
| gh-118150: warn in doc about results asymmetry for difflib junk #153892 | https://github.com/python/cpython/pull/153892 |
| gh-118150: expose autojunk SequenceMathcher flag to public methods/functions of difflib #153947 | https://github.com/python/cpython/pull/153947 |
| gh-118150: difflib: expose autojunk flag from SequenceMatcher to public methods and functions #153959 | https://github.com/python/cpython/pull/153959 |
| [3.15] gh-118150: warn in doc about results asymmetry for difflib junk (GH-153892) #154658 | https://github.com/python/cpython/pull/154658 |
| [3.14] gh-118150: warn in doc about results asymmetry for difflib junk (GH-153892) #154659 | https://github.com/python/cpython/pull/154659 |
| [3.13] gh-118150: warn in doc about results asymmetry for difflib junk (GH-153892) #154660 | https://github.com/python/cpython/pull/154660 |
| Next | https://github.com/python/cpython/issues/118150?timeline_page=1 |
| Sxderp | https://github.com/Sxderp |
| type-bugAn unexpected behavior, bug, or error | https://github.com/python/cpython/issues?q=state%3Aopen%20label%3A%22type-bug%22 |
| on Apr 22, 2024 | https://github.com/python/cpython/issues/118150#event-12559150351 |
| https://github.com/terryjreedy |
| terryjreedy | https://github.com/terryjreedy |
| on Apr 22, 2024 | https://github.com/python/cpython/issues/118150#issuecomment-2069386658 |
| https://github.com/Sxderp |
| Sxderp | https://github.com/Sxderp |
| on Apr 22, 2024 | https://github.com/python/cpython/issues/118150#issuecomment-2069550540 |
| https://github.com/blhsing |
| blhsing | https://github.com/blhsing |
| on Apr 23, 2024 | https://github.com/python/cpython/issues/118150#issuecomment-2071713604 |
| https://github.com/Sxderp |
| Sxderp | https://github.com/Sxderp |
| on Apr 23, 2024 | https://github.com/python/cpython/issues/118150#issuecomment-2071969892 |
| https://github.com/terryjreedy |
| terryjreedy | https://github.com/terryjreedy |
| on Apr 23, 2024 | https://github.com/python/cpython/issues/118150#issuecomment-2072532464 |
| @tim-one | https://github.com/tim-one |
| #118150 (comment) | https://github.com/python/cpython/issues/118150#issuecomment-2071713604 |
| https://github.com/Sxderp |
| Sxderp | https://github.com/Sxderp |
| on Apr 23, 2024 | https://github.com/python/cpython/issues/118150#issuecomment-2072712015 |
| https://github.com/terryjreedy |
| terryjreedy | https://github.com/terryjreedy |
| on Apr 23, 2024 | https://github.com/python/cpython/issues/118150#issuecomment-2073095633 |
| https://github.com/Sxderp |
| Sxderp | https://github.com/Sxderp |
| on Apr 24, 2024 | https://github.com/python/cpython/issues/118150#issuecomment-2075259994 |
| https://github.com/Lenormju |
| Lenormju | https://github.com/Lenormju |
| on Jul 20, 2025 | https://github.com/python/cpython/issues/118150#issuecomment-3094502649 |
| https://github.com/Lenormju |
| Lenormju | https://github.com/Lenormju |
| on Jul 17, 2026 | https://github.com/python/cpython/issues/118150#issuecomment-5007871417 |
| SequenceMatcher.ratio() noncommutativity not well-documented #81185 | https://github.com/python/cpython/issues/81185 |
| 7dafbe8 | https://github.com/python/cpython/commit/7dafbe81bd0afb8bd67bc3a4c851a6c728fd87fe |
| SequenceMatcher & autojunk - false negative #90825 | https://github.com/python/cpython/issues/90825 |
| Better explain "junk" concept in difflib doc #58540 | https://github.com/python/cpython/issues/58540 |
| c51da2b | https://github.com/python/cpython/commit/c51da2b8a098e8e84e843602e8a3f6c4d3e07ec7 |
| A warning should be added to difflib documentation about SequenceMatcher performance #106865 | https://github.com/python/cpython/issues/106865 |
| misleading output from difflib unified_diff #84868 | https://github.com/python/cpython/issues/84868 |
| #90825 (comment) | https://github.com/python/cpython/issues/90825#issuecomment-1093944309 |
| A warning should be added to difflib documentation about SequenceMatcher performance #106865 (comment) | https://github.com/python/cpython/issues/106865#issuecomment-1643596622 |
| SequenceMatcher & autojunk - false negative #90825 (comment) | https://github.com/python/cpython/issues/90825#issuecomment-1426911587 |
| gh-106865: Improve difflib.find_longest_match performance with cache #106877 (comment) | https://github.com/python/cpython/pull/106877#issuecomment-1641307829 |
| difflib.HtmlDiff produces different output from difflib.ndiff #71896 | https://github.com/python/cpython/issues/71896 |
| bpo-2986: Allow disabling difflib's automatic junk heuristic #17082 | https://github.com/python/cpython/pull/17082 |
| https://bugs.python.org/issue2986 | https://bugs.python.org/issue2986 |
| difflib.GestaltSequenceMatcher implementation #144132 | https://github.com/python/cpython/issues/144132 |
| Composability of difflib #145209 | https://github.com/python/cpython/issues/145209 |
| Add a C accelerator for difflib.SequenceMatcher #150184 | https://github.com/python/cpython/issues/150184 |
| Provide a way for potentially long runtime difflib algorithms to be aborted by the caller (and report progress?) #69092 | https://github.com/python/cpython/issues/69092 |
| difflib.SequenceMatcher not matching long sequences #47235 | https://github.com/python/cpython/issues/47235 |
| picnixz | https://github.com/picnixz |
| stdlibStandard Library Python modules in the Lib/ directory | https://github.com/python/cpython/issues?q=state%3Aopen%20label%3A%22stdlib%22 |
| on Jul 18, 2026 | https://github.com/python/cpython/issues/118150#event-28156353976 |
| faithlesstomas | https://github.com/faithlesstomas |
| on Jul 18, 2026 | https://github.com/python/cpython/issues/118150#event-28160930832 |
| pythongh-118150: difflib - fix NEWS issue with ref. not found | https://github.com/faithlesstomas/cpython/commit/7d864736382ed5c3e6509e152ab734eb38e5c72a |
| pythongh-118150 | https://github.com/python/cpython/issues/118150 |
| 7d86473 | https://github.com/faithlesstomas/cpython/commit/7d864736382ed5c3e6509e152ab734eb38e5c72a |
| pythongh-118150: difflib - fix NEWS doc for ReST | https://github.com/faithlesstomas/cpython/commit/b5213c98ed265398e806e3686445113bf57d36f5 |
| pythongh-118150 | https://github.com/python/cpython/issues/118150 |
| b5213c9 | https://github.com/faithlesstomas/cpython/commit/b5213c98ed265398e806e3686445113bf57d36f5 |
| pythongh-118150: difflib - remove template notes from NEWS | https://github.com/faithlesstomas/cpython/commit/7d7a35b250eb93d00397866e06ddf85b63fcee77 |
| pythongh-118150 | https://github.com/python/cpython/issues/118150 |
| 7d7a35b | https://github.com/faithlesstomas/cpython/commit/7d7a35b250eb93d00397866e06ddf85b63fcee77 |
| faithlesstomas | https://github.com/faithlesstomas |
| on Aug 5, 2026 | https://github.com/python/cpython/issues/118150#event-29010066223 |
| pythongh-118150: update NEWS again | https://github.com/faithlesstomas/cpython/commit/d117379f6b7bc4e48aabf4c897e3d6a9e578a305 |
| pythongh-118150 | https://github.com/python/cpython/issues/118150 |
| d117379 | https://github.com/faithlesstomas/cpython/commit/d117379f6b7bc4e48aabf4c897e3d6a9e578a305 |
| pythongh-118150: fix for sphinx linter | https://github.com/faithlesstomas/cpython/commit/61e64a2e71d6df47b5457dbbb0a2a85668475f1c |
| pythongh-118150 | https://github.com/python/cpython/issues/118150 |
| 61e64a2 | https://github.com/faithlesstomas/cpython/commit/61e64a2e71d6df47b5457dbbb0a2a85668475f1c |
| pythongh-118150: Merge branch 'main' into pythongh-118150-expose-auto… | https://github.com/faithlesstomas/cpython/commit/5e091f1ca6b19bd962f42cfd1da3b8ce0e9b5acb |
| pythongh-118150 | https://github.com/python/cpython/issues/118150 |
| pythongh-118150 | https://github.com/python/cpython/issues/118150 |
| 5e091f1 | https://github.com/faithlesstomas/cpython/commit/5e091f1ca6b19bd962f42cfd1da3b8ce0e9b5acb |
| pythongh-118150: clean whitespaces for lint | https://github.com/faithlesstomas/cpython/commit/c38edf3a953036764e8572fa40158b738db7b211 |
| pythongh-118150 | https://github.com/python/cpython/issues/118150 |
| c38edf3 | https://github.com/faithlesstomas/cpython/commit/c38edf3a953036764e8572fa40158b738db7b211 |
| Merge branch 'main' into pythongh-118150-expose-autojunk | https://github.com/faithlesstomas/cpython/commit/35b45f0bed925481ef59961de2dff70469709b7d |
| pythongh-118150 | https://github.com/python/cpython/issues/118150 |
| 35b45f0 | https://github.com/faithlesstomas/cpython/commit/35b45f0bed925481ef59961de2dff70469709b7d |
| pythongh-118150: difflib - update doc | https://github.com/faithlesstomas/cpython/commit/94f883dd805476b4ec8df49ed2eb56d342fdfe23 |
| pythongh-118150 | https://github.com/python/cpython/issues/118150 |
| 94f883d | https://github.com/faithlesstomas/cpython/commit/94f883dd805476b4ec8df49ed2eb56d342fdfe23 |
| hugovk | https://github.com/hugovk |
| on Aug 12, 2026 | https://github.com/python/cpython/issues/118150#event-29340761501 |
| Merge branch 'main' into pythongh-118150-expose-autojunk | https://github.com/faithlesstomas/cpython/commit/8a0368b7645a6f1bc725de8f588956c2ab7772bf |
| pythongh-118150 | https://github.com/python/cpython/issues/118150 |
| 8a0368b | https://github.com/faithlesstomas/cpython/commit/8a0368b7645a6f1bc725de8f588956c2ab7772bf |
| faithlesstomas | https://github.com/faithlesstomas |
| on Aug 12, 2026 | https://github.com/python/cpython/issues/118150#event-29349317117 |
| pythongh-118150: difflib - update doc | https://github.com/faithlesstomas/cpython/commit/05ee0fa1e471a7325d156b314d6f8526a4957f82 |
| pythongh-118150 | https://github.com/python/cpython/issues/118150 |
| 05ee0fa | https://github.com/faithlesstomas/cpython/commit/05ee0fa1e471a7325d156b314d6f8526a4957f82 |
| mbeijen | https://github.com/mbeijen |
| on Aug 14, 2026 | https://github.com/python/cpython/issues/118150#event-29455489808 |
| pythongh-118150: warn in doc about results asymmetry for difflib junk (… | https://github.com/mbeijen/cpython/commit/d0efedeef4e3a5771c5d5f6e921f67c5471d7f5b |
| pythongh-118150 | https://github.com/python/cpython/issues/118150 |
| … | https://github.com/python/cpython/pull/153892 |
| d0efede | https://github.com/mbeijen/cpython/commit/d0efedeef4e3a5771c5d5f6e921f67c5471d7f5b |
| faithlesstomas | https://github.com/faithlesstomas |
| on Sep 1, 2026 | https://github.com/python/cpython/issues/118150#event-30339746464 |
| pythongh-118150: difflib - update doc | https://github.com/faithlesstomas/cpython/commit/abd21afa13b8cdee420fdab4fd2c06ca5c734e0a |
| pythongh-118150 | https://github.com/python/cpython/issues/118150 |
| abd21af | https://github.com/faithlesstomas/cpython/commit/abd21afa13b8cdee420fdab4fd2c06ca5c734e0a |
| encukou | https://github.com/encukou |
| on Sep 4, 2026 | https://github.com/python/cpython/issues/118150#event-30559925194 |
| gh-118150: difflib: expose autojunk flag from SequenceMatcher to publ… | https://github.com/python/cpython/commit/bc977f450b328656e073b547f23aa201401023c7 |
| gh-118150 | https://github.com/python/cpython/issues/118150 |
| bc977f4 | https://github.com/python/cpython/commit/bc977f450b328656e073b547f23aa201401023c7 |
| https://github.com/encukou |
| encukou | https://github.com/encukou |
| on Sep 7, 2026 | https://github.com/python/cpython/issues/118150#issuecomment-5572103368 |
| @Sxderp | https://github.com/Sxderp |
| @Lenormju | https://github.com/Lenormju |
| @faithlesstomas | https://github.com/faithlesstomas |
| encukou | https://github.com/encukou |
| completed | https://github.com/python/cpython/issues?q=is%3Aissue%20state%3Aclosed%20archived%3Afalse%20reason%3Acompleted |
| on Sep 7, 2026 | https://github.com/python/cpython/issues/118150#event-30697972162 |
| clin1234 | https://github.com/clin1234 |
| on Sep 12, 2026 | https://github.com/python/cpython/issues/118150#event-31023917096 |
| pythongh-118150: difflib: expose autojunk flag from SequenceMatcher t… | https://github.com/clin1234/cpython/commit/61a3e4a42b79a89a5ccec0d5a10fe049b3dd8d9c |
| pythongh-118150 | https://github.com/python/cpython/issues/118150 |
| 61a3e4a | https://github.com/clin1234/cpython/commit/61a3e4a42b79a89a5ccec0d5a10fe049b3dd8d9c |
| alkorsan | https://github.com/alkorsan |
| on Sep 21, 2026 | https://github.com/python/cpython/issues/118150#event-31543959791 |
| force unified_diff to accept autojunk=False | https://github.com/alkorsan/cuda_differ/commit/b49b33a7453f26d3c9c81b3f2b87f9e6ad845bcb |
| b49b33a | https://github.com/alkorsan/cuda_differ/commit/b49b33a7453f26d3c9c81b3f2b87f9e6ad845bcb |
| Sign up for free | https://github.com/signup?return_to=https://github.com/python/cpython/issues/118150 |
| Sign in to comment | https://github.com/login?return_to=https://github.com/python/cpython/issues/118150 |
| stdlibStandard Library Python modules in the Lib/ directory | https://github.com/python/cpython/issues?q=state%3Aopen%20label%3A%22stdlib%22 |
| type-bugAn unexpected behavior, bug, or error | https://github.com/python/cpython/issues?q=state%3Aopen%20label%3A%22type-bug%22 |
|
| https://github.com |
| Terms | https://docs.github.com/site-policy/github-terms/github-terms-of-service |
| Privacy | https://docs.github.com/site-policy/privacy-policies/github-privacy-statement |
| Security | https://github.com/security |
| Status | https://www.githubstatus.com/ |
| Community | https://github.community/ |
| Docs | https://docs.github.com/ |
| Contact | https://support.github.com?tags=dotcom-footer |