来源:Cython
浏览 443
扫码
分享
2020-04-04 08:24:00
0.28.2 (2018-04-13)
Features added
abs()
is faster for Python long objects.- The C++11 methods
front()
and end()
were added to the declaration oflibcpp.string
. Patch by Alex Huszagh. (Github issue #2123) - The C++11 methods
reserve()
and bucket_count()
are declared forlibcpp.unordered_map
. Patch by Valentin Valls. (Github issue #2168)
Bugs fixed
- The copy of a read-only memoryview was considered read-only as well, whereasa common reason to copy a read-only view is to make it writable. The resultof the copying is now a writable buffer by default.(Github issue #2134)
- The
switch
statement generation failed to apply recursively to the body ofconverted if-statements. NULL
was sometimes rejected as exception return value when the returnedtype is a fused pointer type.Patch by Callie LeFave. (Github issue #2177)- Fixed compatibility with PyPy 5.11.Patch by Matti Picus. (Github issue #2165)
Other changes
- The NumPy tutorial was rewritten to use memoryviews instead of the olderbuffer declaration syntax.Contributed by Gabriel de Marmiesse. (Github issue #2162)