- 03 Feb, 2022 2 commits
-
-
Stefan Behnel authored
Make the extension types tutorial actually understandable by itself, without referring to obscure "previous code" and "our integration example" that come out of nowhere.
-
Stefan Behnel authored
-
- 02 Feb, 2022 6 commits
-
-
Stefan Behnel authored
Allow globally forcing C file regeneration by setting the env var CYTHON_FORCE_REGEN=1, e.g. from external build systems.
-
0dminnimda authored
-
Stefan Behnel authored
-
Stefan Behnel authored
-
Stefan Behnel authored
Always regenerate .c/cpp output files when changing the Cython version. This is probably what users expect since silently keeping outdated files is error prone.
-
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
-
- 31 Jan, 2022 2 commits
-
-
Stefan Behnel authored
-
Stefan Behnel authored
Add Cython.Utils to the list of compiled modules and include a faster @contextmanager for try-finally cases.
-
- 30 Jan, 2022 8 commits
-
-
Stefan Behnel authored
This reverts commit aaba1229.
-
Stefan Behnel authored
Revert "Check for "Optional[ctype]" earlier because we need to make sure that "Optional[int]" etc. interprets "int" as (valid) Python int type and not (invalid) C int type." This reverts commit f73108cc.
-
Stefan Behnel authored
This reverts commit cd5fb480.
-
Stefan Behnel authored
This reverts commit 7914e3b3.
-
Stefan Behnel authored
-
Stefan Behnel authored
-
Stefan Behnel authored
Check for "Optional[ctype]" earlier because we need to make sure that "Optional[int]" etc. interprets "int" as (valid) Python int type and not (invalid) C int type. See https://github.com/cython/cython/issues/3883
-
Stefan Behnel authored
-
- 29 Jan, 2022 4 commits
-
-
Stefan Behnel authored
Improve the error message for "Optional[ctype]". Previously, it failed complaining about "or None", which wasn't the actual syntax construct on user side. See https://github.com/cython/cython/issues/3883
-
Stefan Behnel authored
-
-
da-woods authored
New decorator/function "@cython.dataclasses.dataclass" and "cython.dataclasses.field()" to mark dataclasses and their fields. Tries to match the interface provided by a regular dataclass as much as possible. This means taking the types from the dataclasses module if available (so they match exactly) or a fallback Python version that just implements the core parts (executed with "PyRun_String()" in the C source). Use of placeholders in generated "__init__" code means the code in the C file isn't hugely readable. Probably not a huge issue, but don't really see a way round that. As part of this I've also also implemented a Cython version of "typing.ClassVar". Although really designed for use with dataclasses it behaves sensibly when used in types in a normal cdef class. This is worth documenting more thoroughly. Closes https://github.com/cython/cython/issues/2903
-
- 28 Jan, 2022 12 commits
-
-
Stefan Behnel authored
-
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.
-
Stefan Behnel authored
-
- 27 Jan, 2022 2 commits
-
-
Stefan Behnel authored
-
da-woods authored
Closes https://github.com/cython/cython/issues/2636
-
- 26 Jan, 2022 1 commit
-
-
- 25 Jan, 2022 3 commits
-
-
Stefan Behnel authored
Disable parallel builds in the 0.29.x branch since they currently misbehave and fail in CI, trying to rebuild everything multiple times in parallel.
-
Stefan Behnel authored
Move the option to "exclude" children from the tree traversal from the "VisitorTransform" class up to its parent "TreeVisitor" class.
-
Stefan Behnel authored
Use "Py_ssize_t" instead of "int" for a node counter variable to avoid uselessly limiting its value range.
-