da-woods

Results 135 issues of da-woods

Initial work on a PEP517 build backend. Essentially allows build Cython projects declaratively (with pyproject.toml) rather than with a setup.py file. Step 1 of https://github.com/cython/cython/issues/6305 (@webknjaz) It's currently missing: *...

Build System

### Describe the bug When compiling a file with an unclosed multiline string the error message is confusing and unhelpful: > `unclosedstr.pyx:2:0: Unexpected token None:'' in string literal` ### Code...

Error Reporting

### Describe your issue I would quite like to support ufuncs with closures: ```cython def f(a): @cython.ufunc cdef double inner(double b): return a+b ``` in this case the Numpy broadcasting...

Closes https://github.com/cython/cython/issues/5507 Defines a set of rules where it's safe to make the temp a borrowed reference when doing memoryview slicing. In that case we can optimize for the reasonably...

Optimization

Fixes https://github.com/cython/cython/issues/6434

### Describe the bug Crash ### Code to reproduce the behaviour: ```cython def f(double[:] x): (y:=x) ``` crashes due to a reference counting error. ### Expected behaviour _No response_ ###...

A lot of the things we currently store as static globals really belong in module state (at least if they are to work in multiple interpreters in future). Here this...

### Describe your issue Freelists are currently turned off on the freethreading build because they aren't thread safe. The could be re-enabled if the count was atomic. However, it'd also...

This re-adds #6343, removes one line which seems to be the source of the spurious warnings, and add a bunch of tests to make sure we don't get the spurious...