René's URL Explorer Experiment


Title: gh-136063: WIP: Refactor email _header_value_parser and eliminate non-linear complexity by bitdancer · Pull Request #152710 · python/cpython · GitHub

Open Graph Title: gh-136063: WIP: Refactor email _header_value_parser and eliminate non-linear complexity by bitdancer · Pull Request #152710 · python/cpython

X Title: gh-136063: WIP: Refactor email _header_value_parser and eliminate non-linear complexity by bitdancer · Pull Request #152710 · python/cpython

Description: As a response to the report of quadratic complexity in the header value parser in the email package, I began a rewrite of the parser code. This has taken me considerably longer than I originally envisioned, since as I worked I realized I really wanted to rewrite all the tests to be more thorough, easier to understand, and easier to extend; and as I did the refactoring I kept finding things the parser was really doing wrong that I wanted to fix (mostly around encoded word edge cases). At this point I'm about half way through the project, and Serhiy has proposed a patch to solve the quadratic complexity that is a minimal fix, rather than the rewrite that I'm currently engaged in, at the expense of breaking backward compatibility (which, since this is labeled as an internal module, might be OK). I decided I should publish the work in progress so we can decide how we want to proceed. If you look at this PR as an (un)finished whole, it will look pretty much like a replacement of the original code...because a lot of it is, in the end. However, I've structured the PR as a set of commits that can be reviewed as an incremental refactoring process. This is a curated set of changes: I do lots of rebase editing to keep the flow of the refactor consistent as I find new problems that result in new tests or require changes to earlier refactoring steps. The refactoring is broken down in to two broad phases: refactoring and adding to the tests, and refactoring the code. Most of the commits are step-wise refactoring of the tests to make sure I didn't lose any test coverage. I do it this way for my own peace of mind, and to make it possible to ensure that any test changes on main get incorporated without, again, losing any test coverage. Along the way in the test refactoring part I fixed a few minor bugs in the existing parser, so that the test changes in the code refactoring phase are concerned primarily with functional improvements rather than minor bug fixes. Since I took an incremental refactoring approach, I include backward compatibility wrappers so that at each step the code continues to pass all of its tests. This also allows for a deprecation period for the old parser API, if we wish to have one. Like I said, this is half done (at least, I hope it is half :). In addition to the functions I haven't refactored yet, I also haven't dealt with the slicing for the error messages that Serhiy's PR handles, but I do have a plan for that ;) Issue: gh-136063

Open Graph Description: As a response to the report of quadratic complexity in the header value parser in the email package, I began a rewrite of the parser code. This has taken me considerably longer than I originally e...

X Description: As a response to the report of quadratic complexity in the header value parser in the email package, I began a rewrite of the parser code. This has taken me considerably longer than I originally e...

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

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:70c0ce6d-b1fa-7ec4-5513-3cbf106c77c9
current-catalog-service-hashae870bc5e265a340912cde392f23dad3671a0a881730ffdadd82f2f57d81641b
request-id8778:17FB7:34AEA83:42CDB7E:6B021342
html-safe-noncea414f933271caecbf770e104ece2ace7bb47cb4cad83794a71313931683eb425
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI4Nzc4OjE3RkI3OjM0QUVBODM6NDJDREI3RTo2QjAyMTM0MiIsInZpc2l0b3JfaWQiOiI1ODI0NzEyNTU4ODY3OTU1ODYiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ==
visitor-hmac2e052409be598979a26b73eb6eac2d6526ad4139fdb7ac5f553620fbbd12553e
hovercard-subject-tagpull_request:3966447398
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/152710/files
twitter:imagehttps://avatars.githubusercontent.com/u/476443?s=400&v=4
twitter:cardsummary_large_image
og:imagehttps://avatars.githubusercontent.com/u/476443?s=400&v=4
og:image:altAs a response to the report of quadratic complexity in the header value parser in the email package, I began a rewrite of the parser code. This has taken me considerably longer than I originally e...
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/152710/files#start-of-content
https://github.com/
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fpython%2Fcpython%2Fpull%2F152710%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%2F152710%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/152710/files
Reloadhttps://github.com/python/cpython/pull/152710/files
Reloadhttps://github.com/python/cpython/pull/152710/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
bitdancerhttps://github.com/bitdancer
python:mainhttps://github.com/python/cpython/tree/main
bitdancer:hvp_refactorhttps://github.com/bitdancer/cpython/tree/hvp_refactor
Conversation 2 https://github.com/python/cpython/pull/152710
Commits 152 https://github.com/python/cpython/pull/152710/commits
Checks 47 https://github.com/python/cpython/pull/152710/checks
Files changed https://github.com/python/cpython/pull/152710/files
Please reload this pagehttps://github.com/python/cpython/pull/152710/files
gh-136063: WIP: Refactor email _header_value_parser and eliminate non-linear complexity https://github.com/python/cpython/pull/152710/files#top
Show all changes 152 commits https://github.com/python/cpython/pull/152710/files
700e78f Better parameterized test support. bitdancer May 31, 2026 https://github.com/python/cpython/pull/152710/commits/700e78ff9e9a8bc3525eccbb6600c23c46bbbbfb
d1f58b8 Make params the default for email test cases. bitdancer May 31, 2026 https://github.com/python/cpython/pull/152710/commits/d1f58b8f462ef034c4ed19fdd20cead21c28993a
ff717b3 DROPME: temporary unittest usability hack. bitdancer Feb 28, 2026 https://github.com/python/cpython/pull/152710/commits/ff717b37851320c822063d907fde3644d252dd23
bfb8be7 Enhance defects assertion. bitdancer Dec 26, 2025 https://github.com/python/cpython/pull/152710/commits/bfb8be777785f6f522afdc044b061b70c8507240
40fbf96 Add defect expectation constants and functions. bitdancer May 19, 2026 https://github.com/python/cpython/pull/152710/commits/40fbf96be7eb7bad88942fff692f85aecd373ea5
8158e1c Fix defect copying when extending a token list. bitdancer Jan 21, 2026 https://github.com/python/cpython/pull/152710/commits/8158e1c62266926dbc13d92d5d8910cd92fc8a6e
4e3dc45 Add for_each_character params filter. bitdancer Mar 14, 2026 https://github.com/python/cpython/pull/152710/commits/4e3dc45233cafb7fa0bd57c5bb8bc6d5d97e64c4
24d78c2 Begin converting _wsp_splitter tests to new framework. bitdancer Jan 8, 2026 https://github.com/python/cpython/pull/152710/commits/24d78c2bb68f47051f437c58be924ff8764cc659
3e7357b Do _wsp_splitter test conversion. bitdancer Dec 28, 2025 https://github.com/python/cpython/pull/152710/commits/3e7357bf6f5de00c898988e9edf845cb4575b5c5
0bab82a Update _wsp_splitter test names. bitdancer Dec 28, 2025 https://github.com/python/cpython/pull/152710/commits/0bab82a3444637f0ec463cdbf6cee1a8824d4f9b
5df8183 Add tests for _validate_xtext. bitdancer Mar 14, 2026 https://github.com/python/cpython/pull/152710/commits/5df81830593c4ad541c4b5dd8c8c3c1bdf227512
127b6af Add more testing infrastructure. bitdancer Dec 26, 2025 https://github.com/python/cpython/pull/152710/commits/127b6aff6819927b523bcbf4a26f9b5758eb2a05
dc93b3a Add tests for _get_ptext_to_endchars. bitdancer Dec 26, 2025 https://github.com/python/cpython/pull/152710/commits/dc93b3aac8c593883999044213c41a401421b763
3a13cae Begin refactoring of get_fws tests. bitdancer Jan 17, 2026 https://github.com/python/cpython/pull/152710/commits/3a13caeb68e7a59eb1b0e63d2837c1ef2b1e5d27
bf2746d Rough conversion of existing get_fws tests. bitdancer Jan 8, 2026 https://github.com/python/cpython/pull/152710/commits/bf2746d487b9984edd3bc1c6f80e6efe7ac60eac
102da9e Fix whitespace and test names in get_fws tests. bitdancer Dec 26, 2025 https://github.com/python/cpython/pull/152710/commits/102da9e5a3d165e660c25ca8d7169eb1de1d0081
aafe940 Convert get_fws tests to keyword form. bitdancer Jan 8, 2026 https://github.com/python/cpython/pull/152710/commits/aafe9407553faebe0647d7b0fe22a8aa6c8b2511
e2a28e0 Improve the get_fws test names. bitdancer Feb 20, 2026 https://github.com/python/cpython/pull/152710/commits/e2a28e0890ebc472c04cc5c314ee5c551c2ed988
d5afdf7 Improve get_fws tests. bitdancer Dec 26, 2025 https://github.com/python/cpython/pull/152710/commits/d5afdf7e11c72656e219526fe806db1d8cd2d74b
1d422b8 Begin _encoded_words test refactor. bitdancer Jan 2, 2026 https://github.com/python/cpython/pull/152710/commits/1d422b8ef5084dca084957f0162fd4be573549ea
110e8c7 Rough conversion of _encoded_word tests. bitdancer Jan 2, 2026 https://github.com/python/cpython/pull/152710/commits/110e8c76e881f4ddf44a852ddfdf38b1ce5aadb1
0f7b17f Fix whitespace and test names in _encoded_words tests. bitdancer Jan 2, 2026 https://github.com/python/cpython/pull/152710/commits/0f7b17fb283fd3ebb379b9e25abd2fbb3b853131
3c6bfe3 Tidy up to finish _encoded_words test conversion. bitdancer Jan 2, 2026 https://github.com/python/cpython/pull/152710/commits/3c6bfe31cfad8fa1ec692f90ffa1a5120f8a05a9
d71112d Begin get_encoded_word test refactor. bitdancer Jan 3, 2026 https://github.com/python/cpython/pull/152710/commits/d71112dad8593eecda9dc7529f989f0713607d28
7420116 Rough conversion of get_encoded_word tests. bitdancer Dec 27, 2025 https://github.com/python/cpython/pull/152710/commits/74201160917f17e1376a3a1d0c5d4646a39d73ea
82b6156 Fix test names and whitespace in get_encoded_word tests. bitdancer Jan 3, 2026 https://github.com/python/cpython/pull/152710/commits/82b6156b591b6ef1ec5430aebf9094ef5e678238
f942791 Convert get_encoded_word tests to keyword form. bitdancer Dec 27, 2025 https://github.com/python/cpython/pull/152710/commits/f942791a244fca3a987d56f93ebcd3695290120f
45ff404 Begin simplifying get_encoded_word 'raise' tests. bitdancer May 20, 2026 https://github.com/python/cpython/pull/152710/commits/45ff404697062cc69c34818ae445f036b6befc29
c2debf7 Simplify get_encoded_word raise tests further. bitdancer May 7, 2026 https://github.com/python/cpython/pull/152710/commits/c2debf7c0c54203a16b02da3aac65c1fe7796a5c
65a808d Update get_encoded_word raise tests before adding more. bitdancer Jan 29, 2026 https://github.com/python/cpython/pull/152710/commits/65a808d6772f7d22e4c14619c4807c61e50b729e
fbeae7d Update fix for bpo-27397/gh-71584. bitdancer May 14, 2026 https://github.com/python/cpython/pull/152710/commits/fbeae7da079b3fa479b432d1fcca153d588b0ece
8754d9e Add more get_encoded_word tests. bitdancer Jun 13, 2026 https://github.com/python/cpython/pull/152710/commits/8754d9e7c8948348717fd01d8bae69fb81fac1e9
de6487e Begin refactoring get_unstructured tests. bitdancer Jun 13, 2026 https://github.com/python/cpython/pull/152710/commits/de6487e562fd4667ad3cb6daf4f4258f1c28020f
527e9ac Rough conversion of get_unstructured tests. bitdancer Jan 5, 2026 https://github.com/python/cpython/pull/152710/commits/527e9ac703f2816c5629cf499f6687ca89d0d19b
89570a8 Fix whitespace/test names in get_unstructured tests. bitdancer Jan 5, 2026 https://github.com/python/cpython/pull/152710/commits/89570a8e3debb34c18b2d0abe5bb850594620893
0102035 Convert get_unstructured tests to keyword form. bitdancer Jan 5, 2026 https://github.com/python/cpython/pull/152710/commits/01020353dd5f5bacceb0f218d3c2161c7394857b
50f90d6 Remove now redundant get_unstructured tests. bitdancer May 17, 2026 https://github.com/python/cpython/pull/152710/commits/50f90d6aea7d48316bceb1d6d929550466e46438
ca58e38 Add more get_unstructured tests, specific defects. bitdancer Jan 5, 2026 https://github.com/python/cpython/pull/152710/commits/ca58e3875a076b5b0ee23254b722be30226b27ae
5948d0b Begin conversion of get_qp_ctext tests. bitdancer Jan 7, 2026 https://github.com/python/cpython/pull/152710/commits/5948d0b5c99d583f01cd8974d8aed0903b4f53d9
ca77c51 Convert get_qp_ctext tests. bitdancer Jan 7, 2026 https://github.com/python/cpython/pull/152710/commits/ca77c516867f4e9c6fef24d685c4d908575dfa3d
b68a369 Fix whitespace and test names in get_qp_ctext tests. bitdancer Jan 7, 2026 https://github.com/python/cpython/pull/152710/commits/b68a369b63b0b0e2fdc7a094f7a09bd73a893d51
8102870 Convert get_qp_ctext tests to keyword form. bitdancer Jan 7, 2026 https://github.com/python/cpython/pull/152710/commits/810287027ec241e3b7a185657500e2fa18a47f98
91e75e2 get_qp_ctext test improvements. bitdancer Jan 7, 2026 https://github.com/python/cpython/pull/152710/commits/91e75e28da14487ef4ece3077c5efb9899ec5184
e22c595 Begin converting get_qcontent tests to new framework. bitdancer Jan 11, 2026 https://github.com/python/cpython/pull/152710/commits/e22c59589dce2dc4fd3969fcefdf507c637f076b
0a7bc1c Rough conversion of get_qcontent tests. bitdancer Jan 11, 2026 https://github.com/python/cpython/pull/152710/commits/0a7bc1c9d09ab0139b833c0ffd2dc43f7c6acf3f
98d66aa Fix whitespace and test names in get_qcontent tests. bitdancer Jan 11, 2026 https://github.com/python/cpython/pull/152710/commits/98d66aa401b20570369c429f206beb4a00338193
8960b84 Put get_qcontent tests in keyword form. bitdancer Jan 11, 2026 https://github.com/python/cpython/pull/152710/commits/8960b840a1f42aa18d14784175a1ef988e43ea00
b882330 Improve get_qcontent tests. bitdancer Jan 11, 2026 https://github.com/python/cpython/pull/152710/commits/b882330983e181fc690b714aee0a9d6a9bca3eec
0679063 Start conversion of get_atext tests. bitdancer Jan 13, 2026 https://github.com/python/cpython/pull/152710/commits/06790635f4cd641391ec00a9df36bf0f2d4b30bc
d2a32af Rough conversion of get_atext tests. bitdancer Jan 13, 2026 https://github.com/python/cpython/pull/152710/commits/d2a32af6f631098e9f784da51d977056cc749cf2
a083cd2 Fix whitespace and test names in get_atext tests. bitdancer Jan 13, 2026 https://github.com/python/cpython/pull/152710/commits/a083cd233afcc60cf2f382e9cb876c6a7ab981a2
64299cf Convert get_atext tests to keyeword form. bitdancer Jan 13, 2026 https://github.com/python/cpython/pull/152710/commits/64299cf6b36035d6cd02ea562ec4d1db5e42f3ff
644e855 Improve the get_atext tests. bitdancer Jan 13, 2026 https://github.com/python/cpython/pull/152710/commits/644e8552320cb9f719d77e57475ccdce6dfdac9f
220e675 Begin refactor of get_bare_quoted_string tests. bitdancer Jan 14, 2026 https://github.com/python/cpython/pull/152710/commits/220e6754b85696d082cf50065af0e6eb3e2fb10f
30a796e Rough refactoring of bare_quoted_string tests. bitdancer Jan 14, 2026 https://github.com/python/cpython/pull/152710/commits/30a796e2fb87b77dc26114a18cf1470f880144d8
f4216ee Fix whitespace and test names in bare_quoted_string tests. bitdancer Jan 14, 2026 https://github.com/python/cpython/pull/152710/commits/f4216ee83de80cd6705f9ad722f083d8281430c0
faa905f Convert bare_quoted_string tests to keyword form. bitdancer Jan 14, 2026 https://github.com/python/cpython/pull/152710/commits/faa905f8bd068ddbb6a722631d1e3f846dddca08
71d5488 Clarify test names, remove redundant test. bitdancer Jan 15, 2026 https://github.com/python/cpython/pull/152710/commits/71d548839f6d5b219e2fbfefacca954eb6103b2c
b7bc1ce Improve bare_quoted_string tests. bitdancer Jan 15, 2026 https://github.com/python/cpython/pull/152710/commits/b7bc1ceda8e58903918f33ce2d2078cf8622108a
4d20bcc Begin refactoring get_comment tests. bitdancer Jan 16, 2026 https://github.com/python/cpython/pull/152710/commits/4d20bcc00e10695e647dd7e75852870c4971f552
9d371de Rough conversion of get_comment tests. bitdancer Jan 17, 2026 https://github.com/python/cpython/pull/152710/commits/9d371de5b9163a577679a5d26d17315f12b720bd
effd1d6 Fix whitespace and test names in get_comment tests. bitdancer Jan 18, 2026 https://github.com/python/cpython/pull/152710/commits/effd1d6215b1ee415a6f84eb960abd7dee6ffbc4
6b38169 Convert get_comment tests to keyword form. bitdancer Jan 18, 2026 https://github.com/python/cpython/pull/152710/commits/6b38169331fffebafbb24a5611d5cc6abf6c7780
bf27f70 Improve get_comment test names. bitdancer Feb 28, 2026 https://github.com/python/cpython/pull/152710/commits/bf27f70af5678ae4ac24d1d677b492d57b927941
5fe5f58 Improve the get_comment tests. bitdancer Jan 19, 2026 https://github.com/python/cpython/pull/152710/commits/5fe5f58a0871bd3a4a7a069e484b7bd2478c355a
1079602 Begin conversion of get_cfws tests. bitdancer Jan 23, 2026 https://github.com/python/cpython/pull/152710/commits/1079602713b75fc7176831ead078dfaa85da9a35
2fa6a8e Remove now-redundant tests. bitdancer Feb 28, 2026 https://github.com/python/cpython/pull/152710/commits/2fa6a8e503bdcdb303d53ce0513a152b53f61438
407e6c2 Rough conversion of get_cwfs tests. bitdancer Jan 23, 2026 https://github.com/python/cpython/pull/152710/commits/407e6c22a244a66117fabcf5da90d05d0e53d6cf
62951e5 Fix whitespace in get_cfws tests. bitdancer Jan 23, 2026 https://github.com/python/cpython/pull/152710/commits/62951e5f0848c08d801e15c246d54246077c4759
e97f868 Shorten test names in get_cfws tests. bitdancer Jan 23, 2026 https://github.com/python/cpython/pull/152710/commits/e97f8683ab5610df75190ef3ae7f0f8c7f359cfa
c4bf042 Convert get_cfws tests to keyword form. bitdancer Jan 23, 2026 https://github.com/python/cpython/pull/152710/commits/c4bf042e97214bbd0e952debbe2b07086db43924
251adca Add commenttree checks to get_cfws tests. bitdancer Jan 23, 2026 https://github.com/python/cpython/pull/152710/commits/251adcaf012c4fc1f2459449ffb46c1efe142529
226a1b1 Improve get_cfws tests. bitdancer Jan 23, 2026 https://github.com/python/cpython/pull/152710/commits/226a1b14a6fa4d730435d75f2a1a76a73fc90de6
fe66529 Start conversion of get_quoted_string tests. bitdancer Jan 23, 2026 https://github.com/python/cpython/pull/152710/commits/fe6652945699b048e58c0acb3359fa0e2b2dd1af
4b890eb Remove now redundant get_quoted_string test. bitdancer Mar 6, 2026 https://github.com/python/cpython/pull/152710/commits/4b890eb0efd5f7dbb830015131a504bfa0f7ee9c
a568523 Rough conversion of get_quoted_string tests. bitdancer Jan 24, 2026 https://github.com/python/cpython/pull/152710/commits/a568523da411cb7421d1c63ba487f22b9b31f17e
0e84644 Fix whitespace and test names in get_quoted_string tests. bitdancer Jan 24, 2026 https://github.com/python/cpython/pull/152710/commits/0e84644cfb2cdad1aa38badf969ebcd51ba722ba
8c70238 Convert get_quoted_string tests to keyword form. bitdancer Jan 26, 2026 https://github.com/python/cpython/pull/152710/commits/8c70238d05fc446c6c5c0424f3d4f5e3579ed129
8cac1d1 Improve get_quoted_string tests. bitdancer Jan 26, 2026 https://github.com/python/cpython/pull/152710/commits/8cac1d142f50bf5edce6da519667cb5c736ec65a
e67faaf Add content checking to get_quoted_string tests. bitdancer Apr 8, 2026 https://github.com/python/cpython/pull/152710/commits/e67faafae5fc71800ec885c7a1d0aa2023133d2b
420529d Start refactoring get_atom tests. bitdancer Jan 26, 2026 https://github.com/python/cpython/pull/152710/commits/420529d2d2bc3e7d580662f7ab9087c713d9bff2
a168523 Rough conversion of get_atom tests. bitdancer Jan 26, 2026 https://github.com/python/cpython/pull/152710/commits/a1685237fe8cb9c8e0af8df05fdf2267a06d03b7
bf789fc Fix whitespace and test names in get_atom tests. bitdancer Jan 26, 2026 https://github.com/python/cpython/pull/152710/commits/bf789fc19791dc82fff1d2fb9eca0d4ad79d0c51
06d6617 Convert get_atom tests to keyword form. bitdancer Jan 26, 2026 https://github.com/python/cpython/pull/152710/commits/06d6617bb0865981d522b376eb973409333d46ab
1aa811c Improve the get_atom tests. bitdancer Jan 26, 2026 https://github.com/python/cpython/pull/152710/commits/1aa811cc202231c3efb33bb7102ea97871a441fd
d3e1d96 Start refactoring get_dot_atom_text tests. bitdancer Feb 1, 2026 https://github.com/python/cpython/pull/152710/commits/d3e1d96199ae9f26c1d68db0d43c688230c5ad2e
1f36294 Delete now redundant get_dot_atom_text test. bitdancer Mar 9, 2026 https://github.com/python/cpython/pull/152710/commits/1f36294bfe22f08b54797b37a87491254e61ea47
8e2776a Rough conversion of get_dot_atom_text tests. bitdancer Feb 2, 2026 https://github.com/python/cpython/pull/152710/commits/8e2776a8a680d3e656270eab32ab342ecb629bed
8c60d90 Fix whitespace and test names in get_dot_atom_text tests. bitdancer Feb 2, 2026 https://github.com/python/cpython/pull/152710/commits/8c60d90aa4a644671b9dd38bf0d767dcb8d53dda
51772f7 Convert get_dot_atom_text tests to keyword form. bitdancer Feb 5, 2026 https://github.com/python/cpython/pull/152710/commits/51772f75ff3262ab15e5359a5e11e1417bf84d6d
38db54e Improve the get_dot_atom_text tests, step 1. bitdancer Feb 5, 2026 https://github.com/python/cpython/pull/152710/commits/38db54ec0c4e2b9130c334115d561f20a7140df5
b91ba59 Improve the get_dot_atom_text tests step 2. bitdancer Mar 9, 2026 https://github.com/python/cpython/pull/152710/commits/b91ba59d1d7c73497975b651cc39077e64b6725f
2b8c183 Improve get_dot_atom_text tests step 3: more tests. bitdancer Mar 9, 2026 https://github.com/python/cpython/pull/152710/commits/2b8c1832e119d292a505a18efcfc7920a5777d40
7d91c74 Begin refactoring get_dot_atom tests. bitdancer Feb 8, 2026 https://github.com/python/cpython/pull/152710/commits/7d91c74da4fbfaa0cdbf6671f5374dd572a7e4cb
0cc7e12 Rough conversion of get_dot_atom tests. bitdancer Feb 8, 2026 https://github.com/python/cpython/pull/152710/commits/0cc7e127e4001c425f8fb537042881641bbce6f4
3c3fdb1 Fix whitespace and test names in get_dot_atom tests. bitdancer Feb 8, 2026 https://github.com/python/cpython/pull/152710/commits/3c3fdb1502c4972997f619aa65a30755a786a144
364df1e Convert get_dot_atom tests to keyword form. bitdancer Feb 8, 2026 https://github.com/python/cpython/pull/152710/commits/364df1ed695221755eb44a39b02e9eb9e4e9fe5d
e7b9020 Improve the get_dot_atom tests. bitdancer Feb 8, 2026 https://github.com/python/cpython/pull/152710/commits/e7b9020930260ee4a4f49fed0d4fb53171cbe1d8
38b613b Refactor get_word tests. bitdancer Feb 13, 2026 https://github.com/python/cpython/pull/152710/commits/38b613baa00743e04b356489d3032f538aeea5ad
4f59e8f Begin refactoring get_phrase tests. bitdancer Feb 20, 2026 https://github.com/python/cpython/pull/152710/commits/4f59e8f6ee841c443c376c35c0dc092dec753eeb
ffe9351 Rough conversion of get_phrase tests. bitdancer Mar 11, 2026 https://github.com/python/cpython/pull/152710/commits/ffe9351620f6883700a947b621d9f887148e4575
ad2618f Fix whitespace and test names in get_phrase tests. bitdancer Mar 11, 2026 https://github.com/python/cpython/pull/152710/commits/ad2618f4ae70eb510bf9354f06ff950b6b5912e8
b467e07 Convert get_phrase tests to keyword form. bitdancer Mar 11, 2026 https://github.com/python/cpython/pull/152710/commits/b467e071a5cf4b86d797ba98e2236417e94d73c0
4f4d5e1 Add equivalent of get_phrase test length check. bitdancer Mar 11, 2026 https://github.com/python/cpython/pull/152710/commits/4f4d5e1f0592334b6a7812f60ea36d7ad4d0c514
ebdce1f Improve the get_phrase test defect checking. bitdancer Mar 11, 2026 https://github.com/python/cpython/pull/152710/commits/ebdce1f3fd301b5614b855771cb61c6a8d6e5fba
d6fad60 Improve the get_phrase test names. bitdancer Mar 11, 2026 https://github.com/python/cpython/pull/152710/commits/d6fad60c33eb6f0f312b5e565cff73f7d0656b87
bf3a9ac Additional tests for get_phrase. bitdancer Mar 11, 2026 https://github.com/python/cpython/pull/152710/commits/bf3a9ac0a6b23a70d6f234eb90951b01317ba7e5
50a8bc7 Begin conversion of get_local_part tests. bitdancer Mar 28, 2026 https://github.com/python/cpython/pull/152710/commits/50a8bc717ff207d1ea3b4f106596a81433b86b3b
676b998 Rough refactoring of get_local_part tests. bitdancer Mar 30, 2026 https://github.com/python/cpython/pull/152710/commits/676b998731609d47a4a212976f7177a42f345b17
95c4f0e Fix whitespace and test names in get_local_part tests. bitdancer Mar 30, 2026 https://github.com/python/cpython/pull/152710/commits/95c4f0e8d9596dcd1dc8934047761d354165eb80
1f1ed35 Convert get_local_part tests to keyword form. bitdancer Mar 30, 2026 https://github.com/python/cpython/pull/152710/commits/1f1ed35d798bca9ebcd1c91b15712d0abdb8a145
4093b8a Add defect message checks to get_local_part tests. bitdancer Mar 31, 2026 https://github.com/python/cpython/pull/152710/commits/4093b8a25073ab8f08ba33b84135e4848d8546a1
291568d Move obs tests to new get_obs_local_part tests section. bitdancer Apr 3, 2026 https://github.com/python/cpython/pull/152710/commits/291568d5ab69d1be88730742bce29e534c8d5da6
a3e93be Move get_obs_local_part before get_local_part. bitdancer Apr 3, 2026 https://github.com/python/cpython/pull/152710/commits/a3e93beccc42ebde1b291a0c3673bbb5aee0a285
62d7e8a Enhance the get_obs_local_part tests. bitdancer Apr 3, 2026 https://github.com/python/cpython/pull/152710/commits/62d7e8a59466b55c76cc098ff4c5c3e232e723c2
f8fffad New get_obs_local_part ew test, fix bug. bitdancer Apr 3, 2026 https://github.com/python/cpython/pull/152710/commits/f8fffad5db222792aa11c3fda17c0c0e3debfff0
16a239d More get_obs_local_part ew tests. bitdancer Apr 4, 2026 https://github.com/python/cpython/pull/152710/commits/16a239d783dae63af6849e595a020132de9a2b3e
a6fc56f Add unicode and ew get_local_part tests. bitdancer Apr 7, 2026 https://github.com/python/cpython/pull/152710/commits/a6fc56f6f506f587dadd88c98a0097e7c7fbc87c
d82b5c9 Document new API pattern, add deprecation helpers. bitdancer Dec 25, 2025 https://github.com/python/cpython/pull/152710/commits/d82b5c9eab65b7e2abc26ca78504f3754e807a8e
c86dabe Deprecate NonASCIILocalPartDefect. bitdancer May 2, 2026 https://github.com/python/cpython/pull/152710/commits/c86dabeab308501de6463e7ff759c2f96e89b5f7
66fe08b Refactor get_fws. bitdancer Mar 20, 2026 https://github.com/python/cpython/pull/152710/commits/66fe08beb8f6be97e8e14113225a6349ceb6bfb3
f0a0cc3 Add _make_xtext. bitdancer May 10, 2026 https://github.com/python/cpython/pull/152710/commits/f0a0cc3f27058027ad0a2dcc45e1a487dc4218e6
58f523c Preliminary deprecation of _validate_xtext. bitdancer May 10, 2026 https://github.com/python/cpython/pull/152710/commits/58f523c9258374cd2b6fd87f55de1246cef28fd6
bdaa0f7 Add _get_xtext function. bitdancer Jan 13, 2026 https://github.com/python/cpython/pull/152710/commits/bdaa0f7efe0b57c53cfc8446b4593696b529ce66
9b8e480 Factor a _decode out of decode in _encoded_words. bitdancer Jan 2, 2026 https://github.com/python/cpython/pull/152710/commits/9b8e480a13925720a0e7d7af66c8324bd1b830ab
19cc42a Refactor get_encoded_word. bitdancer Dec 30, 2025 https://github.com/python/cpython/pull/152710/commits/19cc42afdead39578843e681b4c37f7397790c6d
f1014b6 Refactor get_unstructured into parse_unstructured. bitdancer Jan 5, 2026 https://github.com/python/cpython/pull/152710/commits/f1014b62f788d9c045b1fc580e0ae8b83dbf5f62
801c4ab Deprecate _wsp_splitter. bitdancer Jan 31, 2026 https://github.com/python/cpython/pull/152710/commits/801c4ab21bdc403f9a10dd28d58e0c54ac9fcdcd
87dcb41 Start adding a content_getter helper. bitdancer Jan 7, 2026 https://github.com/python/cpython/pull/152710/commits/87dcb41fd27511b9296235243b3852fc418dd355
d598267 Implement content_getter. bitdancer May 8, 2026 https://github.com/python/cpython/pull/152710/commits/d598267d3ee715f0e13719cd3561b997191b3169
d2714a9 Deprecate _get_ptext_to_endchars. bitdancer Mar 19, 2026 https://github.com/python/cpython/pull/152710/commits/d2714a979e95cce1a005a042c75641c1706d1460
f87d59a Refactor parse_unstructured to use content_getter. bitdancer May 8, 2026 https://github.com/python/cpython/pull/152710/commits/f87d59a059bc54666d38f65527cd8288fec150cd
c6ec083 Add get_ccontent_sequence. bitdancer Jun 6, 2026 https://github.com/python/cpython/pull/152710/commits/c6ec08303e45cd5c97877c46203bf6b67d9ae533
672f357 Have get_comment reuse the get_ccontent_sequence tests. bitdancer Jun 6, 2026 https://github.com/python/cpython/pull/152710/commits/672f3574a0ca768347b3d6b438cbd37962bc5998
d0f031e Preliminary deprecation of get_qp_ctext. bitdancer May 9, 2026 https://github.com/python/cpython/pull/152710/commits/d0f031ee2fd13e955e1e4b773bf20cf39c90e464
59e58a6 Set up easy POSTDEP removal for get_qp_ctext. bitdancer May 9, 2026 https://github.com/python/cpython/pull/152710/commits/59e58a6409b0fb15c16b0c2c570e4ccba57cffc8
230f00c Refactor get_bare_quoted_string. bitdancer Jan 15, 2026 https://github.com/python/cpython/pull/152710/commits/230f00c1dadddb4d7dc293c88ba880878238890e
399cf70 Preliminary deprecation of get_qcontent. bitdancer Mar 20, 2026 https://github.com/python/cpython/pull/152710/commits/399cf7036770a24faeb761165693bed1ccd9be7b
705f301 Add get_atext_sequence. bitdancer Mar 20, 2026 https://github.com/python/cpython/pull/152710/commits/705f30132599fe651f58784afb740aa81e4c11ba
45591fa Preliminary deprecation of get_atext. bitdancer Mar 20, 2026 https://github.com/python/cpython/pull/152710/commits/45591fa65de862dc293719cb6d68ee3e058a561f
0521972 Refactor get_comment. bitdancer May 8, 2026 https://github.com/python/cpython/pull/152710/commits/05219726d2befd38519d5d565429ca63a6b028f4
bfa84af Finalize deprecation of get_qp_ctext. bitdancer Jan 21, 2026 https://github.com/python/cpython/pull/152710/commits/bfa84af923db9ed0655058d53ca654d8e059bcaf
2435928 Refactor get_cfws. bitdancer Jan 23, 2026 https://github.com/python/cpython/pull/152710/commits/2435928a34e5b9068267eafec5ee15302c84d90f
6ba71e7 Refactor get_quoted_string. bitdancer Jan 26, 2026 https://github.com/python/cpython/pull/152710/commits/6ba71e7fb9155f734bac297a6a6fee8fae51441b
464d403 Refactor get_atom. bitdancer Jan 27, 2026 https://github.com/python/cpython/pull/152710/commits/464d40314b47d42e8be9ba08c1ce0b4e909d320d
34eb525 Refactor get_dot_atom_text. bitdancer Feb 5, 2026 https://github.com/python/cpython/pull/152710/commits/34eb5250f435dca79808ea7af8ec61ee442131ca
1339032 Finalize deprecation of get_atext. bitdancer May 3, 2026 https://github.com/python/cpython/pull/152710/commits/1339032283a09760e4711eb522bfcf0e1224931e
2c63beb Refactor get_dot_atom. bitdancer Feb 8, 2026 https://github.com/python/cpython/pull/152710/commits/2c63bebef5f43497263c8aacc9a3424ef107de29
e1b1fa4 Refactor get_word. bitdancer Feb 16, 2026 https://github.com/python/cpython/pull/152710/commits/e1b1fa40b8f74572b6ac016f797d80b014029b45
3df6a62 Refactor get_phrase. bitdancer Mar 14, 2026 https://github.com/python/cpython/pull/152710/commits/3df6a62b76c010bb7138ee577055acb9e8ee1125
e8fc51b Refactor get_obs_local_part. bitdancer May 2, 2026 https://github.com/python/cpython/pull/152710/commits/e8fc51b96648e50ba11a678b9438e163f6a2494e
9ed0e66 Refactor get_local_part. bitdancer Jun 5, 2026 https://github.com/python/cpython/pull/152710/commits/9ed0e66490706e64ecba6a63cc2d6d195b172faf
Clear filters https://github.com/python/cpython/pull/152710/files
Please reload this pagehttps://github.com/python/cpython/pull/152710/files
Please reload this pagehttps://github.com/python/cpython/pull/152710/files
_encoded_words.py https://github.com/python/cpython/pull/152710/files#diff-f0930372a444c221640c08c6cd23a91aaf85956f95a6cf83b482a19b710ac802
_header_value_parser.py https://github.com/python/cpython/pull/152710/files#diff-4f8d778d571b7faffb42100d1f6d0374134750c72f94c0840e9368c351b41845
errors.py https://github.com/python/cpython/pull/152710/files#diff-6b53981eabbf3b2dac54ddb7efc6c1097124bd8148e2264cc1ac30851b45518e
temp https://github.com/python/cpython/pull/152710/files#diff-c270f36f76507572cbf6b34e48cfaa5f3e7a83a38b9a8e8b491bc72887755612
__init__.py https://github.com/python/cpython/pull/152710/files#diff-c8a5f7a2e41513ae01a949eff048b63aa587bb6eb4a7117f2e73e6c873c9242d
params.py https://github.com/python/cpython/pull/152710/files#diff-85b1fd30f6a0e73d53fc73167318fa806eae78fe8f3ceafc0edf226911b366cb
test__encoded_words.py https://github.com/python/cpython/pull/152710/files#diff-1d7bc41dda41d4c1f15ca71a4aa670385badb364ef28f64a6ec0d5080841d6ef
test__header_value_parser.py https://github.com/python/cpython/pull/152710/files#diff-903868bb695b972a6c6c6fec7fdf1aedd13ef65e7e076aef8b0964a9ff004839
test_defect_handling.py https://github.com/python/cpython/pull/152710/files#diff-cfbd1a2f595209004cf23815b0ad3ad18105ddc046fd920740109e670c6d939e
test_headerregistry.py https://github.com/python/cpython/pull/152710/files#diff-dc8bbb38fe110368deddc8c037f2898646059fe5b3299da68159ba5ef4721c2b
test_params.py https://github.com/python/cpython/pull/152710/files#diff-f49b7a4362c2c0aa20287fdcf644cd97787b0c716a6639f55a3022195cbef348
test_testing_infrastructure.py https://github.com/python/cpython/pull/152710/files#diff-7d4147a0d8fda3ef410db73545ce3c9d552c52ad1fd24d7be486ee0770f14663
https://github.com/python/cpython/blob/main/.github/CODEOWNERS#L448
Lib/email/_encoded_words.pyhttps://github.com/python/cpython/pull/152710/files#diff-f0930372a444c221640c08c6cd23a91aaf85956f95a6cf83b482a19b710ac802
View file https://github.com/python/cpython/blob/9ed0e66490706e64ecba6a63cc2d6d195b172faf/Lib/email/_encoded_words.py
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/python/cpython/pull/152710/{{ revealButtonHref }}
https://github.com/python/cpython/pull/152710/files#diff-f0930372a444c221640c08c6cd23a91aaf85956f95a6cf83b482a19b710ac802
https://github.com/python/cpython/pull/152710/files#diff-f0930372a444c221640c08c6cd23a91aaf85956f95a6cf83b482a19b710ac802
https://github.com/python/cpython/pull/152710/files#diff-f0930372a444c221640c08c6cd23a91aaf85956f95a6cf83b482a19b710ac802
Please reload this pagehttps://github.com/python/cpython/pull/152710/files
Please reload this pagehttps://github.com/python/cpython/pull/152710/files
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.