| route-pattern | /_view_fragments/voltron/pull_requests/show/:user_id/:repository/:id/pull_request_layout(.:format) |
| route-controller | voltron_pull_requests_fragments |
| route-action | pull_request_layout |
| fetch-nonce | v2:c87a9ef9-34de-16b0-7ffd-6700fd0eff42 |
| current-catalog-service-hash | ae870bc5e265a340912cde392f23dad3671a0a881730ffdadd82f2f57d81641b |
| request-id | 94A8:8B72C:53C05B:723FA7:6A627953 |
| html-safe-nonce | a22cb6c33d42d5c097eb046e77fdd60c933e22cff84141444734ae99d17a0cc8 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI5NEE4OjhCNzJDOjUzQzA1Qjo3MjNGQTc6NkE2Mjc5NTMiLCJ2aXNpdG9yX2lkIjoiNTE1Mzc0OTc0MDk0NjYxODcwNyIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | 02825344264814bd71ac9657dc71799d6210f55ab5cd38334fbbf15f2be0d4ad |
| hovercard-subject-tag | pull_request:4113238296 |
| 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 | ///voltron/pull_requests_fragments/pull_request_layout |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/_view_fragments/voltron/pull_requests/show/RustPython/RustPython/8351/pull_request_layout |
| twitter:image | https://opengraph.githubassets.com/ccf7e410f70b4fb8353cf8e177326b7038d418a637fa81567b659405a143e730/RustPython/RustPython/pull/8351 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/ccf7e410f70b4fb8353cf8e177326b7038d418a637fa81567b659405a143e730/RustPython/RustPython/pull/8351 |
| og:image:alt | Closes Inconsistent behaviors for Parser().parsestr(t).keys() in email.parser #4936
This PR follows our AI policy
AI assistance: codex gpt-5.6-sol
Summary
Fix StringIO(newline='') so read... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | doma17 |
| hostname | github.com |
| expected-hostname | github.com |
| None | 838e87bd0e4f5415707a930bc14e89e382dc2ea046e50ff575252eb2f2cb06a2 |
| turbo-cache-control | no-cache |
| go-import | github.com/RustPython/RustPython git https://github.com/RustPython/RustPython.git |
| octolytics-dimension-user_id | 39710557 |
| octolytics-dimension-user_login | RustPython |
| octolytics-dimension-repository_id | 135201145 |
| octolytics-dimension-repository_nwo | RustPython/RustPython |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 135201145 |
| octolytics-dimension-repository_network_root_nwo | RustPython/RustPython |
| 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 | f0081192f88523d2bf4cfdf22bb3e138affc4cd1 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
| Skip to content | https://github.com/RustPython/RustPython/pull/8351#start-of-content |
|
| https://github.com/ |
|
Sign in
| https://github.com/login?return_to=https%3A%2F%2Fgithub.com%2FRustPython%2FRustPython%2Fpull%2F8351 |
| GitHub CopilotWrite better code with AI | https://github.com/features/copilot |
| GitHub Copilot appDirect agents from issue to merge | https://github.com/features/ai/github-app |
| MCP RegistryNewIntegrate external tools | https://github.com/mcp |
| ActionsAutomate any workflow | https://github.com/features/actions |
| CodespacesInstant dev environments | https://github.com/features/codespaces |
| IssuesPlan and track work | https://github.com/features/issues |
| Code ReviewManage code changes | https://github.com/features/code-review |
| Code QualityEnforce quality at merge | https://github.com/features/code-quality |
| GitHub Advanced SecurityFind and fix vulnerabilities | https://github.com/security/advanced-security |
| Code securitySecure your code as you build | https://github.com/security/advanced-security/code-security |
| Secret protectionStop leaks before they start | https://github.com/security/advanced-security/secret-protection |
| Why GitHub | https://github.com/why-github |
| Documentation | https://docs.github.com |
| Blog | https://github.blog |
| Changelog | https://github.blog/changelog |
| Marketplace | https://github.com/marketplace |
| View all features | https://github.com/features |
| Enterprises | https://github.com/enterprise |
| Small and medium teams | https://github.com/team |
| Startups | https://github.com/enterprise/startups |
| Nonprofits | https://github.com/solutions/industry/nonprofits |
| App Modernization | https://github.com/solutions/use-case/app-modernization |
| DevSecOps | https://github.com/solutions/use-case/devsecops |
| DevOps | https://github.com/solutions/use-case/devops |
| CI/CD | https://github.com/solutions/use-case/ci-cd |
| View all use cases | https://github.com/solutions/use-case |
| 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 |
| View all industries | https://github.com/solutions/industry |
| View all solutions | https://github.com/solutions |
| AI | https://github.com/resources/articles?topic=ai |
| Software Development | https://github.com/resources/articles?topic=software-development |
| DevOps | https://github.com/resources/articles?topic=devops |
| Security | https://github.com/resources/articles?topic=security |
| View all topics | https://github.com/resources/articles |
| Customer stories | https://github.com/customer-stories |
| Events & webinars | https://github.com/resources/events |
| Ebooks & reports | https://github.com/resources/whitepapers |
| Business insights | https://github.com/solutions/executive-insights |
| GitHub Skills | https://skills.github.com |
| Documentation | https://docs.github.com |
| Customer support | https://support.github.com |
| Community forum | https://github.com/orgs/community/discussions |
| Trust center | https://github.com/trust-center |
| Partners | https://github.com/partners |
| View all resources | https://github.com/resources |
| GitHub SponsorsFund open source developers | https://github.com/open-source/sponsors |
| Security Lab | https://securitylab.github.com |
| Maintainer Community | https://maintainers.github.com |
| Accelerator | https://github.com/open-source/accelerator |
| GitHub Stars | https://stars.github.com |
| Archive Program | https://archiveprogram.github.com |
| Topics | https://github.com/topics |
| Trending | https://github.com/trending |
| Collections | https://github.com/collections |
| Enterprise platformAI-powered developer platform | https://github.com/enterprise |
| GitHub Advanced SecurityEnterprise-grade security features | 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 |
| Pricing | https://github.com/pricing |
| Search syntax tips | https://docs.github.com/search-github/github-code-search/understanding-github-code-search-syntax |
| documentation | https://docs.github.com/search-github/github-code-search/understanding-github-code-search-syntax |
|
Sign in
| https://github.com/login?return_to=https%3A%2F%2Fgithub.com%2FRustPython%2FRustPython%2Fpull%2F8351 |
|
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%2Fpull_requests_fragments%2Fpull_request_layout&source=header-repo&source_repo=RustPython%2FRustPython |
| Reload | https://github.com/RustPython/RustPython/pull/8351 |
| Reload | https://github.com/RustPython/RustPython/pull/8351 |
| Reload | https://github.com/RustPython/RustPython/pull/8351 |
| Please reload this page | https://github.com/RustPython/RustPython/pull/8351 |
|
RustPython
| https://github.com/RustPython |
| RustPython | https://github.com/RustPython/RustPython |
|
Notifications
| https://github.com/login?return_to=%2FRustPython%2FRustPython |
|
Fork
1.5k
| https://github.com/login?return_to=%2FRustPython%2FRustPython |
|
Star
22.2k
| https://github.com/login?return_to=%2FRustPython%2FRustPython |
|
Code
| https://github.com/RustPython/RustPython |
|
Issues
294
| https://github.com/RustPython/RustPython/issues |
|
Pull requests
104
| https://github.com/RustPython/RustPython/pulls |
|
Discussions
| https://github.com/RustPython/RustPython/discussions |
|
Actions
| https://github.com/RustPython/RustPython/actions |
|
Projects
| https://github.com/RustPython/RustPython/projects |
|
Models
| https://github.com/RustPython/RustPython/models |
|
Wiki
| https://github.com/RustPython/RustPython/wiki |
|
Security and quality
0
| https://github.com/RustPython/RustPython/security |
|
Insights
| https://github.com/RustPython/RustPython/pulse |
|
Code
| https://github.com/RustPython/RustPython |
|
Issues
| https://github.com/RustPython/RustPython/issues |
|
Pull requests
| https://github.com/RustPython/RustPython/pulls |
|
Discussions
| https://github.com/RustPython/RustPython/discussions |
|
Actions
| https://github.com/RustPython/RustPython/actions |
|
Projects
| https://github.com/RustPython/RustPython/projects |
|
Models
| https://github.com/RustPython/RustPython/models |
|
Wiki
| https://github.com/RustPython/RustPython/wiki |
|
Security and quality
| https://github.com/RustPython/RustPython/security |
|
Insights
| https://github.com/RustPython/RustPython/pulse |
| youknowone | https://github.com/youknowone |
| RustPython:main | https://github.com/RustPython/RustPython/tree/main |
| doma17:fix-stringio-read-semantics | https://github.com/doma17/RustPython/tree/fix-stringio-read-semantics |
| Conversation | https://github.com/RustPython/RustPython/pull/8351 |
| Commits3 (3) | https://github.com/RustPython/RustPython/pull/8351/commits |
| Checks | https://github.com/RustPython/RustPython/pull/8351/checks |
| Files changed | https://github.com/RustPython/RustPython/pull/8351/files |
| Fix StringIO newline splitting and character positions | https://github.com/RustPython/RustPython/pull/8351#top |
| youknowone | https://github.com/youknowone |
| RustPython:main | https://github.com/RustPython/RustPython/tree/main |
| doma17:fix-stringio-read-semantics | https://github.com/doma17/RustPython/tree/fix-stringio-read-semantics |
|
| https://github.com/doma17 |
| doma17 | https://github.com/doma17 |
| Jul 23, 2026 | https://github.com/RustPython/RustPython/pull/8351#issue-4954934377 |
| Please reload this page | https://github.com/RustPython/RustPython/pull/8351 |
| Inconsistent behaviors for Parser().parsestr(t).keys() in email.parser #4936 | https://github.com/RustPython/RustPython/issues/4936 |
| AI policy | https://github.com/RustPython/.github/blob/main/AI_POLICY.md |
| Inconsistent behaviors for Parser().parsestr(t).keys() in email.parser #4936 | https://github.com/RustPython/RustPython/issues/4936 |
| Please reload this page | https://github.com/RustPython/RustPython/pull/8351 |
| doma17 | https://github.com/doma17 |
| July 23, 2026 11:51 | https://github.com/RustPython/RustPython/pull/8351#commits-pushed-72b0543 |
|
| https://github.com/doma17 |
| Keep StringIO text operations CPython-compatible | https://github.com/RustPython/RustPython/pull/8351/commits/72b0543603e28b0c3c1c748e306f5970071446d7 |
| 72b0543 | https://github.com/RustPython/RustPython/pull/8351/commits/72b0543603e28b0c3c1c748e306f5970071446d7 |
|
| https://github.com/doma17 |
| Run restored StringIO conformance tests | https://github.com/RustPython/RustPython/pull/8351/commits/b87b7896c989d824cedf8a5150218d2ef252c75f |
| b87b789 | https://github.com/RustPython/RustPython/pull/8351/commits/b87b7896c989d824cedf8a5150218d2ef252c75f |
|
| https://github.com/apps/copilot-pull-request-reviewer |
| Copilot | https://github.com/apps/copilot-pull-request-reviewer |
| July 23, 2026 02:53 | https://github.com/RustPython/RustPython/pull/8351#event-28359887407 |
| https://github.com/apps/coderabbitai |
| coderabbitai | https://github.com/apps/coderabbitai |
| Jul 23, 2026 | https://github.com/RustPython/RustPython/pull/8351#issuecomment-5053795662 |
| Please reload this page | https://github.com/RustPython/RustPython/pull/8351 |
| https://app.coderabbit.ai/change-stack/RustPython/RustPython/pull/8351?utm_source=github_walkthrough&utm_medium=github&utm_campaign=change_stack |
| b87b789 | https://github.com/RustPython/RustPython/commit/b87b7896c989d824cedf8a5150218d2ef252c75f |
| 7c097b5 | https://github.com/RustPython/RustPython/commit/7c097b5e759c94daa6eb236385d66211c6278b61 |
| CodeRabbit | https://coderabbit.ai?utm_source=oss&utm_medium=github&utm_campaign=RustPython/RustPython&utm_content=8351 |
| X | https://twitter.com/intent/tweet?text=I%20just%20used%20%40coderabbitai%20for%20my%20code%20review%2C%20and%20it%27s%20fantastic%21%20It%27s%20free%20for%20OSS%20and%20offers%20a%20free%20trial%20for%20the%20proprietary%20code.%20Check%20it%20out%3A&url=https%3A//coderabbit.ai |
| Mastodon | https://mastodon.social/share?text=I%20just%20used%20%40coderabbitai%20for%20my%20code%20review%2C%20and%20it%27s%20fantastic%21%20It%27s%20free%20for%20OSS%20and%20offers%20a%20free%20trial%20for%20the%20proprietary%20code.%20Check%20it%20out%3A%20https%3A%2F%2Fcoderabbit.ai |
| Reddit | https://www.reddit.com/submit?title=Great%20tool%20for%20code%20review%20-%20CodeRabbit&text=I%20just%20used%20CodeRabbit%20for%20my%20code%20review%2C%20and%20it%27s%20fantastic%21%20It%27s%20free%20for%20OSS%20and%20offers%20a%20free%20trial%20for%20proprietary%20code.%20Check%20it%20out%3A%20https%3A//coderabbit.ai |
| LinkedIn | https://www.linkedin.com/sharing/share-offsite/?url=https%3A%2F%2Fcoderabbit.ai&mini=true&title=Great%20tool%20for%20code%20review%20-%20CodeRabbit&summary=I%20just%20used%20CodeRabbit%20for%20my%20code%20review%2C%20and%20it%27s%20fantastic%21%20It%27s%20free%20for%20OSS%20and%20offers%20a%20free%20trial%20for%20proprietary%20code |
| Please reload this page | https://github.com/RustPython/RustPython/pull/8351 |
| https://github.com/apps/github-actions |
| github-actions | https://github.com/apps/github-actions |
| Jul 23, 2026 | https://github.com/RustPython/RustPython/pull/8351#issuecomment-5053799562 |
| Please reload this page | https://github.com/RustPython/RustPython/pull/8351 |
| Please reload this page | https://github.com/RustPython/RustPython/pull/8351 |
| started reviewing | https://github.com/RustPython/RustPython/sessions/9d67d9ea-6d7a-40b0-bf2c-48c4f5f2d44b |
| doma17 | https://github.com/doma17 |
| July 23, 2026 02:55 | https://github.com/RustPython/RustPython/pull/8351#event-28359938008 |
|
View session
| https://github.com/RustPython/RustPython/sessions/9d67d9ea-6d7a-40b0-bf2c-48c4f5f2d44b |
| https://github.com/doma17 |
| doma17 | https://github.com/doma17 |
| July 23, 2026 02:57 | https://github.com/RustPython/RustPython/pull/8351#event-28359980821 |
|
| https://github.com/apps/copilot-pull-request-reviewer |
| Copilot | https://github.com/apps/copilot-pull-request-reviewer |
|
Jul 23, 2026
| https://github.com/RustPython/RustPython/pull/8351#pullrequestreview-4760420487 |
|
View reviewed changes
| https://github.com/RustPython/RustPython/pull/8351/files/b87b7896c989d824cedf8a5150218d2ef252c75f |
| Copilot | https://github.com/apps/copilot-pull-request-reviewer |
| https://github.com/RustPython/RustPython/pull/8351#pullrequestreview-4760420487 |
| Learn more | https://docs.github.com/articles/managing-disruptive-comments/#hiding-a-comment |
| Add Copilot custom instructions | https://github.com/RustPython/RustPython/new/main?filename=.github/instructions/*.instructions.md |
| Learn how to get started | https://docs.github.com/en/copilot/customizing-copilot/adding-repository-custom-instructions-for-github-copilot |
| Please reload this page | https://github.com/RustPython/RustPython/pull/8351 |
| crates/vm/src/stdlib/_io.rs | https://github.com/RustPython/RustPython/pull/8351/files/b87b7896c989d824cedf8a5150218d2ef252c75f#diff-90825edc73ec293e0ed3b2dbed7f0a492b1f8e51c25747326089a912267bdd3e |
| Please reload this page | https://github.com/RustPython/RustPython/pull/8351 |
| Lib/test/test_memoryio.py | https://github.com/RustPython/RustPython/pull/8351/files/b87b7896c989d824cedf8a5150218d2ef252c75f#diff-ab2f917c9da1a7cc15a25cebacc44bcbddf809cc364eb02b29b14fce3d7d514f |
| Please reload this page | https://github.com/RustPython/RustPython/pull/8351 |
| https://github.com/apps/coderabbitai |
| coderabbitai | https://github.com/apps/coderabbitai |
|
Jul 23, 2026
| https://github.com/RustPython/RustPython/pull/8351#pullrequestreview-4760445311 |
|
View reviewed changes
| https://github.com/RustPython/RustPython/pull/8351/files/b87b7896c989d824cedf8a5150218d2ef252c75f |
| coderabbitai | https://github.com/apps/coderabbitai |
| https://github.com/RustPython/RustPython/pull/8351#pullrequestreview-4760445311 |
| Learn more | https://docs.github.com/articles/managing-disruptive-comments/#hiding-a-comment |
| dd9bce5 | https://github.com/RustPython/RustPython/commit/dd9bce501ccec8d2a269a3982b563134a20b242c |
| b87b789 | https://github.com/RustPython/RustPython/commit/b87b7896c989d824cedf8a5150218d2ef252c75f |
| Please reload this page | https://github.com/RustPython/RustPython/pull/8351 |
| crates/vm/src/stdlib/_io.rs | https://github.com/RustPython/RustPython/pull/8351/files/b87b7896c989d824cedf8a5150218d2ef252c75f#diff-90825edc73ec293e0ed3b2dbed7f0a492b1f8e51c25747326089a912267bdd3e |
| Please reload this page | https://github.com/RustPython/RustPython/pull/8351 |
|
| https://github.com/doma17 |
| Keep StringIO newline handling consistent | https://github.com/RustPython/RustPython/pull/8351/commits/7c097b5e759c94daa6eb236385d66211c6278b61 |
| 7c097b5 | https://github.com/RustPython/RustPython/pull/8351/commits/7c097b5e759c94daa6eb236385d66211c6278b61 |
|
| https://github.com/apps/copilot-pull-request-reviewer |
| Copilot | https://github.com/apps/copilot-pull-request-reviewer |
| July 23, 2026 05:22 | https://github.com/RustPython/RustPython/pull/8351#event-28363878786 |
| started reviewing | https://github.com/RustPython/RustPython/sessions/f27584ec-293e-4413-bf91-4503fe4c8318 |
| doma17 | https://github.com/doma17 |
| July 23, 2026 05:22 | https://github.com/RustPython/RustPython/pull/8351#event-28363896257 |
|
View session
| https://github.com/RustPython/RustPython/sessions/f27584ec-293e-4413-bf91-4503fe4c8318 |
|
| https://github.com/apps/copilot-pull-request-reviewer |
| Copilot | https://github.com/apps/copilot-pull-request-reviewer |
|
Jul 23, 2026
| https://github.com/RustPython/RustPython/pull/8351#pullrequestreview-4761019067 |
|
View reviewed changes
| https://github.com/RustPython/RustPython/pull/8351/files/7c097b5e759c94daa6eb236385d66211c6278b61 |
| Copilot | https://github.com/apps/copilot-pull-request-reviewer |
| https://github.com/RustPython/RustPython/pull/8351#pullrequestreview-4761019067 |
| Learn more | https://docs.github.com/articles/managing-disruptive-comments/#hiding-a-comment |
| Please reload this page | https://github.com/RustPython/RustPython/pull/8351 |
| https://github.com/youknowone |
| youknowone | https://github.com/youknowone |
|
Jul 23, 2026
| https://github.com/RustPython/RustPython/pull/8351#pullrequestreview-4765914777 |
|
View reviewed changes
| https://github.com/RustPython/RustPython/pull/8351/files/7c097b5e759c94daa6eb236385d66211c6278b61 |
| youknowone | https://github.com/youknowone |
| https://github.com/RustPython/RustPython/pull/8351#pullrequestreview-4765914777 |
| Learn more | https://docs.github.com/articles/managing-disruptive-comments/#hiding-a-comment |
| Please reload this page | https://github.com/RustPython/RustPython/pull/8351 |
| https://github.com/youknowone |
| youknowone | https://github.com/youknowone |
| 9062f02 | https://github.com/RustPython/RustPython/commit/9062f02e6ff91e95867eceb4850d5ea4413f9646 |
| Jul 23, 2026 | https://github.com/RustPython/RustPython/pull/8351#event-28392099664 |
| Please reload this page | https://github.com/RustPython/RustPython/pull/8351 |
| https://github.co/hiddenchars |
| https://github.com/RustPython/RustPython/pull/{{ revealButtonHref }} |
| Sign up for free | https://github.com/join?source=comment-repo |
| Sign in to comment | https://github.com/login?return_to=https%3A%2F%2Fgithub.com%2FRustPython%2FRustPython%2Fpull%2F8351 |
|
| https://github.com/apps/coderabbitai |
|
coderabbitai[bot]
| https://github.com/apps/coderabbitai |
|
| https://github.com/RustPython/RustPython/pull/8351/files/b87b7896c989d824cedf8a5150218d2ef252c75f |
|
Copilot code review
| https://github.com/apps/copilot-pull-request-reviewer |
|
Copilot
| https://github.com/apps/copilot-pull-request-reviewer |
|
| https://github.com/RustPython/RustPython/pull/8351/files/7c097b5e759c94daa6eb236385d66211c6278b61 |
|
| https://github.com/youknowone |
|
youknowone
| https://github.com/youknowone |
|
| https://github.com/RustPython/RustPython/pull/8351/files/7c097b5e759c94daa6eb236385d66211c6278b61 |
|
Inconsistent behaviors for Parser().parsestr(t).keys() in email.parser
| https://github.com/RustPython/RustPython/issues/4936 |
| Please reload this page | https://github.com/RustPython/RustPython/pull/8351 |
|
| https://github.com/doma17 |
|
| https://github.com/youknowone |
|
| https://github.com/apps/copilot-pull-request-reviewer |
|
| 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 |