Title: bpo-2986: Allow disabling difflib's automatic junk heuristic by liamFerris · Pull Request #17082 · python/cpython · GitHub
Open Graph Title: bpo-2986: Allow disabling difflib's automatic junk heuristic by liamFerris · Pull Request #17082 · python/cpython
X Title: bpo-2986: Allow disabling difflib's automatic junk heuristic by liamFerris · Pull Request #17082 · python/cpython
Description: [bpo-2986](https://bugs.python.org/issue2986): Allow disabling difflib's automatic junk heuristic Added parameter for autojunk to the Differ class and the ndiff method to allow disabling the automatic junk heuristic. I am using difflib extensively as part of a current project. We are working across a large amount of text, and for our purposes quality is preferred over speed. We have examples of where the diff algorithm fails (fails meaning treats the majority of our input as one large deletion / addition) with autojunking enabled and does not without, meaning we are required to set this parameter to false for our purposes. This parameter is not accessible to us from the API provided by difflib currently. To resolve this we have copied this out and modified it in a similar way to this PR. The issue we are facing plus the suggestion to allow this parameter to be configured it mentioned by others in bpo-2986. Thanks, Liam https://bugs.python.org/issue2986
Open Graph Description: [bpo-2986](https://bugs.python.org/issue2986): Allow disabling difflib's automatic junk heuristic Added parameter for autojunk to the Differ class and the ndiff method to allow disabling the a...
X Description: [bpo-2986](https://bugs.python.org/issue2986): Allow disabling difflib's automatic junk heuristic Added parameter for autojunk to the Differ class and the ndiff method to allow disabling t...
Opengraph URL: https://github.com/python/cpython/pull/17082
X: @github
Domain: github.com
| route-pattern | /:user_id/:repository/pull/:id/files(.:format) |
| route-controller | pull_requests |
| route-action | files |
| fetch-nonce | v2:43643bc7-5d50-444b-46db-2da6b8febc62 |
| current-catalog-service-hash | ae870bc5e265a340912cde392f23dad3671a0a881730ffdadd82f2f57d81641b |
| request-id | EE2E:82F2D:1241FCA:1900169:6A4DE0C5 |
| html-safe-nonce | 70a012352ab0845ed45ca003f56a01dc8afbb724ca75174f28558937128736d8 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJFRTJFOjgyRjJEOjEyNDFGQ0E6MTkwMDE2OTo2QTRERTBDNSIsInZpc2l0b3JfaWQiOiIyNDE3NjMyODM2Mzg5Mjk4MzczIiwicmVnaW9uX2VkZ2UiOiJpYWQiLCJyZWdpb25fcmVuZGVyIjoiaWFkIn0= |
| visitor-hmac | 88fb9dbbd6a75cc9b9d40ed0537d35de7fe44d20d7ccfb84f81859ca9849d083 |
| hovercard-subject-tag | pull_request:338126535 |
| github-keyboard-shortcuts | repository,pull-request-list,pull-request-conversation,pull-request-files-changed,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/python/cpython/pull/17082/files |
| twitter:image | https://avatars.githubusercontent.com/u/14314378?s=400&v=4 |
| twitter:card | summary_large_image |
| og:image | https://avatars.githubusercontent.com/u/14314378?s=400&v=4 |
| og:image:alt | [bpo-2986](https://bugs.python.org/issue2986): Allow disabling difflib's automatic junk heuristic Added parameter for autojunk to the Differ class and the ndiff method to allow disabling the a... |
| og:site_name | GitHub |
| og:type | object |
| hostname | github.com |
| expected-hostname | github.com |
| None | 06b8a6144231bf3a234f1c2e9993861e07ce98a905912b114aa386c2d7e84b33 |
| turbo-cache-control | no-preview |
| diff-view | unified |
| 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 | true |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | 1d344bdb7547fe6bca17a59bb2b8aac3dc9532a0 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width