René's URL Explorer Experiment


Title: rustpython-unicode · Issue #7560 · RustPython/RustPython · GitHub

Open Graph Title: rustpython-unicode · Issue #7560 · RustPython/RustPython

X Title: rustpython-unicode · Issue #7560 · RustPython/RustPython

Description: rustpython-unicode should be a shared crate that provides CPython-compatible Unicode semantics and Unicode data for Rust-based Python implementations and tools. Its purpose is not to implement Python string objects or high-level string m...

Open Graph Description: rustpython-unicode should be a shared crate that provides CPython-compatible Unicode semantics and Unicode data for Rust-based Python implementations and tools. Its purpose is not to implement Pyth...

X Description: rustpython-unicode should be a shared crate that provides CPython-compatible Unicode semantics and Unicode data for Rust-based Python implementations and tools. Its purpose is not to implement Pyth...

Opengraph URL: https://github.com/RustPython/RustPython/issues/7560

X: @github

direct link

Domain: github.com


Hey, it has json ld scripts:
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"rustpython-unicode","articleBody":"rustpython-unicode should be a shared crate that provides CPython-compatible Unicode\nsemantics and Unicode data for Rust-based Python implementations and tools.\n\nIts purpose is not to implement Python string objects or high-level string methods. Instead,\nit should provide the Unicode foundation that Python runtimes need: character classification,\ncase mapping, normalization, identifier rules, regex character-class predicates, and\nunicodedata-style access to Unicode database information.\n\nThis makes it a natural shared dependency between RustPython and Pyre, while keeping actual\nstring operations in crate::str or the host runtime.\n\nDesign Goals\n\n- Match CPython behavior at the Unicode data and semantics level, not just in a few visible\n  edge cases.\n- Use a single version-pinned Unicode data source per targeted CPython release.\n- Expose low-level APIs that can be reused by str, re, parser, compiler, and unicodedata.\n- Support non-scalar code points where Python behavior requires it, so the core API should be\n  u32-based rather than char-based.\n- Be usable outside RustPython, especially by other Python-related Rust projects.\n\nScope\n\nrustpython-unicode should include:\n\n- Unicode character classification used by Python:\n    - isalpha\n    - isalnum\n    - isdecimal\n    - isdigit\n    - isnumeric\n    - isspace\n    - isprintable\n    - casing predicates if needed\n- Identifier-related predicates:\n    - is_xid_start\n    - is_xid_continue\n    - Python identifier helpers\n- Regex-oriented Unicode predicates:\n    - Unicode \\w\n    - Unicode \\d\n    - Unicode \\s\n    - any other CPython regex character classes that depend on Unicode tables\n- Case conversion and casing-related data:\n    - lowercase\n    - uppercase\n    - titlecase\n    - casefold\n    - full mappings where Python requires them\n- Unicode normalization support needed by Python:\n    - NFC\n    - NFD\n    - NFKC\n    - NFKD\n    - is_normalized\n- unicodedata-style database access:\n    - general category\n    - bidirectional class\n    - combining class\n    - east asian width\n    - mirrored\n    - decomposition\n    - decimal/digit/numeric values\n    - name lookup\n    - character lookup by name\n    - Unicode age/version checks if needed for CPython compatibility layers\n- Versioned Unicode tables aligned with CPython.\n\nNon-Goals\n\nrustpython-unicode should not include:\n\n- Python str object behavior\n- slicing, searching, splitting, joining, formatting, padding, or other string algorithms\n- Python object model concerns\n- interpreter-specific wrappers\n\nThose belong in crate::str or the embedding runtime.\n\nArchitecture\n\nA good split would be:\n\n- rustpython-unicode\n    - owns Unicode tables and Unicode semantics\n    - exposes u32-based predicates and mappings\n    - exposes unicodedata-style query APIs\n- crate::str\n    - owns Python string methods and higher-level string algorithms\n    - calls into rustpython-unicode for all Unicode-sensitive behavior\n- regex engine\n    - calls into rustpython-unicode for Unicode character classes\n- unicodedata module\n    - becomes a thin wrapper over rustpython-unicode\n\nThis keeps one authoritative Unicode path across the runtime.\n\nSuggested Public API Direction\n\npub mod classify {\n    pub fn is_alpha(cp: u32) -\u003e bool;\n    pub fn is_alnum(cp: u32) -\u003e bool;\n    pub fn is_decimal(cp: u32) -\u003e bool;\n    pub fn is_digit(cp: u32) -\u003e bool;\n    pub fn is_numeric(cp: u32) -\u003e bool;\n    pub fn is_space(cp: u32) -\u003e bool;\n    pub fn is_printable(cp: u32) -\u003e bool;\n}\n\npub mod identifier {\n    pub fn is_xid_start(cp: u32) -\u003e bool;\n    pub fn is_xid_continue(cp: u32) -\u003e bool;\n    pub fn is_python_identifier_start(cp: u32) -\u003e bool;\n    pub fn is_python_identifier_continue(cp: u32) -\u003e bool;\n}\n\npub mod regex {\n    pub fn is_word(cp: u32) -\u003e bool;\n    pub fn is_digit(cp: u32) -\u003e bool;\n    pub fn is_space(cp: u32) -\u003e bool;\n}\n\npub mod case {\n    pub fn to_lowercase(cp: u32) -\u003e CaseMapping;\n    pub fn to_uppercase(cp: u32) -\u003e CaseMapping;\n    pub fn to_titlecase(cp: u32) -\u003e CaseMapping;\n    pub fn casefold(cp: u32) -\u003e CaseMapping;\n}\n\npub mod normalize {\n    pub fn nfc\u003cI: IntoIterator\u003cItem = u32\u003e\u003e(input: I) -\u003e Normalized;\n    pub fn nfd\u003cI: IntoIterator\u003cItem = u32\u003e\u003e(input: I) -\u003e Normalized;\n    pub fn nfkc\u003cI: IntoIterator\u003cItem = u32\u003e\u003e(input: I) -\u003e Normalized;\n    pub fn nfkd\u003cI: IntoIterator\u003cItem = u32\u003e\u003e(input: I) -\u003e Normalized;\n    pub fn is_normalized_nfc\u003cI: IntoIterator\u003cItem = u32\u003e\u003e(input: I) -\u003e bool;\n}\n\npub mod data {\n    pub fn category(cp: u32) -\u003e GeneralCategory;\n    pub fn bidirectional(cp: u32) -\u003e BidiClass;\n    pub fn combining(cp: u32) -\u003e u8;\n    pub fn east_asian_width(cp: u32) -\u003e EastAsianWidth;\n    pub fn mirrored(cp: u32) -\u003e bool;\n    pub fn decomposition(cp: u32) -\u003e Option\u003cDecomposition\u003e;\n    pub fn decimal(cp: u32) -\u003e Option\u003cu8\u003e;\n    pub fn digit(cp: u32) -\u003e Option\u003cu8\u003e;\n    pub fn numeric(cp: u32) -\u003e Option\u003cNumericValue\u003e;\n    pub fn name(cp: u32) -\u003e Option\u003c\u0026'static str\u003e;\n    pub fn lookup(name: \u0026str) -\u003e Option\u003cu32\u003e;\n}\n\nThe exact types can change, but the important part is the boundary: low-level Unicode\nsemantics here, string algorithms elsewhere.\n\nCompatibility Model\n\nThe crate should define compatibility against a specific CPython line, for example:\n\n- CPython 3.14 Unicode semantics\n- version-pinned generated tables\n- explicit regeneration workflow when upgrading CPython\n\nThat matters because “Unicode-correct” is not enough here. The target is “CPython-\ncompatible.”\n\nWhy This Is Better Than Ad Hoc Fixes\n\n- str, re, parser, and unicodedata stop drifting apart.\n- There is one authoritative source for Unicode behavior.\n- Compatibility work becomes table-driven instead of patch-driven.\n- Future CPython upgrades become more mechanical and auditable.\n","author":{"url":"https://github.com/youknowone","@type":"Person","name":"youknowone"},"datePublished":"2026-04-05T07:10:53.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":1},"url":"https://github.com/7560/RustPython/issues/7560"}

route-pattern/_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format)
route-controllervoltron_issues_fragments
route-actionissue_layout
fetch-noncev2:72cc06ea-45e2-a11d-ced0-c63bdd4d85be
current-catalog-service-hash81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114
request-idA86E:8A906:DF88A5:12BFC7E:6A612283
html-safe-nonce3a7fae6743c7f2a1a065b80d3b8c3e4564192a8c3bdbd4cca5f799018510f6ed
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJBODZFOjhBOTA2OkRGODhBNToxMkJGQzdFOjZBNjEyMjgzIiwidmlzaXRvcl9pZCI6Ijc5NzY0NTg4ODk5MDY0MzA1OTUiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ==
visitor-hmacd83f5304a303a43fccae3b79c9ba90c46490a2d26669fc0a3e0ba2337611487a
hovercard-subject-tagissue:4206804882
github-keyboard-shortcutsrepository,issues,copilot
google-site-verificationApib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I
octolytics-urlhttps://collector.github.com/github/collect
analytics-location///voltron/issues_fragments/issue_layout
fb:app_id1401488693436528
apple-itunes-appapp-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/RustPython/RustPython/7560/issue_layout
twitter:imagehttps://opengraph.githubassets.com/5ec8de3b70b1d200a87db15b38e635418081980cff5e5086db077f2f515bf3ff/RustPython/RustPython/issues/7560
twitter:cardsummary_large_image
og:imagehttps://opengraph.githubassets.com/5ec8de3b70b1d200a87db15b38e635418081980cff5e5086db077f2f515bf3ff/RustPython/RustPython/issues/7560
og:image:altrustpython-unicode should be a shared crate that provides CPython-compatible Unicode semantics and Unicode data for Rust-based Python implementations and tools. Its purpose is not to implement Pyth...
og:image:width1200
og:image:height600
og:site_nameGitHub
og:typeobject
og:author:usernameyouknowone
hostnamegithub.com
expected-hostnamegithub.com
None7d9987c85f924dc5597480f737e023a6e985b0316e672f00513eb4ba440d87ba
turbo-cache-controlno-preview
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
disable-turbofalse
browser-stats-urlhttps://api.github.com/_private/browser/stats
browser-errors-urlhttps://api.github.com/_private/browser/errors
released38dc1dac7b5a5d0788e068e080820de6de90a28
ui-targetfull
theme-color#1e2327
color-schemelight dark

Links:

Skip to contenthttps://github.com/RustPython/RustPython/issues/7560#start-of-content
https://github.com/
Sign in https://github.com/login?return_to=https%3A%2F%2Fgithub.com%2FRustPython%2FRustPython%2Fissues%2F7560
GitHub CopilotWrite better code with AIhttps://github.com/features/copilot
GitHub Copilot appDirect agents from issue to mergehttps://github.com/features/ai/github-app
MCP RegistryNewIntegrate external toolshttps://github.com/mcp
ActionsAutomate any workflowhttps://github.com/features/actions
CodespacesInstant dev environmentshttps://github.com/features/codespaces
IssuesPlan and track workhttps://github.com/features/issues
Code ReviewManage code changeshttps://github.com/features/code-review
Code QualityEnforce quality at mergehttps://github.com/features/code-quality
GitHub Advanced SecurityFind and fix vulnerabilitieshttps://github.com/security/advanced-security
Code securitySecure your code as you buildhttps://github.com/security/advanced-security/code-security
Secret protectionStop leaks before they starthttps://github.com/security/advanced-security/secret-protection
Why GitHubhttps://github.com/why-github
Documentationhttps://docs.github.com
Bloghttps://github.blog
Changeloghttps://github.blog/changelog
Marketplacehttps://github.com/marketplace
View all featureshttps://github.com/features
Enterpriseshttps://github.com/enterprise
Small and medium teamshttps://github.com/team
Startupshttps://github.com/enterprise/startups
Nonprofitshttps://github.com/solutions/industry/nonprofits
App Modernizationhttps://github.com/solutions/use-case/app-modernization
DevSecOpshttps://github.com/solutions/use-case/devsecops
DevOpshttps://github.com/solutions/use-case/devops
CI/CDhttps://github.com/solutions/use-case/ci-cd
View all use caseshttps://github.com/solutions/use-case
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
View all industrieshttps://github.com/solutions/industry
View all solutionshttps://github.com/solutions
AIhttps://github.com/resources/articles?topic=ai
Software Developmenthttps://github.com/resources/articles?topic=software-development
DevOpshttps://github.com/resources/articles?topic=devops
Securityhttps://github.com/resources/articles?topic=security
View all topicshttps://github.com/resources/articles
Customer storieshttps://github.com/customer-stories
Events & webinarshttps://github.com/resources/events
Ebooks & reportshttps://github.com/resources/whitepapers
Business insightshttps://github.com/solutions/executive-insights
GitHub Skillshttps://skills.github.com
Documentationhttps://docs.github.com
Customer supporthttps://support.github.com
Community forumhttps://github.com/orgs/community/discussions
Trust centerhttps://github.com/trust-center
Partnershttps://github.com/partners
View all resourceshttps://github.com/resources
GitHub SponsorsFund open source developershttps://github.com/open-source/sponsors
Security Labhttps://securitylab.github.com
Maintainer Communityhttps://maintainers.github.com
Acceleratorhttps://github.com/open-source/accelerator
GitHub Starshttps://stars.github.com
Archive Programhttps://archiveprogram.github.com
Topicshttps://github.com/topics
Trendinghttps://github.com/trending
Collectionshttps://github.com/collections
Enterprise platformAI-powered developer platformhttps://github.com/enterprise
GitHub Advanced SecurityEnterprise-grade security featureshttps://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
Pricinghttps://github.com/pricing
Search syntax tipshttps://docs.github.com/search-github/github-code-search/understanding-github-code-search-syntax
documentationhttps://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%2Fissues%2F7560
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%2Fissues_fragments%2Fissue_layout&source=header-repo&source_repo=RustPython%2FRustPython
Reloadhttps://github.com/RustPython/RustPython/issues/7560
Reloadhttps://github.com/RustPython/RustPython/issues/7560
Reloadhttps://github.com/RustPython/RustPython/issues/7560
Please reload this pagehttps://github.com/RustPython/RustPython/issues/7560
RustPython https://github.com/RustPython
RustPythonhttps://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 293 https://github.com/RustPython/RustPython/issues
Pull requests 103 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
#8211https://github.com/RustPython/RustPython/pull/8211
rustpython-unicodehttps://github.com/RustPython/RustPython/issues/7560#top
#8211https://github.com/RustPython/RustPython/pull/8211
https://github.com/youknowone
https://github.com/copilot-swe-agent
https://github.com/youknowone
youknowonehttps://github.com/youknowone
on Apr 5, 2026https://github.com/RustPython/RustPython/issues/7560#issue-4206804882
Copilothttps://github.com/apps/copilot-swe-agent
youknowonehttps://github.com/youknowone
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.