René's URL Explorer Experiment


Title: Match hashlib constructor name type diagnostics by youknowdot · Pull Request #9066 · RustPython/RustPython · GitHub

Open Graph Title: Match hashlib constructor name type diagnostics by youknowdot · Pull Request #9066 · RustPython/RustPython

X Title: Match hashlib constructor name type diagnostics by youknowdot · Pull Request #9066 · RustPython/RustPython

Description: Current Python 3.15 main target #8950 is merged. This PR now targets main and replays only its unique commits onto 06007c81fa99e813cbf4583dab326764ba0ef017. Current head: 4c8093dec7d9366dad4a81fe1abb77f41d621e06. The prior bootstrap commits are not part of this PR's diff. Normal commit hooks, whitespace checks, and independent source/patch-equivalence review passed. The intervening main fixes are preserved and this PR introduces no changes under Lib/. No new local build or runtime validation is claimed for this rebased head. The maintainer-requested [skip ci] marker remains; full CI is intentionally paused pending selective validation. Prior stack and validation history The base/head references below describe earlier revisions; the current target and validation limits above supersede them. Temporary CI pause The head commit includes [skip ci] at the maintainer's request. This message-only amendment preserves the exact source tree and commit parents. Normal pull-request CI is intentionally skipped; required checks may remain pending. This does not itself cancel older runs or suppress pull_request_target workflows. Python 3.15 stack Depends on #8950 at 80d3e52f32341d3158c659d82a927373b51b6439. This PR targets the upstream stack/python-3.15-8950 branch at that exact commit, so its displayed diff contains only the leaf changes. Unique changes above #8950. Current head e4f86457f3ae15def3a3d7b32cece1b73597b215 was checked by source/range-diff review, normal commit hooks, and patch checks. Its unique delta changes no files under Lib/ and inherits the 3.15.0 reference. No new local build or runtime execution is claimed for this stacked head; validation described below applies to the earlier head unless explicitly updated. Exact-head hosted CI is temporarily skipped. Summary Extract the Python 3.14-compatible _hashlib.new name-type diagnostic from #8954, correcting the mega implementation's formatting details. For non-string names, report new() argument 'name' must be str, not TYPE. Match CPython's special spelling for None, stored native type name, and 50-byte UTF-8 precision without splitting a code point. Actual strings retain the existing PyUtf8StrRef conversion. Algorithm selection, hashing, and usedforsecurity behavior are unchanged; the separate 3.15 string= deprecation warning is excluded. Sources: 3.14.7 generated parser, 3.14.8 bad-argument diagnostic, and UTF-8 precision handling. Add six focused cases to the existing hashlib Python snippet, covering None, ordinary builtins, a qualified native type, and ASCII/non-ASCII truncation. No canonical assertions or unrelated diagnostic helpers change. Validation Independent source/ownership review, normal hooks, and native debug build passed. Exact CPython 3.14.7/3.14.8 and native bounded checks agree on 12 type-name diagnostics and an accepted string subclass, including nested/renamed types, blocked Python metadata lookup, and UTF-8 boundaries. The baseline fails the new diagnostic regression. The complete hashlib snippet and both snippet pytest entries pass using the pinned 3.14.7 reference. Four unchanged canonical hashlib tests pass: unknown hashes, uppercase name normalization, name attributes, and Unicode-data rejection. Stdlib and separately configured CAPI Clippy pass with -D warnings. All behavior assertions are Python tests. Embedded-NUL handling and broader argument-binding diagnostic precedence are separate pre-existing contracts, not claims of this change. hosted CI is temporarily skipped. Summary by CodeRabbit New Features RustPython now targets Python 3.15. Sequence repetition for strings, bytes, and tuples is supported in both operand orders, including in-place multiplication. Bug Fixes _hashlib.new() now raises a TypeError for non-string algorithm names and identifies the supplied value’s type. Long type names are limited to 50 characters without splitting a UTF-8 character. Improved compatibility for logarithms of large integer-like values, Windows timestamps, CSV dialect errors, struct formats, and other Python 3.15 behaviors. Formatting errors now identify the argument and conversion specifier.

Open Graph Description: Current Python 3.15 main target #8950 is merged. This PR now targets main and replays only its unique commits onto 06007c81fa99e813cbf4583dab326764ba0ef017. Current head: 4c8093dec7d9366dad4a81fe1a...

X Description: Current Python 3.15 main target #8950 is merged. This PR now targets main and replays only its unique commits onto 06007c81fa99e813cbf4583dab326764ba0ef017. Current head: 4c8093dec7d9366dad4a81fe1a...

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

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:b3b1b665-6fb9-7a4d-e98b-80e5b293ca56
current-catalog-service-hashae870bc5e265a340912cde392f23dad3671a0a881730ffdadd82f2f57d81641b
request-idE636:29AEE8:33D344B:450597A:6B01F91A
html-safe-noncee74a18ebe7f11e6ff68acc08d3ec1c44ad20c884bd49879b734256c3205da7e2
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJFNjM2OjI5QUVFODozM0QzNDRCOjQ1MDU5N0E6NkIwMUY5MUEiLCJ2aXNpdG9yX2lkIjoiODg5ODMwMTU0MTg2MjIwOTgxOCIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9
visitor-hmac140ec3f8317e1a6bbb025082ddaac6ab97f0e4ec80b49f246cf56c4c049b5ba0
hovercard-subject-tagpull_request:4811250491
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/9066/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:altCurrent Python 3.15 main target #8950 is merged. This PR now targets main and replays only its unique commits onto 06007c81fa99e813cbf4583dab326764ba0ef017. Current head: 4c8093dec7d9366dad4a81fe1a...
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/9066/files#start-of-content
https://github.com/
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2FRustPython%2FRustPython%2Fpull%2F9066%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%2F9066%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/9066/files
Reloadhttps://github.com/RustPython/RustPython/pull/9066/files
Reloadhttps://github.com/RustPython/RustPython/pull/9066/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:fix-hashlib-name-diagnostichttps://github.com/youknowdot/RustPython/tree/fix-hashlib-name-diagnostic
Conversation 9 https://github.com/RustPython/RustPython/pull/9066
Commits 1 https://github.com/RustPython/RustPython/pull/9066/commits
Checks 19 https://github.com/RustPython/RustPython/pull/9066/checks
Files changed https://github.com/RustPython/RustPython/pull/9066/files
Please reload this pagehttps://github.com/RustPython/RustPython/pull/9066/files
Match hashlib constructor name type diagnostics https://github.com/RustPython/RustPython/pull/9066/files#top
Show all changes 1 commit https://github.com/RustPython/RustPython/pull/9066/files
586fc7d Match hashlib constructor name type diagnostics youknowdot Oct 10, 2026 https://github.com/RustPython/RustPython/pull/9066/commits/586fc7d535ec7aaa70d9637787d88b952c14c45e
Clear filters https://github.com/RustPython/RustPython/pull/9066/files
Please reload this pagehttps://github.com/RustPython/RustPython/pull/9066/files
Please reload this pagehttps://github.com/RustPython/RustPython/pull/9066/files
hashlib.rs https://github.com/RustPython/RustPython/pull/9066/files#diff-ebba2dae44d3c112446c0f1604775e6435b95da9e3123111f705916342a5392c
stdlib_hashlib.py https://github.com/RustPython/RustPython/pull/9066/files#diff-3a6f3b45c4e92b3cc7209668b03ee68e18fe38824a73fdd90ed7bb8e034ef8e8
crates/stdlib/src/hashlib.rshttps://github.com/RustPython/RustPython/pull/9066/files#diff-ebba2dae44d3c112446c0f1604775e6435b95da9e3123111f705916342a5392c
View file https://github.com/youknowdot/RustPython/blob/586fc7d535ec7aaa70d9637787d88b952c14c45e/crates/stdlib/src/hashlib.rs
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/RustPython/RustPython/pull/9066/{{ revealButtonHref }}
https://github.com/RustPython/RustPython/pull/9066/files#diff-ebba2dae44d3c112446c0f1604775e6435b95da9e3123111f705916342a5392c
https://github.com/RustPython/RustPython/pull/9066/files#diff-ebba2dae44d3c112446c0f1604775e6435b95da9e3123111f705916342a5392c
https://github.com/RustPython/RustPython/pull/9066/files#diff-ebba2dae44d3c112446c0f1604775e6435b95da9e3123111f705916342a5392c
chatgpt-codex-connectorhttps://github.com/apps/chatgpt-codex-connector
Oct 10, 2026https://github.com/RustPython/RustPython/pull/9066/files#r4237705495
Learn morehttps://docs.github.com/articles/managing-disruptive-comments/#hiding-a-comment
https://camo.githubusercontent.com/a08bbb8a949f7033433a88444eeae385ff6a5e599d92f878fb05fa85707b7816/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f50312d6f72616e67653f7374796c653d666c6174
AGENTS.md:L23-L23https://github.com/RustPython/RustPython/blob/c2a9d84ecf1d254d02681eca263056b6e6921ad4/AGENTS.md#L23-L23
Please reload this pagehttps://github.com/RustPython/RustPython/pull/9066/files
https://github.com/RustPython/RustPython/pull/9066/files#diff-ebba2dae44d3c112446c0f1604775e6435b95da9e3123111f705916342a5392c
https://github.com/RustPython/RustPython/pull/9066/files#diff-ebba2dae44d3c112446c0f1604775e6435b95da9e3123111f705916342a5392c
https://github.com/RustPython/RustPython/pull/9066/files#diff-ebba2dae44d3c112446c0f1604775e6435b95da9e3123111f705916342a5392c
extra_tests/snippets/stdlib_hashlib.pyhttps://github.com/RustPython/RustPython/pull/9066/files#diff-3a6f3b45c4e92b3cc7209668b03ee68e18fe38824a73fdd90ed7bb8e034ef8e8
View file https://github.com/youknowdot/RustPython/blob/586fc7d535ec7aaa70d9637787d88b952c14c45e/extra_tests/snippets/stdlib_hashlib.py
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/RustPython/RustPython/pull/9066/{{ revealButtonHref }}
https://github.com/RustPython/RustPython/pull/9066/files#diff-3a6f3b45c4e92b3cc7209668b03ee68e18fe38824a73fdd90ed7bb8e034ef8e8
https://github.com/RustPython/RustPython/pull/9066/files#diff-3a6f3b45c4e92b3cc7209668b03ee68e18fe38824a73fdd90ed7bb8e034ef8e8
chatgpt-codex-connectorhttps://github.com/apps/chatgpt-codex-connector
Oct 10, 2026https://github.com/RustPython/RustPython/pull/9066/files#r4237705505
Learn morehttps://docs.github.com/articles/managing-disruptive-comments/#hiding-a-comment
https://camo.githubusercontent.com/a08bbb8a949f7033433a88444eeae385ff6a5e599d92f878fb05fa85707b7816/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f50312d6f72616e67653f7374796c653d666c6174
AGENTS.md:L275-L275https://github.com/RustPython/RustPython/blob/c2a9d84ecf1d254d02681eca263056b6e6921ad4/AGENTS.md#L275-L275
Please reload this pagehttps://github.com/RustPython/RustPython/pull/9066/files
Please reload this pagehttps://github.com/RustPython/RustPython/pull/9066/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.