- 16 Jan, 2022 2 commits
-
-
Stefan Behnel authored
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
-
Stefan Behnel authored
Remove outdated warning about OpenMP < 3.0. Even the now-EOL Docker images for manylinux2010 had that. Closes https://github.com/cython/cython/issues/4574
-
- 25 Dec, 2021 1 commit
-
-
Matti Picus authored
-
- 21 Dec, 2021 1 commit
-
-
Matti Picus authored
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
-
- 16 Dec, 2021 4 commits
-
-
Stefan Behnel authored
-
Stefan Behnel authored
Add "tp_pypy_flags" field to PyTypeObject struct when compiling in PyPy 6.0+ in order to avoid C compiler warnings about an uninitialised struct field.
-
Stefan Behnel authored
-
Stefan Behnel authored
This reverts commit f5aa00bb.
-
- 14 Dec, 2021 1 commit
-
-
Arvind Natarajan authored
Closes https://github.com/cython/cython/issues/3938
-
- 06 Dec, 2021 5 commits
-
-
Stefan Behnel authored
-
Stefan Behnel authored
-
Stefan Behnel authored
-
Stefan Behnel authored
-
Stefan Behnel authored
-
- 05 Dec, 2021 11 commits
-
-
Stefan Behnel authored
-
Stefan Behnel authored
-
Marius Wachtler authored
Fixes an issue which Pyston triggers. See https://github.com/cython/cython/issues/4200
-
da-woods authored
Exception messages had changed a little
-
Stefan Behnel authored
-
Stefan Behnel authored
Let a tracing test run slower to prevent div-by-zero crashes in line_profiler due to measured zero runtime.
-
da-woods authored
Python 3.11 hid _PyLong_FormatAdvancedWriter and _PyFloat_FormatAdvancedWriter. I've disabled USE_UNICODE_WRITER for the moment but I suspect we want to find replacements in the longer term.
-
Stefan Behnel authored
-
da-woods authored
To silence a compiler warning since it was added in Python 3.11a2. For 0.29.x branch only.
-
Stefan Behnel authored
-
da-woods authored
With reference to https://github.com/cython/cython/issues/4365#issuecomment-977023011 in Python 3 PyCode_NewEmpty does everything we need to set exception traceback code objects. This change is probably only a real improvement on Py3.11 onwards (where the replacement for PyCode_new is currently pretty slow). On earlier version it'll probably be fairly similar (maybe one extra allocation for the cline case?)
-
- 18 Nov, 2021 9 commits
-
-
Stefan Behnel authored
-
da-woods authored
* Initial support for Python 3.11 (GH-4414) https://github.com/cython/cython/issues/4414 * Add a basic replacement for PyCode_New(). An optimized versions would be nice, but this is intended to work sufficiently to start testing. Also, CPython 3.11 might actually add a new C-API function to simplify setting the current code position. That might be used instead. * Disable introspection of frame object with vectorcall This feature looked to only be used for early Python versions that don't have the full vectorcall protocol (and the contents of the frame object are changed in Python 3.11). * Use new C-API function to get the current frame on Python 3.11 alpha (GH-4427) Use the accessor function instead of the direct struct member (which is now the wrong type). https://github.com/cython/cython/issues/4427 Closes https://github.com/cython/cython/issues/4416 * Fix number of arguments * Disable CYTHON_FAST_PYCALL for 3.11 in Cython 0.29.x due to non-trivial incompatibilities. * Remove remanent of 3.8alpha/beta workaround for PyCode_New().
-
Max Bachmann authored
-
Stefan Behnel authored
-
da-woods authored
All the versions we currently test are new enough that the alias is no longer necessary.
-
da-woods authored
The string comparison was reporting '11' < '4' (so OpenMP tests were being skipped on GCC 11)
-
Stefan Behnel authored
-
Mike Taves authored
-
Stefan Behnel authored
-
- 16 Nov, 2021 6 commits
-
-
Stefan Behnel authored
-
Stefan Behnel authored
-
da-woods authored
Fixes https://github.com/cython/cython/issues/3647
-
Stefan Behnel authored
-
Stefan Behnel authored
-
Stefan Behnel authored
-