René's URL Explorer Experiment


Title: Implement Python 3.15 base64 APIs by youknowdot · Pull Request #9085 · RustPython/RustPython · GitHub

Open Graph Title: Implement Python 3.15 base64 APIs by youknowdot · Pull Request #9085 · RustPython/RustPython

X Title: Implement Python 3.15 base64 APIs by youknowdot · Pull Request #9085 · RustPython/RustPython

Description: Summary Implement the cohesive base64 encoder/decoder API from CPython 3.15.0 final. Add encoder padded, wrapcol, and alphabet options, including whole-quantum wrapping and arbitrary 64-byte alphabets. Add decoder padded, alphabet, ignorechars, and canonical options, with strictness defaulting according to whether ignorechars was supplied. Preserve padding/error precedence, truth-value conversion order, bytes/buffer argument distinctions, and buffer cleanup order. Retain custom-alphabet tables in hidden, traced per-module state. Use the actual bytes key so subclass hashing/equality, errors and reentry follow the reference. Bind the decoder to its exact owning module and preserve module-subclass callable metadata. Remove the unused third-party base64 dependency and add bounded Python regressions. Existing assertions are unchanged; no Lib/ files are modified. This is the Rust-stage base64 prerequisite for #9079. Other 3.15 codec API additions remain separate work. Validation Base: a10744303f6fb113a6082dde133958ad882d25a4. Head: 2505ad5f95831e62c821aef1ed14054655e9dc46. Independent source review of final-CPython semantics, module ownership, GC traversal/clear, buffer handling, and the narrow module-subclass metadata change. Common and stdlib Clippy passed with -D warnings; normal commit hooks and whitespace checks passed. Fresh Linux native debug build passed with threading, stdlib, stdio, importlib, host environment and documentation enabled. New base64 regression snippet passed on that native binary and the certified CPython 3.15.0 reference. Coverage includes custom cache callbacks/reentry, acquired-buffer lifetimes/aliasing, saved functions, isolated module-cache cycle collection and metadata. Both selected snippet pytest entries passed under CPython 3.15.0. Thirty-six selected canonical base64 tests passed on both interpreters: twelve unchanged upstream methods across bytes, bytearray and memoryview. Methods and required helpers were extracted without importing the broad canonical module. Native harness imports used the embedded standard-library path. All imported Python dependencies matched this candidate’s Lib/ byte-for-byte: 48/48 for the snippet and 92/92 for the canonical runner. binascii itself was the verified native module. Six bounded #9079 email integration checks passed on both interpreters using its exact final-source contentmanager and encoding-alias candidate modules. Full local workspace/C-API suites, broad canonical modules, SSL integration and non-Linux runtime validation were not run for this head. Hosted CI must establish the remaining matrix. Keep this PR draft and unmerged pending that validation and maintainer review. AI assistance OpenAI Codex implemented, reviewed and validated this change under maintainer direction. The exact model identifier is unavailable in this environment; the commit includes an Assisted-by trailer. This draft does not claim completed human validation.

Open Graph Description: Summary Implement the cohesive base64 encoder/decoder API from CPython 3.15.0 final. Add encoder padded, wrapcol, and alphabet options, including whole-quantum wrapping and arbitrary 64-byte alpha...

X Description: Summary Implement the cohesive base64 encoder/decoder API from CPython 3.15.0 final. Add encoder padded, wrapcol, and alphabet options, including whole-quantum wrapping and arbitrary 64-byte alpha...

Opengraph URL: https://github.com/RustPython/RustPython/pull/9085

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:6ec6cfaa-bfa4-05eb-9bd9-130b44aa6180
current-catalog-service-hashae870bc5e265a340912cde392f23dad3671a0a881730ffdadd82f2f57d81641b
request-idB098:1D20B7:32DBCD5:406E9F4:6B020816
html-safe-nonce80535cd2feb3b959cc16894b57f534ddcf1d54dc483a1622b4dab6f5539fc54f
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJCMDk4OjFEMjBCNzozMkRCQ0Q1OjQwNkU5RjQ6NkIwMjA4MTYiLCJ2aXNpdG9yX2lkIjoiNTgyNjcxMTEzNzAyMTk4NjgzOCIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9
visitor-hmac458cfd5648e8ad550e19476c3872a51155b502173bab2173de37aba306e911f6
hovercard-subject-tagpull_request:4820851505
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/RustPython/RustPython/pull/9085/files
twitter:imagehttps://avatars.githubusercontent.com/u/336763669?s=400&v=4
twitter:cardsummary_large_image
og:imagehttps://avatars.githubusercontent.com/u/336763669?s=400&v=4
og:image:altSummary Implement the cohesive base64 encoder/decoder API from CPython 3.15.0 final. Add encoder padded, wrapcol, and alphabet options, including whole-quantum wrapping and arbitrary 64-byte alpha...
og:site_nameGitHub
og:typeobject
hostnamegithub.com
expected-hostnamegithub.com
None87e774ee7c6b3bee0490394e4d3e57ec9dbc956f74b87ea685dc8996c1676456
turbo-cache-controlno-preview
diff-viewunified
go-importgithub.com/RustPython/RustPython git https://github.com/RustPython/RustPython.git
octolytics-dimension-user_id39710557
octolytics-dimension-user_loginRustPython
octolytics-dimension-repository_id135201145
octolytics-dimension-repository_nwoRustPython/RustPython
octolytics-dimension-repository_publictrue
octolytics-dimension-repository_is_forkfalse
octolytics-dimension-repository_network_root_id135201145
octolytics-dimension-repository_network_root_nwoRustPython/RustPython
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/RustPython/RustPython/pull/9085/files#start-of-content
https://github.com/
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2FRustPython%2FRustPython%2Fpull%2F9085%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%2FRustPython%2FRustPython%2Fpull%2F9085%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=RustPython%2FRustPython
Reloadhttps://github.com/RustPython/RustPython/pull/9085/files
Reloadhttps://github.com/RustPython/RustPython/pull/9085/files
Reloadhttps://github.com/RustPython/RustPython/pull/9085/files
RustPythonhttps://github.com/RustPython
RustPythonhttps://github.com/RustPython/RustPython
Codehttps://github.com/RustPython/RustPython
Issues195 (195)https://github.com/RustPython/RustPython/issues
Pull requests133 (133)https://github.com/RustPython/RustPython/pulls
Discussionshttps://github.com/RustPython/RustPython/discussions
Actionshttps://github.com/RustPython/RustPython/actions
Projectshttps://github.com/RustPython/RustPython/projects
Wikihttps://github.com/RustPython/RustPython/wiki
Security and qualityhttps://github.com/RustPython/RustPython/security
Insightshttps://github.com/RustPython/RustPython/insights
Sign up for GitHub https://github.com/signup?return_to=%2FRustPython%2FRustPython%2Fissues%2Fnew%2Fchoose
terms of servicehttps://docs.github.com/terms
privacy statementhttps://docs.github.com/privacy
Sign inhttps://github.com/login?return_to=%2FRustPython%2FRustPython%2Fissues%2Fnew%2Fchoose
youknowonehttps://github.com/youknowone
RustPython:mainhttps://github.com/RustPython/RustPython/tree/main
youknowdot:binascii-base64-315https://github.com/youknowdot/RustPython/tree/binascii-base64-315
Conversation 8 https://github.com/RustPython/RustPython/pull/9085
Commits 2 https://github.com/RustPython/RustPython/pull/9085/commits
Checks 20 https://github.com/RustPython/RustPython/pull/9085/checks
Files changed https://github.com/RustPython/RustPython/pull/9085/files
Please reload this pagehttps://github.com/RustPython/RustPython/pull/9085/files
Implement Python 3.15 base64 APIs https://github.com/RustPython/RustPython/pull/9085/files#top
Show all changes 2 commits https://github.com/RustPython/RustPython/pull/9085/files
2505ad5 Implement Python 3.15 base64 encoding and decoding youknowdot Oct 11, 2026 https://github.com/RustPython/RustPython/pull/9085/commits/2505ad5f95831e62c821aef1ed14054655e9dc46
9d459d2 Complete binascii codecs for canonical Python 3.15 tests youknowdot Oct 12, 2026 https://github.com/RustPython/RustPython/pull/9085/commits/9d459d2b2d8d51e0bf949d6ebc23c1fb03f56558
Clear filters https://github.com/RustPython/RustPython/pull/9085/files
Please reload this pagehttps://github.com/RustPython/RustPython/pull/9085/files
Please reload this pagehttps://github.com/RustPython/RustPython/pull/9085/files
Cargo.lock https://github.com/RustPython/RustPython/pull/9085/files#diff-13ee4b2252c9e516a0547f2891aa2105c3ca71c6d7a1e682c69be97998dfc87e
Cargo.toml https://github.com/RustPython/RustPython/pull/9085/files#diff-2e9d962a08321605940b5a657135052fbcef87b5e360662bb527c96d9a615542
test_binascii.py https://github.com/RustPython/RustPython/pull/9085/files#diff-aeec59865b47d3778520e9e507ff5ee4c06d96434433669b1abc4d36d425bde5
Cargo.toml https://github.com/RustPython/RustPython/pull/9085/files#diff-67449309128bb90a86efa4567e238536ea0f347ae18098f8dbcd747de5b7b4ca
binascii.rs https://github.com/RustPython/RustPython/pull/9085/files#diff-b978e9ef11e26761593ff10cfbeca1ecf186f80cff298cbce437af265238193e
binascii.rs https://github.com/RustPython/RustPython/pull/9085/files#diff-320603fd2cff5effce8920ead11397601761668ce71ad5f7eac5fa7118ea504e
base_n.rs https://github.com/RustPython/RustPython/pull/9085/files#diff-47f09034931e73232a19be3793c03e18d9e2aaf62d662881da058bdf84fc4e06
builtin_func.rs https://github.com/RustPython/RustPython/pull/9085/files#diff-3803ec9c4612463addd109dc797e558433c26a49228b43b3963ec1d4c3cfebe8
module.rs https://github.com/RustPython/RustPython/pull/9085/files#diff-1b1658fe8f1e6aa57ba5cb8b7f33a6c83dad6600554e0125c989aa083ea26a0e
Cargo.lockhttps://github.com/RustPython/RustPython/pull/9085/files#diff-13ee4b2252c9e516a0547f2891aa2105c3ca71c6d7a1e682c69be97998dfc87e
View file https://github.com/youknowdot/RustPython/blob/9d459d2b2d8d51e0bf949d6ebc23c1fb03f56558/Cargo.lock
Open in desktop https://desktop.github.com
how customized files appear on GitHubhttps://docs.github.com/github/administering-a-repository/customizing-how-changed-files-appear-on-github
Please reload this pagehttps://github.com/RustPython/RustPython/pull/9085/files
Cargo.tomlhttps://github.com/RustPython/RustPython/pull/9085/files#diff-2e9d962a08321605940b5a657135052fbcef87b5e360662bb527c96d9a615542
View file https://github.com/youknowdot/RustPython/blob/9d459d2b2d8d51e0bf949d6ebc23c1fb03f56558/Cargo.toml
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/RustPython/RustPython/pull/9085/{{ revealButtonHref }}
https://github.com/RustPython/RustPython/pull/9085/files#diff-2e9d962a08321605940b5a657135052fbcef87b5e360662bb527c96d9a615542
https://github.com/RustPython/RustPython/pull/9085/files#diff-2e9d962a08321605940b5a657135052fbcef87b5e360662bb527c96d9a615542
Lib/test/test_binascii.pyhttps://github.com/RustPython/RustPython/pull/9085/files#diff-aeec59865b47d3778520e9e507ff5ee4c06d96434433669b1abc4d36d425bde5
View file https://github.com/youknowdot/RustPython/blob/9d459d2b2d8d51e0bf949d6ebc23c1fb03f56558/Lib/test/test_binascii.py
Open in desktop https://desktop.github.com
Please reload this pagehttps://github.com/RustPython/RustPython/pull/9085/files
crates/common/Cargo.tomlhttps://github.com/RustPython/RustPython/pull/9085/files#diff-67449309128bb90a86efa4567e238536ea0f347ae18098f8dbcd747de5b7b4ca
View file https://github.com/youknowdot/RustPython/blob/9d459d2b2d8d51e0bf949d6ebc23c1fb03f56558/crates/common/Cargo.toml
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/RustPython/RustPython/pull/9085/{{ revealButtonHref }}
https://github.com/RustPython/RustPython/pull/9085/files#diff-67449309128bb90a86efa4567e238536ea0f347ae18098f8dbcd747de5b7b4ca
https://github.com/RustPython/RustPython/pull/9085/files#diff-67449309128bb90a86efa4567e238536ea0f347ae18098f8dbcd747de5b7b4ca
https://github.com/RustPython/RustPython/pull/9085/files#diff-67449309128bb90a86efa4567e238536ea0f347ae18098f8dbcd747de5b7b4ca
https://github.com/RustPython/RustPython/pull/9085/files#diff-67449309128bb90a86efa4567e238536ea0f347ae18098f8dbcd747de5b7b4ca
crates/common/src/binascii.rshttps://github.com/RustPython/RustPython/pull/9085/files#diff-b978e9ef11e26761593ff10cfbeca1ecf186f80cff298cbce437af265238193e
View file https://github.com/youknowdot/RustPython/blob/9d459d2b2d8d51e0bf949d6ebc23c1fb03f56558/crates/common/src/binascii.rs
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/RustPython/RustPython/pull/9085/{{ revealButtonHref }}
https://github.com/RustPython/RustPython/pull/9085/files#diff-b978e9ef11e26761593ff10cfbeca1ecf186f80cff298cbce437af265238193e
https://github.com/RustPython/RustPython/pull/9085/files#diff-b978e9ef11e26761593ff10cfbeca1ecf186f80cff298cbce437af265238193e
https://github.com/RustPython/RustPython/pull/9085/files#diff-b978e9ef11e26761593ff10cfbeca1ecf186f80cff298cbce437af265238193e
https://github.com/RustPython/RustPython/pull/9085/files#diff-b978e9ef11e26761593ff10cfbeca1ecf186f80cff298cbce437af265238193e
https://github.com/RustPython/RustPython/pull/9085/files#diff-b978e9ef11e26761593ff10cfbeca1ecf186f80cff298cbce437af265238193e
https://github.com/RustPython/RustPython/pull/9085/files#diff-b978e9ef11e26761593ff10cfbeca1ecf186f80cff298cbce437af265238193e
https://github.com/RustPython/RustPython/pull/9085/files#diff-b978e9ef11e26761593ff10cfbeca1ecf186f80cff298cbce437af265238193e
https://github.com/RustPython/RustPython/pull/9085/files#diff-b978e9ef11e26761593ff10cfbeca1ecf186f80cff298cbce437af265238193e
Please reload this pagehttps://github.com/RustPython/RustPython/pull/9085/files
Please reload this pagehttps://github.com/RustPython/RustPython/pull/9085/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.