da-woods

Results 135 issues of da-woods

### Describe your issue #6108 did the bare minimum implementation of `PyObject_LengthHint` needed to compile and run in the Limited API - essentially "length hint is always optional so just...

limited api

Some expressions are partly conditionally evaluated, and so bits of them may be skipped. This has implications if they contain an assignment expression since the variable may not actually be...

defect
Code Generation

Draft for now because it depends on #5710 Fixes https://github.com/cython/cython/issues/5586 Note that this changes many fused functions from returning 0 to returning -1. I was initially worried about this, but...

In this case we actually have to initialize rather than just do nothing. Fixes #5278. Backport of #5920 for 3.0.x. This was suggested as something that should be backported and...

C++

### Describe your issue This is just a very broad issue to collate what we might do if we want Cython to give reproducible output: * It looks like Cython...

It's added an extra `with_exceptions` parameter in https://github.com/python/cpython/commit/7861dfd26a41e40c2b4361eb0bb1356b9b4a064b The changes doesn't seem needed in 3.0.x+

This uses the existing approach for matching methods up. See comment: https://github.com/cython/cython/pull/3235#discussion_r1536631452 I'm not sure how much difference this does make to being deterministic - I think `compatible_signature_with` is probably...

C++

Mostly because I find it hard to select those out of the runtests script. I considered a separate command-line option but that seemed like a bigger change.

Fixes #6068. Ideally should go in 3.0.x.

I'm not 100% sure what causes the error, but I think it's that _PyErr_PrintEx stashes away some illicit references to invalid objects on sys.last_exc. There's no reason to do this,...