• da-woods's avatar
    Cleanup and fix string initialization code for LIMITED_API (GH-3378) · 53772108
    da-woods authored
    * Cleanup of string initialization code for limited API
    
    Now appears in a few large blocks rather than
    
    ```
     # if CYTHON_LIMITED_API
       individual string line
     # endif
    ```
    
    * Fixed issue with some unicode strings, e.g.
    
    ```
    # cython: language_level=3str, binding=True
    
    def non_ascii_str():
        s = 'ø\x20\u0020'
        assert isinstance(s, str)
        return s
    ```
    53772108
Code.py 96.7 KB