da-woods

Results 135 issues of da-woods

Fixes #4447 These need declaring at the class scope, and a bit of special-casing in flow-control (since otherwise they're detected as undefined). For cdef classes, they also need further special...

```cython def call(f, name1): return f(**{name1: 1}) ``` This generates the C code ```C __pyx_t_1 = __Pyx_PyDict_NewPresized(1); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 2, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); if (unlikely(PyDict_Contains(__pyx_t_1, __pyx_v_name1))) { __Pyx_RaiseDoubleKeywordsError("function", __pyx_v_name1); __PYX_ERR(0,...

Fixes some of https://github.com/cython/cython/issues/4819 (although there's a second issue about applying this more generally to binops). It works by always generating a second utility code function with a bint result...

PEP 634 defines a new "switch-statement-like syntax": https://www.python.org/dev/peps/pep-0634/ that will appear in Python 3.10. Being a Python language feature, Cython should aim to support this. **Additional context** * Probably not...

feature
Python Semantics

**Is your feature request related to a problem? Please describe.** One of the places where Python and C don't quite match is that Python has (almost) unlimited-sized ints while in...

closes #https://github.com/cython/cython/issues/4520 This is relatively easy to do with https://github.com/cython/cython/pull/4606. It adds a second `annotation_typing` mode that is a bit more bold than the existing mode - assumes that all...

**Is your feature request related to a problem? Please describe.** The annotation_typing directive tries to be fairly safe and tries not to do anything that would change the behaviour of...

Fixes #2732 The one corner-case that isn't perfect is cpdef enums declared in a standalone pxd file - they don't actually ever generate the python wrapper. I've made these emit...

**Is your feature request related to a problem? Please describe.** Similarly to https://github.com/cython/cython/issues/3447, Cython generators should avoid raising `StopIteration` (although they do avoid adding the traceback) ```cython def g(): yield...

Supersedes https://github.com/cython/cython/pull/4542 hopefully and fixes https://github.com/cython/cython/issues/4539 This PR is a little less drastic in the changes it makes - it doesn't try to move complete validation into PyrexTypes.best_match (given that...