| Commit message (Collapse) | Author | Age | Files | Lines |
| |
|
| |
|
| |
|
|
|
|
|
| |
that have no children (GH-5336)
Closes https://github.com/cython/cython/issues/5235
|
|
|
|
| |
download count.
|
|
|
|
|
|
| |
It'll only need the GIL on failure (which it can get)
and "power of" type maths is the soft of thing that people are
likely already doing in nogil blocks
|
|\ |
|
| |
| |
| |
| |
| | |
itemsize for the "size changed" check (GH-4894) (GH-5289)
Backported from https://github.com/cython/cython/pull/4894
|
| |
| |
| |
| |
| |
| |
| | |
This would be pretty useless as it cannot be used -- the output file
does not exist either. But as it happens, on error, the output file is
reset to None, so instead we triggered a python traceback while trying
to write a depfile for `os.path.relpath(None, cwd)` that was written
to `None+'.dep'`
|
| | |
|
| | |
|
| |
| |
| |
| |
| | |
This test mirrors the structure of SciPy's `linalg.cython_blas`, `linalg.cython_lapack` and `special.cython_special` modules.
Original bug was resolved in master by https://github.com/cython/cython/pull/4552 (https://github.com/cython/cython/commit/0c8dea13946833606ab7e290d51cd12aee077c04)
|
| | |
|
| |
| |
| |
| |
| |
| |
| | |
Partial fix for https://github.com/cython/cython/issues/5297
Ideally I think we should do something cleverer,
but this'd complicated memoryview dispatch significantly.
This PR just restores the 0.29.x behaviour where None matches the first type.
|
|\ \
| |/ |
|
| |
| |
| |
| |
| |
| |
| | |
(GH-5330)
This is a backport of https://github.com/cython/cython/commit/1dba3d3b44ce942dafe4c77dec4c64def22c57e1 from Cython's master branch.
See https://github.com/cython/cython/issues/5238#issuecomment-1426853108
|
| |
| |
| |
| |
| |
| |
| |
| | |
It looks like Numpy releases the GIL for us (unless it's PyObject
arguments), so we should assume that we don't have the GIL, and
write code to regain it if needed, rather than assuming we need
to release the GIL.
Fixes #5328
|
| |
| |
| |
| |
| |
| |
| |
| | |
Since https://github.com/cython/cython/commit/4993ba6a0194c2fbcf438ae2833f43c33781148d,
we returned the top-level package module instead of the module that was actually imported
with its dotted name ("collections" instead of "collections.abc").
Closes https://github.com/cython/cython/issues/5308
See https://github.com/cython/cython/issues/2854
|
| | |
|
| |
| |
| |
| |
| | |
This adds support for constant types in the `IS_UNSIGNED` macro (and prefixes it with `__PYX_`) to fix #5301 without reducing const correctness. It uses the same implementation used for the C++11 type_trait `std::is_unsigned`: https://en.cppreference.com/w/cpp/types/is_unsigned
Closes https://github.com/cython/cython/issues/5301
|
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| | |
The new exception-handling semantics meant that the utility
code always had to check for exceptions on some void nogil functions
(requiring us to re-acquire the GIL). This made performance
noticeably worse under some circumstances.
Fix this by making the exception specifications noexcept
for quite a few cdef functions in the memoryview utility code.
Fixes https://github.com/cython/cython/issues/5324
|
| |
| |
| |
| | |
(#5318)
|
| |
| |
| |
| |
| | |
cannot handle long names (GH-5293)
Closes https://github.com/cython/cython/issues/5290
|
| | |
|
| | |
|
| |
| |
| |
| |
| |
| | |
resetting the position around the user code generation.
Previously, it could happen that the C code of the last source line was not included if the subsequently generated (internal) C code was not related to a user code line.
|
| |
| |
| |
| | |
information from the HTML file before searching for C code patterns to shorten the file content.
|
| |
| |
| |
| |
| | |
Apparently default function template parameters aren't allowed (and they don't seem to be needed here anyway)
Closes https://github.com/cython/cython/issues/5316
|
| |
| |
| |
| | |
This PR adds the C++ STL cmath header. It's mainly motivated by the new C++17 mathematical special functions (like assoc_laguerre, assoc_legendre, beta, ...) and the C++20 linear interpolation function lerp. However, all other functions are already in libc.math, so I'm not really sure if we should have them in both libc.math and libcpp.cmath.
|
|\ \
| |/ |
|
| |
| |
| |
| | |
Picked from https://github.com/cython/cython/commit/9d38bf8d620fd09166a5469c76b54f66d7fbd828
|
|\ \
| |/ |
|
| | |
|
|\ \
| |/ |
|
| |
| |
| |
| | |
(handled differently in master).
|
|\ \
| |/ |
|
| |
| |
| |
| | |
(GH-5300)
|
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| | |
Since its first implementation in commit https://github.com/cython/cython/commit/9db1fc39b31b7b3b2ed574a79f5f9fd980ee3be7,
depfiles try to calculate relative paths for files relative to the project
base dir. This usually worked, but fails when the output directory is being
used from another Windows drive letter. This can happen for build systems that
encourage out of source build directories. When that happens, the logical
thing to do is to use an absolute path anyway. That's what those build systems
do as well, so the resulting depfiles still align with the build system manifest.
(cherry picked from master commit https://github.com/cython/cython/commit/038f94e9fd9e3b7ff279b3bd2627e974b94cb946)
See https://github.com/cython/cython/pull/5279
|
| |
| |
| |
| |
| | |
* Use separate fields for environment information in bug reports.
* Order the templates explicitly.
* Add a reference to the mailing list.
|
| |
| |
| |
| |
| |
| |
| | |
- change it to markdown and add `.md` in the name
- update the windows guide, no need to use a different command
- move unclear notes into a hidden toggle (I am not even sure if we need this info)
- update the requirements, add an installation instruction
- general cleanup
|
| |
| |
| |
| |
| |
| |
| |
| |
| |
| | |
Allow code like the following to compile:
cimport m
def my_func():
cdef m.CppClass.NestedClass c
where m is a module, CppClass is a C++ class and NestedClass is a nested class inside CppClass.
|
| |
| |
| | |
Fixes CI failure due to a NumPy incompatibility
|
| | |
|
| |
| |
| | |
Allow it to use a Py-tuple instead of a ctuple
|
| |
| |
| |
| |
| |
| | |
Force utility code to come before pxd code which comes before
module code. This specifically fixes #5269, (where the "ToPy"
functions for cpdef enums weren't availbale when cyfunctions
were created). But I think it's a good idea anyway.
|
| | |
|
| | |
|
|\ \
| |/ |
|
| |\ |
|
| | | |
|