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

[PY][FFI] Refactor runtime.String to subclass str #5426

Merged
merged 1 commit into from
Apr 24, 2020
Merged

Commits on Apr 24, 2020

  1. [PY][FFI] Introduce PyNativeObject, enable runtime.String to subclass…

    … str
    
    To make runtime.String to work as naturally as possible in the python side,
    we make it sub-class the python's str object. Note that however, we cannot
    sub-class Object at the same time due to python's type layout constraint.
    
    We introduce a PyNativeObject class to handle this kind of object sub-classing
    and updated the FFI to handle PyNativeObject classes.
    tqchen committed Apr 24, 2020
    Configuration menu
    Copy the full SHA
    6616d4d View commit details
    Browse the repository at this point in the history