e4cca62085- update to 3.0.11: * The C++11 emplace* methods were added to libcpp.deque. Patch by Somin An. (Github issue :issue:6159) * The exception check value of functions declared in pxd files was not always applied in 3.0.10. (Github issue :issue:6122) * A crash on exception deallocations was fixed. (Github issue :issue:6022) * A crash was fixed when assigning a zero-length slice to a memoryview. Patch by Michael Man. (Github issue :issue:6227) * libcpp.optional.value() could crash if it raised a C++ exception. Patch by Alexander Condello. (Github issue :issue:6190) * The return type of str() was mishandled, leading to crashes with language_level=3. (Github issue :issue:6166) * bytes.startswith/endswith() failed for non-bytes substrings (e.g. bytearray). (Github issue :issue:6168) * Fused ctuples crashed Cython. (Github issue :issue:6068) * A compiler crash was fixed when using extension types in fused types. (Github issue :issue:6204) * The module cleanup code was incorrect for globally defined memory view slices. (Github issue :issue:6276) * Some adaptations were made to enable compilation in Python 3.13. (Github issues :issue:5997, :issue:6182, :issue:6251)
devel
Dirk Mueller2024-08-31 11:49:15 +00:00
434359dfe6Accepting request 1164069 from devel:languages:pythonAna Guerrero2024-04-03 15:18:38 +00:00
361316a835- update to 3.0.10: * Cython generated incorrect self-casts when directly calling final methods of subtypes. * Internal C names generated from C function signatures could become too long for MSVC. * The noexcept warnings could be misleading in some cases. * The @cython.ufunc implementation could generate incomplete C code. * The libcpp.complex declarations could result in incorrect C++ code. Patch by Raffi Enficiaud. * Several tests were adapted to work with both NumPy 1.x and 2.0. Patch by Matti Picus. * C compiler warnings when the freelist implementation is disabled (e.g. on PyPy) were fixed. It can now be disabled explicitly with the C macro guard CYTHON_USE_FREELISTS=0. * Some C macro guards for feature flags were missing from the NOGIL Python configuration. * Some recently added builtins were unconditionally looked up at module import time (if used by user code) that weren't available on all Python versions and could thus fail the import. * A performance hint regarding exported pxd declarations was improved.Dirk Mueller2024-04-02 09:51:40 +00:00
13ff1f1bb7- update to 3.0.9: * Assigning const values to non-const variables now issues a warning. * Using noexcept on a function returning Python objects now issues a warning. * Some C-API usage was updated for the upcoming CPython 3.13. Patches by Victor Stinner et al. * The deprecated Py_UNICODE type is no longer used, unless required by user code. * std::string.replace() declarations were added to libcpp.string. Patch by Kieran Geary. * Cython generates incorrect (but harmless) self-casts when directly calling final methods of subtypes. Lacking a better solution, the errors that recent gcc versions produce have been silenced for the time being. Original patch by Michał Górny. * Unused variable warnings about clineno were fixed when C lines in tracebacks are disabled. * Subclass deallocation of extern classes could crash if the base class uses GC. Original patch by Jason Fried. * Type checks for Python memoryview could use an invalid C function. Patch by Xenia Lu. * Calling final fused functions could generate invalid C code. * Declaring extern enums multiple times could generate invalid C code. * pyximport used relative paths incorrectly. Patch by Stefano Rivera. * Running Cython with globbing characters ([]*?) in the module search path could fail. * Literal strings that include braces could change the C codeDirk Mueller2024-03-18 10:57:29 +00:00
9cd3340913Accepting request 1138672 from devel:languages:pythonAna Guerrero2024-01-15 21:11:25 +00:00
92d163182f- update to 3.0.8: * Using const together with defined fused types could fail to compile. (Github issue :issue:5230) * A "use after free" bug was fixed in parallel sections. (Github issue :issue:5922) * Several types were not available as cython.* types in pure Python code. * The generated code is now correct C89 again, removing some C++ style // comments and C99-style declaration-after-code code ordering. This is still relevant for some ols C compilers, specifically ones that match old Python 2.7 installations.Dirk Mueller2024-01-14 15:37:01 +00:00
3b37702235Accepting request 1134501 from devel:languages:pythonAna Guerrero2023-12-22 21:40:51 +00:00
9feb72ee1a- update to 3.0.7: * In the iterator of generator expressions, `await and yield were not correctly analysed. * cpdef enums with the same name cimported from different modules could lead to invalid C code. * Some declarations in cpython.unicode` were fixed and extended. * Compiling fused types used in pxd files could crash Cython in Python 3.11+. * Source files with non-ASCII file names could crash Cython. * Includes all bug-fixes and features from the 0.29 maintenance branchDirk Mueller2023-12-21 16:15:45 +00:00
1026f0dcffAccepting request 1129058 from devel:languages:pythonAna Guerrero2023-11-28 21:18:02 +00:00
fce4b999ef- update to 3.0.6: * Features added * Fused def function dispatch is a bit faster. * Declarations for the `wchar PyUnicode API were added. * The Python "nogil" fork is now also detected with the new Py_GIL_DISABLED macro. * Patch by Hugo van Kemenade (Github issue :issue:583652) * Bugs fixed * Comparing dataclasses could give different results than Python. * float(std::string) generated invalid C code. * Using cpdef functions with cimport_from_pyx failed. * A crash was fixed when string-formatting a Python value fails. * On item access, Cython could try the sequence protocol before the mapping protocol * in some cases if an object supports both. * A C compiler warning was resolved. * Complex numbers failed to compile in MSVC with C11. * Patch by Lysandros Nikolaou. (Github issue :issue:5809`) * Some issues with the Limited API and with PyPy were resolved. * A C++ issue in Python 3.13 was resolved. * Several directives are now also available (as no-ops) in Python code. * An error message was corrected.Dirk Mueller2023-11-27 08:53:55 +00:00
54d399ed01Accepting request 1127690 from devel:languages:pythonAna Guerrero2023-11-21 20:31:23 +00:00
96cfd3be7f- avoid obsoletes on provides as we now had a version updateDirk Mueller2023-11-20 12:09:40 +00:00
cd41119c98Accepting request 1124974 from devel:languages:pythonAna Guerrero2023-11-13 21:16:18 +00:00
14fd7c5fdb- update to 3.0.5: * Preliminary support for CPython 3.13a1 was added to allow early testing. * Bugs fixed * A compiler crash was fixed. * A typo in the `always_allow_keywords directive for Python code was fixed. * Some C compiler warnings were resolved. resolved if the for-loop's else:` branch executes track these dependencies. would trigger C compiler warnings with tracing support enabled. - Drop cython_use_imgmath.patch - Update to 0.29.22 * Remove an incorrect cast when using true-division in C++ operations. * C compile errors with CPython 3.8 were resolved. needed by Ceph - stopgap measure until issue can be addressed of the main source file. - Remove Cython-fix-version-detection.patch detecting Cython's presence. It is already merged upstream and Note that despite what upstream says, this, which is why the patch is going here instead of * For loop docs fix and pointer iteration. * Py2.4 fix: PySet_Pop() appeared in Py2.5Dirk Mueller2023-11-10 13:14:08 +00:00
1742305aedAccepting request 1118531 from devel:languages:pythonAna Guerrero2023-10-19 20:47:18 +00:00
646ad4a192- update to version 3.0.4: * Features added - A new compiler directive show_performance_hints was added to disable the newly added performance hint output. (Github issue :issue:5748) * Bugs fixed - cythonize required `distutils even for operations that did not build binaries. (Github issue :issue:5751) - A regression in 3.0.3 was fixed that prevented calling inline functions from another inline function in .pxd files. (Github issue :issue:5748) - Some C compiler warnings were resolved. Patch by Pierre Jolivet. (Github issue :issue:5756`)Daniel Garcia2023-10-18 07:52:40 +00:00
75be73394b- update to version 3.0.3: * Features added - More warnings were added to help users migrate and avoid bugs. (Github issue #5650) - A warning-like category for performance hints was added that bypasses -Werror. (Github issue #5673) - FastGIL now uses standard thread_local in C++. (Github issue #5640) - reference_wrapper was added to libcpp.functional. Patch by Vyas Ramasubramani. (Github issue #5671) - The cythonize command now supports the --cplus option known from the cython command. (Github issue #5736) * Bug fixed - Performance regressions where the GIL was needlessly acquired were fixed. (Github issues #5670, #5700) - A reference leak for exceptions in Python 3.12 was resolved. Patch by Eric Johnson. (Github issue #5724) - fastcall calls with keyword arguments generated incorrect C code. (Github issue #5665) - Assigning the type converted result of a conditional (if-else) expression to int or bool variables could lead to incorrect C code. (Github issue #5731) - Early (unlikely) failures in Python function wrappers no longer set a traceback in order to simplify the C code flow. Being mostly memory allocation errors, they probably would never have created a traceback anyway. (Github issue #5681) - Relative cimports from packages with __init__.py files could fail. (Github issue #5715) - Several issues with the Limited API support were resolved. (Github issues #5641, #5648, #5689)Daniel Garcia2023-10-17 08:59:48 +00:00
b53fae658fAccepting request 1107857 from devel:languages:pythonAna Guerrero2023-08-30 08:18:07 +00:00
d6e027f033Accepting request 1106193 from home:apersaud:branches:devel:languages:pythonMarkéta Machová2023-08-29 06:58:58 +00:00
37f8eb9db2Accepting request 1103745 from devel:languages:pythonAna Guerrero2023-08-18 17:27:27 +00:00
a22fc45760- Update to the official release of 3.0.0: - The complete list is seriously long, so I would relegate you to https://github.com/cython/cython/blob/master/CHANGES.rst - The implemented PEPs are: - PEP-3131: Supporting Non-ASCII Identifiers - PEP-479: generator_stop (enabled by default for language_level=3) - PEP-487: Simpler customisation of class creation - PEP-563: Postponed Evaluation of Annotations - PEP-570: Positional-Only Parameters - PEP-572: Assignment Expressions (a.k.a. the walrus operator :=) - PEP-590: Vectorcall protocol - PEP-614: Relaxing Grammar Restrictions On Decorators - Cython supports all released versions of Python from 2.7 to 3.11 (and some experimental parts of 3.12) inclusive.Dirk Mueller2023-08-13 18:19:49 +00:00
9e67f24bdb- update to 0.29.35: * A garbage collection enabled subtype of a non-GC extension type could call into the deallocation function of the super type with GC tracking enabled. This could lead to crashes during deallocation if GC was triggered on the type at the same time. * Some C compile failures and crashes in CPython 3.12 were resolved. * `except + nogil was syntactically not allowed. * except +nogil (i.e. defining a C++ exception handling function called nogil) is now disallowed to prevent typos. * A C compile failure in PyPy 3.10 was resolved. * Cython modules now use PEP-489 multi-phase init by default in PyPy 3.9 and later. * API header files generated by different Cython versions can now be included in the same C file. * Function signatures containing a type like tuple[()]` could not be printed.Dirk Mueller2023-05-27 21:08:33 +00:00
685688d439- update to 0.29.34: * A refence leak of the for-loop list/tuple iterable was resolved if the for-loop's `else: branch executes a break for an outer loop. * Some C compile failures in CPython 3.12 were resolved. * Some old usages of the deprecated Python imp module were replaced with importlib. * Patch by Matúš Valo. (Github issue :issue:5300) * Some issues with depfile generation were resolved. * Patches by Eli Schwartz. (Github issues :issue:5279, :issue:5291`)Dirk Mueller2023-04-03 20:03:43 +00:00
d8c2bde919- update to 0.29.33: * The `cythonize and cython commands have a new option -M / --depfile to generate .dep dependency files for the compilation unit. This can be used by external build tools to track these dependencies. * const fused types could not be used with memory views. * wstr usage was removed in Python 3.12 and later (PEP-623). * A type check assertion for Cython functions failed in debug Python builds. * Fixed various compiler warnings. * Fixed error when calculating complex powers of negative numbers. * Corrected a small mis-formatting of exception messages on Python 2. * The PyUnicode_AsUTF8AndSize() C-API function was missing from the CPython declarations. * A performance problem in the compiler was resolved when nesting conditional expressions. * Test suite problems with recent NumPy and CPython versions were resolved. * Other changes * The undocumented, untested and apparently useless syntax from somemodule cimport class/struct/union somename was deprecated in anticipation of its removal in Cython 3. The type modifier is not needed here and a plain cimport of the name will do. * Properly disable generation of descriptor docstrings on PyPy since they cause crashes. It was previously disabled, but only accidentally via a typo. * The cpow` directive of Cython 3.0 is available as a no-op.Dirk Mueller2023-01-07 12:29:18 +00:00
1185ccd190- Remove leftover Python 2 gubbins. - Stop using handrolled macros for install and update-alternatives, switch to the provided ones. - Update package names in rpmlintrc.Steve Kowalik2022-10-26 01:36:15 +00:00
2b5f314710- update to 0.29.28: * Due to backwards incompatible changes in CPython 3.11a4, the feature flags `CYTHON_FAST_THREAD_STATE and CYTHON_USE_EXC_INFO_STACK` are now disabled in Python 3.11 and later. They are enabled again in Cython 3.0. Patch by David Woods. (Github issue #4610) * A C compiler warning in older PyPy versions was resolved. Patch by Matti Picus. (Github issue #4236)Dirk Mueller2022-03-20 20:33:59 +00:00
2346705dab- update to 0.29.26: * An incompatibility with CPython 3.11.0a3 was resolved. * The `in` operator failed on literal lists with starred expressions. * A C compiler warning in PyPy about a missing struct field initialisation was resolved.Dirk Mueller2022-01-04 16:02:15 +00:00
bcbb9374bd- update to 0.29.25: * Several incompatibilities with CPython 3.11 were resolved. * Some C compiler warnings were resolved. * C++ `std::move() should only be used automatically in MSVC versions that support it. * The Py_hash_t type failed to accept arbitrary "index" values. * Avoid copying unaligned 16-bit values since some platforms require them to be aligned. Use memcpy() instead to let the C compiler decide how to do it. * Cython crashed on invalid truthiness tests on C++ types without operator bool. * The declaration of PyUnicode_CompareWithASCIIString() in cpython.unicode` was incorrect.Dirk Mueller2021-12-06 20:29:02 +00:00
a671183dc7- update to 0.29.23: * Some problems with Python 3.10 were resolved. Patches by Victor Stinner and David Woods. (Github issues #4046, #4100) * An incorrect "optimisation" was removed that allowed changes to a keyword dict to leak into keyword arguments passed into a function. Patch by Peng Weikang. (Github issue #3227) * Multiplied str constants could end up as bytes constants with language_level=2. Patch by Alphadelta14 and David Woods. (Github issue #3951) * `PY_SSIZE_T_CLEAN` does not get defined any more if it is already defined. Patch by Andrew Jones. (Github issue #4104)Dirk Mueller2021-04-21 21:21:49 +00:00
1bac3d7c44Accepting request 874544 from devel:languages:python
Richard Brown
2021-03-02 13:42:31 +00:00
12e7ee5829Accepting request 874489 from home:polslinux:branches:devel:languages:pythonMarkéta Machová2021-02-23 10:24:13 +00:00
7c6453c6b5- Update TO 0.29.21 * Fix a regression in 0.29.20 where __div__ failed to be found in extension types * Fix a regression in 0.29.20 where a call inside of a finally clause could fail to compile * Zero-sized buffers could fail to validate as C/Fortran-contiguous. * exec() did not allow recent Python syntax features in Py3.8+ due to https://bugs.python.org/issue35975 * Binding staticmethods of Cython functions were not behaving like Python methods in Py3 * Pythran calls to NumPy methods no longer generate useless method lookup code. * The PyUnicode_GET_LENGTH() macro was missing from the cpython.* declarations * The deprecated PyUnicode_*() C-API functions are no longer used, except for Unicode strings that contain lone surrogates. Unicode strings that contain non-BMP characters or surrogate pairs now generate different C code on 16-bit Python 2.x Unicode deployments (such as MS-Windows). Generating the C code on Python 3.x is recommended in this case * Some template parameters were missing from the C++ std::unordered_map declaration * Several internal code generation issues regarding temporary variables were resolvedOndřej Súkup2020-07-08 22:40:39 +00:00
79aa5001cf- update to 0.29.15 * Crash when returning a temporary Python object from an async-def function. * Crash when using **kwargs in generators. * Double reference free in __class__ cell handling for super() calls. * Compile error when using *args as Python class bases. * Fixed C name collision in the auto-pickle code * Deprecated import failed in Python 3.9Ondřej Súkup2020-02-18 16:46:57 +00:00
0675101280- Say goodbye to -doc subpackage as the documentation is online and does not build with latest sphinx releases (even in master at the moment). - The testing in -doc spec was disabled anyway and if needed we will reintroduce it as a multibuild
Tomáš Chvátal
2019-06-12 09:44:09 +00:00
86e2b57224- update to 0.29.10 * Fix compile errors in CPython 3.8b1 due to the new "tp_vectorcall" slots. * Remove an incorrect cast when using true-division in C++ operations. * C compile errors with CPython 3.8 were resolved. * Python tuple constants that compare equal but have different item types could incorrectly be merged into a single constant. * Non-ASCII characters in unprefixed strings could crash the compiler when used with language level 3str * Starred expressions in %-formatting tuples could fail to compile for unicode strings * Passing Python class references through cython.inline() was broken.Ondřej Súkup2019-06-03 13:40:30 +00:00
85ac2280ed- update to 0.29.7 * Crash when the shared Cython config module gets unloaded and another Cython module reports an exceptions. Cython now makes sure it keeps an owned reference to the module * Resolved a C89 compilation problem when enabling the fast-gil sharing feature. * Coverage reporting did not include the signature line of cdef functions * Casting a GIL-requiring function into a nogil function now issues a warning * Generators and coroutines were missing their return type annotationOndřej Súkup2019-04-16 09:29:07 +00:00
9a978ca19a- update to 0.29.6 * Fix a crash when accessing the __kwdefaults__ special attribute of fused functions. * Fix the parsing of buffer format strings that contain numeric sizes, which could lead to incorrect input rejections. * Avoid a C #pragma in old gcc versions that was only added in GCC 4.6. * Auto-encoding of Unicode strings to UTF-8 C/C++ strings failed in Python 3, even though the default encoding there is UTF-8. * Crash when defining a Python subclass of an extension type and repeatedly calling a cpdef method on it. * Compiler crash when prange() loops appear inside of with-statements. * Some C compiler warnings were resolved. * Python conversion of C++ enums failed in 0.29.Ondřej Súkup2019-02-28 16:55:22 +00:00
fd9a9086d9Accepting request 671992 from devel:languages:python
Stephan Kulow
2019-02-08 12:47:46 +00:00
c458b3497fAccepting request 671991 from home:TheBlackCat:branches:devel:languages:python
Todd R
2019-02-06 00:45:58 +00:00
4bd44452a1Accepting request 667297 from devel:languages:python
Stephan Kulow
2019-02-04 20:22:05 +00:00
e4c4fed7a1Accepting request 667210 from home:apersaud:branches:devel:languages:python
Tomáš Chvátal
2019-01-20 09:17:18 +00:00
33519db3aaAccepting request 666797 from home:TheBlackCat:branches:devel:languages:python
Tomáš Chvátal
2019-01-18 10:28:33 +00:00