Cython v0.28.2 Release Notes

Release Date: 2018-04-13 // almost 4 years ago
  • ๐Ÿ”‹ Features added

    • abs() is faster for Python long objects.

    • The C++11 methods front() and end() were added to the declaration of libcpp.string. Patch by Alex Huszagh. (Github issue :issue:2123)

    • The C++11 methods reserve() and bucket_count() are declared for libcpp.unordered_map. Patch by Valentin Valls. (Github issue :issue:2168)

    ๐Ÿ› Bugs fixed

    • The copy of a read-only memoryview was considered read-only as well, whereas a common reason to copy a read-only view is to make it writable. The result of the copying is now a writable buffer by default. (Github issue :issue:2134)

    • The switch statement generation failed to apply recursively to the body of converted if-statements.

    • ๐Ÿ‘ป NULL was sometimes rejected as exception return value when the returned type is a fused pointer type. Patch by Callie LeFave. (Github issue :issue:2177)

    • ๐Ÿ›  Fixed compatibility with PyPy 5.11. Patch by Matti Picus. (Github issue :issue:2165)

    Other changes

    • The NumPy tutorial was rewritten to use memoryviews instead of the older buffer declaration syntax. Contributed by Gabriel de Marmiesse. (Github issue :issue:2162)