Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

string: implement API to access raw string data #1794

Merged
merged 1 commit into from
Aug 21, 2021

Commits on Aug 20, 2021

  1. string: implement API to access raw string data

    With the recent implementation of non-limited unicode APIs, we're
    able to query Python's low-level state to access the raw bytes that
    Python is using to store string objects.
    
    This commit implements a safe Rust API for obtaining a view into
    Python's internals and representing the raw bytes Python is using
    to store strings.
    
    Not only do we allow accessing what Python has stored internally,
    but we also support coercing this data to a `Cow<str>`.
    
    Closes PyO3#1776.
    indygreg committed Aug 20, 2021
    Configuration menu
    Copy the full SHA
    0cf7776 View commit details
    Browse the repository at this point in the history