- 15 Apr, 2022 1 commit
-
-
da-woods authored
It causes issues while profiling or debugging where global variables can end up inadvertently changed. Fixes https://github.com/cython/cython/issues/4609
-
- 12 Apr, 2022 3 commits
-
-
da-woods authored
-
Jordan Brière authored
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.
-
da-woods authored
The presence of this generic special method should not prevent Cython from making a class pickleable. Fixes https://github.com/cython/cython/issues/4730
-
- 07 Apr, 2022 3 commits
-
-
Jakub Kulík authored
Closes https://github.com/cython/cython/issues/4722
-
Stefan Behnel authored
Disable "CYTHON_UPDATE_DESCRIPTOR_DOC" for Pyston. It was previously only enabled for CPython and should only have been enabled additionally for recent PyPy versions.
-
Stefan Behnel authored
Stop using "PyBytesObject.ob_shash" in Py3.11, where it is deprecated. It was just an optimisation that isn't very important for byte strings any more. Closes https://github.com/cython/cython/issues/4721
-
- 01 Apr, 2022 1 commit
-
-
Matti Picus authored
-
- 31 Mar, 2022 1 commit
-
-
Oleksandr Pavlyk authored
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
-
- 21 Mar, 2022 1 commit
-
-
Yuriy Chernyshov authored
Unconditionally adding `/D_USE_MATH_DEFINES` via cmdline triggers `-Wmacro-redefined` in cython-generated code.
-
- 14 Mar, 2022 4 commits
-
-
Stefan Behnel authored
-
Stefan Behnel authored
Make the pickle test actually test that auto-pickling uses the right checksum (and not a user implemented reduce method that uses no checksums at all).
-
Stefan Behnel authored
Make error message more readable by using hex integer values for all presented checksums, not just the compile time ones.
-
Stefan Behnel authored
For the auto-pickle checksum, allow SHA-1 and SHA-256 which are used by Cython 3.x pickles now. Otherwise stick to MD5 since that was used before. Closes https://github.com/cython/cython/issues/4680
-
- 12 Mar, 2022 2 commits
-
-
Thomas A Caswell authored
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.
-
Stefan Behnel authored
-
- 24 Feb, 2022 2 commits
-
-
Stefan Behnel authored
-
da-woods authored
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.
-
- 19 Feb, 2022 1 commit
-
-
Stefan Behnel authored
-
- 16 Feb, 2022 9 commits
-
-
Stefan Behnel authored
-
Stefan Behnel authored
runtests: Print shard number also for each command in the EndToEnd test error output to make it easy to find in the logs.
-
Stefan Behnel authored
-
Stefan Behnel authored
runtests: print the shard number in front of the test name to show which was the last test in case it hangs.
-
Stefan Behnel authored
-
Stefan Behnel authored
-
Stefan Behnel authored
-
Stefan Behnel authored
-
Stefan Behnel authored
-
- 04 Feb, 2022 1 commit
-
-
Matti Picus authored
Partially reverts https://github.com/cython/cython/commit/1027db04fb7c5bbfea2b9bcdfce0b1f384e26a93
-
- 02 Feb, 2022 1 commit
-
-
da-woods authored
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
-
- 28 Jan, 2022 10 commits
-
-
Stefan Behnel authored
-
Stefan Behnel authored
-
Stefan Behnel authored
-
Stefan Behnel authored
Fix division-by-zero crash in tests when the C ompiler discards the computational body of a Cython coroutine.
-
Evgeni Burovski authored
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
-
Stefan Behnel authored
Make the test files that depend on "cythonarrayutil.pxi" compilable by themselves, without the search directory setup of the test runner.
-
Stefan Behnel authored
-
Stefan Behnel authored
-
Stefan Behnel authored
-
Stefan Behnel authored
Use "Py_ssize_t" instead of "int" for a node counter variable to avoid uselessly limiting its value range.
-