- 19 Apr, 2020 1 commit
-
-
Stefan Behnel authored
-
- 18 Apr, 2020 10 commits
-
-
Stefan Behnel authored
-
Stefan Behnel authored
-
da-woods authored
-
Stefan Behnel authored
* Potential fix for GH issue #3203 Gets the specialized type if possible from NameNode.analyse_as_type This does introduce a potential new bug: ``` cimport cython just_float = cython.fused_type(float) cdef OK1(just_float x): return just_float in floating cdef fail1(just_float x, floating y): return just_float in floating cdef fail2(floating x): return floating in floating def show(): """ >>> show() True True True True """ print(OK1(1.0)) print(fail1(1.0, 2.0)) print(fail1[float, double](1.0, 2.0)) print(fail2[float](1.0)) ``` fail1 and fail2 work before this patch but fail with it. It isn't clear to me if this should actually be considered a bug. It works in both versions with `cython.floating`, which possibly suggests analyse_as_type in AttributeNode should also be changed * Bring attribute.fused types in line * Removed try-catch * Fix and test "type in fused_type" special-case * Added "analyse_as_specialized_type" * Fixed cpp_operators (handle type is None)
-
Stefan Behnel authored
Make CodeWriter inherit from ExpressionWriter in order to support all kinds of expressions without duplicating code. (GH-3528)
-
Stefan Behnel authored
-
da-woods authored
-
da-woods authored
-
da-woods authored
-
Stefan Behnel authored
-
- 17 Apr, 2020 12 commits
-
-
Stefan Behnel authored
-
Stefan Behnel authored
-
Stefan Behnel authored
-
Stefan Behnel authored
-
Stefan Behnel authored
* Fixed indexing temps for non-python objects. * Moved cleanup into release_temps since the temps survived into the result_code.
-
Stefan Behnel authored
-
Stefan Behnel authored
-
da-woods authored
* Fixed indexing temps for non-python objects. * Release another temp in PyMethodCallNode. Was causing warnings in generators_py. * Moved cleanup into release_temps since the temps survived into the result_code.
-
Stefan Behnel authored
-
Stefan Behnel authored
-
Stefan Behnel authored
-
Stefan Behnel authored
-
- 16 Apr, 2020 1 commit
-
-
Stefan Behnel authored
-
- 15 Apr, 2020 3 commits
-
-
da-woods authored
* Prevent fused dispatcher optional arguments being overwritten If the 5th argument of the regular functions was optional it'd overwrite the _fused_sigindex default of the dispatcher, causing type errors at runtime. closes https://github.com/cython/cython/issues/3511
-
da-woods authored
Closes https://github.com/cython/cython/issues/3430
-
da-woods authored
Closes https://github.com/cython/cython/issues/3430
-
- 14 Apr, 2020 2 commits
-
-
Stefan Behnel authored
-
Stefan Behnel authored
-
- 13 Apr, 2020 7 commits
-
-
Stefan Behnel authored
-
da-woods authored
This allows things to work like: # in pxd file from libc.math cimport sin # in py file if not cython.compiled: from math import sin # previously failed with cython compile # error because it was assigning to a cdef name This seems worthwhile because it makes it easier to write code that re-assigns cdef names and so works in both modes.
-
Stefan Behnel authored
-
Stefan Behnel authored
-
Stefan Behnel authored
Prevent calling PyObject_GC_Track() in __Pyx_CyFunction_New() when instantiating a fused function before the object fields of the fused function subtype are fully initialised. See https://bugs.python.org/issue38392 Closes GH-3215. Supersedes GH-3216.
-
Stefan Behnel authored
-
Stefan Behnel authored
-
- 12 Apr, 2020 4 commits
-
-
Stefan Behnel authored
-
Stefan Behnel authored
-
Stefan Behnel authored
-
Stefan Behnel authored
-