da-woods

Results 135 issues of da-woods

If the type of a call to `str` has already been deduced as unicode (because of language_level=3), then keep that type. This was causing optimizations to fail, where the optimization...

defect
Type Analysis

These are a big chunk of tests that need to be run/not run in Limited API mode depending on the Python version. This categorization isn't hugely useful right now, but...

Testing
limited api

I ran into a couple of problems today that I was able to trace back to this PR. I was able to fix both of them, and I wasn't sure...

### Describe your issue My proposal is that we should probably be using `CYTHON_AVOID_BORROWED_REFS` for the nogil build, because borrowed references are an opportunity for nasty reference-counting races. However, there...

Fixes manually setting AVOID_BORROWED_REFS macro while using fastcall. Tested locally to the extent that Cython can build a working version of itself with these settings. Mainly prepared for nogil Python,...

This affects PyPy ~and Limited API~ I think. References to the function default arguments were being incremented but never decremeneted in the case where the argument was actually provided. I...

defect
Code Generation

Fixes: * Fused function binding * C array conversion * Dataclass fallback code * Getting std::string from unicode ~(on some versions - on others it's just a runtime exception).~

limited api

They were almost all failing because `import imp` no longer works. To fix this I've backported 48325b43e2f3107e07723ef209ed1ce1528aa956 I'll also tried removing "allow_failure" on Python 3.12 to see what happens. I...

Testing

https://github.com/cython/cython/issues/1981 Package is named Cython_shadow. That can probably be changed. It doesn't attempt to deal with any versioning issues. It also doesn't do any testing. That'd probably be a case...

Pure Python Mode

From a user's perspective, this caused surprise for a project where we weren't using bitwise features of enums and had Python code making decisions based on whether values were iterable....