- 01 Oct, 2021 1 commit
-
-
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 4 commits
-
-
Stefan Behnel authored
-
Stefan Behnel authored
-
Stefan Behnel authored
-
Max Bachmann authored
"PyUnicode_CompareWithASCIIString()" does not raise exceptions and takes a "const char*" as argument.
-
- 06 Sep, 2021 1 commit
-
-
Nicolas Pauss authored
ff16389c introduced convenient functions get_value() and get_value_no_default(). Unfortunately, the variable `value` in these functions was not set before usage with PyContextVar_Get(). This triggered some warnings: Error compiling Cython file: ------------------------------------------------------------ ... """Return a new reference to the value of the context variable, or the default value of the context variable, or None if no such value or default was found. """ cdef PyObject *value PyContextVar_Get(var, NULL, &value) ^ ------------------------------------------------------------ Cython/Includes/cpython/contextvars.pxd:118:33: local variable 'value' might be referenced before assignment Error compiling Cython file: ------------------------------------------------------------ ... or the provided default value if no such value was found. Ignores the default value of the context variable, if any. """ cdef PyObject *value PyContextVar_Get(var, <PyObject*>default_value, &value) ^ ------------------------------------------------------------ Cython/Includes/cpython/contextvars.pxd:136:53: local variable 'value' might be referenced before assignment It can be replicated by simply importing `cpython`: echo "cimport cpython" >/tmp/mod.pyx && ./cython.py -Werror -Wextra /tmp/mod.pyx The solution is simply to assign NULL to `value` on declaration.
-
- 05 Sep, 2021 1 commit
-
- 03 Sep, 2021 2 commits
- 01 Sep, 2021 3 commits
-
-
Stefan Behnel authored
-
Stefan Behnel authored
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. Closes https://github.com/cython/cython/issues/4343
-
Stefan Behnel authored
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. Closes https://github.com/cython/cython/issues/4343
-
- 31 Aug, 2021 4 commits
-
-
da-woods authored
See https://github.com/cython/cython/pull/4142#issuecomment-831464115 I don't think MinGW has worked since around Python 3.4 (but I'm not completely confident in that) while I know that MSVC does work. Therefore we should recommend that.
-
da-woods authored
Compiling ExprNodes.py was creating hundreds of tuples containing ("self", "env") for example, because it wasn't able to match and deduplicate them.
-
Max Bachmann authored
"PyUnicode_CompareWithASCIIString()" does not raise exceptions and takes a "const char*" as argument.
-
0dminnimda authored
* Avoid usage of `const` or `volatile` in buffer struct field declarations. * Avoid newline replacement in the test helper functions `write_file()` and `write_newer_file()`. See https://github.com/cython/cython/pull/4324
-
- 09 Aug, 2021 1 commit
-
-
da-woods authored
-
- 08 Aug, 2021 1 commit
-
-
0dminnimda authored
-
- 07 Aug, 2021 5 commits
-
-
da-woods authored
These were lost when cdef properties (for extern types) were introduced. Closes #4322 (based on my interpretation of the problem as an error-reporting issue)
-
da-woods authored
Adds utility code sections to toggle C compiler warnings for the duration of the utility code.
-
Stefan Behnel authored
-
Stefan Behnel authored
Fix output encoding problems in the test runner with Py2.7 by not trying to decode the C compiler output and instead printing it unchanged as bytes.
-
Stefan Behnel authored
Revert "Fix output encoding problems in the test runner with Py2.7 by replacing implicit calls to str() with (unicode) string concatenation." This reverts commit 931710d8.
-
- 06 Aug, 2021 2 commits
-
-
Stefan Behnel authored
Fix output encoding problems in the test runner with Py2.7 by replacing implicit calls to str() with (unicode) string concatenation.
-
Stefan Behnel authored
-
- 31 Jul, 2021 2 commits
-
-
Stefan Behnel authored
runtests: include the C compiler error output in the compile exception to show it at the end of the test run.
-
da-woods authored
Turns out that typeid() and C++ operators already work with "cpp_locals".
-
- 27 Jul, 2021 1 commit
-
-
Stefan Behnel authored
Add a warning in the docs that "conditional compilation" is not a good way to do most things that users commonly do with it. See the discussion in https://github.com/cython/cython/issues/4287
-
- 26 Jul, 2021 6 commits
-
-
Stefan Behnel authored
Fix compilation of "ParseTreeTransforms" in Py2. It previously tried to compare the 'directivetype' to 'str', which misses Py2 str when compiling with language level 3.
-
Stefan Behnel authored
-
Stefan Behnel authored
-
Stefan Behnel authored
-
Stefan Behnel authored
Add CI jobs that compile more Cython modules with "--cython-compile-all", to make sure that this keeps working and to allow comparing the performance difference.
-
da-woods authored
Fixes https://github.com/cython/cython/issues/3174 Closes https://github.com/cython/cython/pull/3175 I've removed all identification of is_self_arg from the parser, since I think it's better dealt with when analysing the declarations. Original test copied from https://github.com/cython/cython/pull/3175
-