- 31 Oct, 2021 3 commits
-
-
Stefan Behnel authored
-
Thomas A Caswell authored
See https://github.com/python/cpython/pull/28968/8e5de40f90476249e9a2e5ef135143b5c6a0b512 which is part of implementing https://bugs.python.org/issue35134 moved the header "longintrepr.h" into a sub-folder. The notes on this change suggested to include "Python.h" instead.
-
Thomas A Caswell authored
See https://github.com/python/cpython/pull/28968/8e5de40f90476249e9a2e5ef135143b5c6a0b512 which is part of implementing https://bugs.python.org/issue35134 moved the header "longintrepr.h" into a sub-folder. The notes on this change suggested to include "Python.h" instead.
-
- 29 Oct, 2021 1 commit
-
-
Matus Valo authored
-
- 28 Oct, 2021 2 commits
-
-
0dminnimda authored
* Utils.py: add _find_cache_attributes, clear_method_caches * TestCythonUtils.py: add tests for Cached Methods * Utils.py: add constants * Utils.py: update comment * TestCythonUtils.py: remove excess blank line * Change names to `_CACHE_NAME` and `_CACHE_NAME_PATTERN` * ci.yml: extend timeout to 40 minutes * _CACHE_NAME -> _build_cache_name
-
Max Bachmann authored
See https://github.com/cython/cython/pull/3782
-
- 25 Oct, 2021 3 commits
-
-
Stefan Behnel authored
-
Stefan Behnel authored
-
Stefan Behnel authored
Use newer test dependencies in Py3.6+. (Excluding 3.10 for now to give the projects a bit more time.)
-
- 24 Oct, 2021 3 commits
-
-
da-woods authored
* 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).
-
Stefan Behnel authored
Make sure that version dependent special methods are correctly and completely excluded via preprocessor guards. Previously, implementing "__div__" could fail in Py3 (if the code for adapting the Python wrapper was generated) or would at least generate C compiler warnings about unused "__div__" C functions.
-
Stefan Behnel authored
-
- 23 Oct, 2021 1 commit
-
-
Max Bachmann authored
-
- 22 Oct, 2021 3 commits
-
-
Dobatymo authored
Fix insert return types, constness and input iterator templates. Fix typing in iterators and add constructor to allow explicit conversion from iterator to const_iterator.
-
Dobatymo authored
-
0dminnimda authored
-
- 21 Oct, 2021 2 commits
-
-
Stefan Behnel authored
-
Stefan Behnel authored
docs: Use the Cython + IPython lexers that come with Pygments to avoid having to maintain our own ones.
-
- 20 Oct, 2021 1 commit
-
-
account-login authored
* add swap() to libcpp.string * add load_factor() to libcpp.unordered_map and libcpp.unordered_set
-
- 18 Oct, 2021 6 commits
-
-
Stefan Behnel authored
-
da-woods authored
-
da-woods authored
-
da-woods authored
PyPy v7.3.6 looks to have added a helpful "did you mean..." to the AttributeError exception. It's currently tripping up these tests.
-
Stefan Behnel authored
-
Victor Stinner authored
Instead of __Pyx_SetTracing(), Profile.c now uses PyThreadState_EnterTracing() and PyThreadState_LeaveTracing(), which were added to Python 3.11.0a2: https://github.com/python/cpython/pull/28542 When these functions are used, Cython no longer sets directly PyThreadState.cframe.use_tracing.
-
- 17 Oct, 2021 2 commits
-
-
da-woods authored
A couple of things were going wrong: * they're creating CloneNodes (but not requiring the contents of the clone of the clone node to be temp) * assignment from a clone node generates cleanup code (which is against the general rules of a clone node), and also loses a reference via giveref * cpdef functions cause a small memory leak (#4412) by assigning to their constants twice. This is unfortunately difficult to test for. With this patch we no longer leak, but still duplicate a little bit of work.
-
da-woods authored
All the versions we currently test are new enough that the alias is no longer necessary.
-
- 15 Oct, 2021 1 commit
-
-
Dobatymo authored
-
- 07 Oct, 2021 1 commit
-
-
0dminnimda authored
-
- 06 Oct, 2021 1 commit
-
-
da-woods authored
Stop using NPY_NDARRAYOBJECT_H since: a) in principle it's private b) Numpy has renamed it and use a public symbol instead. I think the existing tests are adequate - we just aren't yet testing against a new enough version of Numpy to have caught it yet. Closes https://github.com/cython/cython/issues/4396 Closes https://github.com/cython/cython/issues/4394
-
- 02 Oct, 2021 1 commit
-
-
Stefan Behnel authored
-
- 01 Oct, 2021 2 commits
-
-
da-woods authored
A few children of function nodes need to be consistently evaluated outside the function scope. This PR attempts to do so and thus fixes https://github.com/cython/cython/issues/4367.
-
da-woods authored
The string comparison was reporting '11' < '4' (so OpenMP tests were being skipped on GCC 11)
-
- 29 Sep, 2021 1 commit
-
-
Christian Clauss authored
-
- 28 Sep, 2021 1 commit
-
-
da-woods authored
Attribute names used to be fully qualified like "_cython_3_0_0a9.cython_function_or_method" instead of the plain name. Closes https://github.com/cython/cython/issues/4373
-
- 27 Sep, 2021 2 commits
-
-
da-woods authored
This can happen (rarely) with exceptions that occur very early in the module init process. Fixes https://github.com/cython/cython/issues/4377 Uses a fake Numpy module for testing to make a version of "import_array" that always fails.
-
da-woods authored
This is explicitly tested for: https://github.com/cython/cython/blob/aea4e6b84b38223c540266f8c57093ee2039f284/tests/run/test_coroutines_pep492.pyx#L2400 It turns out some earlier versions of Python assume that C-API classes without a dict or slot are pickleable by the class name. Currently it isn't pickleable because the class name lookup is failing but this change makes it more robust. See https://github.com/cython/cython/pull/4376
-
- 24 Sep, 2021 1 commit
-
-
da-woods authored
Among other things this makes it pickleable by ensuring that it's the same object each time.
-
- 20 Sep, 2021 1 commit
-
-
da-woods authored
-
- 07 Sep, 2021 1 commit
-
-
Stefan Behnel authored
-