Skip to content

Add new PyStr wrapper type #691

@cjdoris

Description

@cjdoris

Has fields py::Py, ptr::Ptr{UInt8}, ncodeunits::Int where the latter two we get from https://docs.python.org/3/c-api/unicode.html#c.PyUnicode_AsUTF8AndSize.

Can implement AbstractString easily on top of this by reusing bits of the Utils.StaticString implementation.

Metadata

Metadata

Assignees

Labels

No labels
No labels

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions