| Commit message (Collapse) | Author | Age | Files | Lines |
... | |
| |
|
|
|
|
|
| |
support. (GH-4739)
Fixes a bug introduced by https://github.com/cython/cython/commit/ae4ade8daeae206db68583f2f4b9c1cbce9cba75 for PyPy.
|
|
|
|
|
|
|
|
|
|
| |
(GH-4703)" (GH-4742)
PR 4703 was an incomplete backport of the changes needed for #3554 and generates incorrect C code.
See https://github.com/cython/cython/issues/3554
Reverts https://github.com/cython/cython/pull/4703
This reverts commit d395a56f8e68ee563f866d0dec5a31a37f77df9e.
|
|
|
|
|
| |
It causes issues while profiling or debugging where global variables can end up inadvertently changed.
Fixes https://github.com/cython/cython/issues/4609
|
| |
|
|
|
|
|
|
|
| |
The condition should only evaluate to True when assigning __dict__, but it currently does for _, d, i, etc. as well as resulting in the following potential issues:
* Non-member are being assigned to the object instead of raising.
* The one-field rule can be bypassed.
* Valid members that pass the condition are being assigned raw and are never cast to the specified type.
|
|
|
|
|
| |
The presence of this generic special method should not prevent Cython from making a class pickleable.
Fixes https://github.com/cython/cython/issues/4730
|
|
|
| |
Closes https://github.com/cython/cython/issues/4722
|
|
|
|
| |
enabled for CPython and should only have been enabled additionally for recent PyPy versions.
|
|
|
|
|
|
| |
was just an optimisation that isn't very important for byte strings any more.
Closes https://github.com/cython/cython/issues/4721
|
| |
|
|
|
|
|
|
| |
Acquire the GIL in nogil functions only when strictly needed on function exit, e.g. for cleaning up temp variables from with-gil blocks or adding tracebacks.
Closes GH-3554
Closes GH-4637
|
|
|
|
| |
Unconditionally adding `/D_USE_MATH_DEFINES` via cmdline triggers `-Wmacro-redefined` in cython-generated code.
|
| |
|
|
|
|
| |
checksum (and not a user implemented reduce method that uses no checksums at all).
|
|
|
|
| |
presented checksums, not just the compile time ones.
|
|
|
|
|
|
| |
Cython 3.x pickles now. Otherwise stick to MD5 since that was used before.
Closes https://github.com/cython/cython/issues/4680
|
|
|
|
|
|
|
|
|
|
|
| |
In https://github.com/python/cpython/pull/31530
https://bugs.python.org/issue46836
the `_frame` struct was moved to an internal header, however the public API is
primarily read-only, and Cython needs to build PyFrameObjects so still import
the internal headers.
Also sets the Py_BUILD_CORE define for py311a6, trying to restrict it to the frame header.
|
| |
|
| |
|
|
|
|
|
|
|
| |
This creates two copies of the function, one for the exception
case and one for the non-exception case. It's probably inefficient
but the simplest solution.
Fixes https://github.com/cython/cython/issues/4651.
|
| |
|
| |
|
|
|
|
| |
error output to make it easy to find in the logs.
|
| |
|
|
|
|
| |
the last test in case it hangs.
|
| |
|
|
|
|
| |
without a test result.
|
| |
|
| |
|
| |
|
|
|
|
| |
Partially reverts https://github.com/cython/cython/commit/1027db04fb7c5bbfea2b9bcdfce0b1f384e26a93
|
|
|
|
|
|
|
| |
By disabling "CYTHON_FAST_THREAD_STATE" and "CYTHON_USE_EXC_INFO_STACK"
I think this still leaves some breakage in Coroutines.c but it's enough of a fix that Cython succeeds in building itself. Therefore I think it's worth doing now even if it doesn't fix everything.
Related to https://github.com/cython/cython/issues/4500
|
| |
|
| |
|
|
|
|
| |
worth testing).
|
|
|
|
| |
computational body of a Cython coroutine.
|
|
|
|
|
|
|
|
| |
Add a new command line option so that
$ cythonize -M foo.pyx
produces a file `foo.c.dep` with the dependencies of foo.pyx, in addition to `foo.c`.
Try to write relative paths as much as possible.
Backport of https://github.com/cython/cython/pull/4563
|
|
|
|
| |
themselves, without the search directory setup of the test runner.
|
| |
|
|
|
|
| |
file instead of "None".
|
|
|
|
| |
Python 3.11.
|
|
|
|
| |
uselessly limiting its value range.
|
| |
|
|
|
|
| |
and fail in CI, trying to rebuild everything multiple times in parallel.
|
| |
|
|
|
|
|
|
|
|
|
|
| |
range().
Cython incorrectly generated (optimised) range code for "for i in range(1,2,3,4)" as if it saw "for i in range(1,2,3)".
This PR deactivates this optimization when too many arguments are provided, to match the behavior of Python.
Original patch by Max Bachmann.
Closes https://github.com/cython/cython/pull/4550
|
|
|
|
|
|
| |
for manylinux2010 had that.
Closes https://github.com/cython/cython/issues/4574
|
| |
|
|
|
|
|
|
|
|
|
|
|
| |
For PyPy3.8 (the current release is 7.3.7)
* PyPy<7.3.8 declares a struct with the last fields tp_finalize, tp_print, tp_pypy_flags
* PyPy>=7.3.8 will declare a struct with the last fields tp_finalize, tp_vectorcall, tp_print
PyPy3.9 (not yet released) will declare a struct with the last fields tp_finalize, tp_vectorcall, tp_pypy_flags
See https://foss.heptapod.net/pypy/pypy/-/issues/3618
|