Skip to content

Remove PyStr::as_str#7218

Merged
youknowone merged 1 commit intoRustPython:mainfrom
youknowone:to-str
Feb 26, 2026
Merged

Remove PyStr::as_str#7218
youknowone merged 1 commit intoRustPython:mainfrom
youknowone:to-str

Conversation

@youknowone
Copy link
Copy Markdown
Member

@youknowone youknowone commented Feb 24, 2026

Fix #7196

Summary by CodeRabbit

  • Improvements

    • Wide rollout of UTF‑8/WTF‑8 handling across the VM and standard library for safer, binary‑preserving text processing and improved non‑ASCII rendering.
    • Many object reprs and I/O paths now correctly display surrogate and non‑ASCII content.
  • New Features

    • UTF‑8 string types and VM helpers exposed to APIs for explicit UTF‑8 handling.
  • Bug Fixes

    • Stricter string extraction yields earlier, clearer errors and reduces lossy conversions.

Loading
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Replace PyStr::as_str() to PyStr::to_str()

2 participants