- 26 Oct, 2019 1 commit
-
-
da-woods authored
-
- 24 Oct, 2019 2 commits
-
-
da-woods authored
-
da-woods authored
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
-
- 16 Oct, 2019 4 commits
-
-
Stefan Behnel authored
-
alex-xnor authored
-
Matthew Edwards authored
* Rearrange libcpp.algorithm to match cppreference and reformat * Add all_of, any_of and none_of to libcpp.algorithm * Add count and count_if to libcpp.algorithm * Add string(first, last) constructor to libcpp.string * Add the simplest overload of mismatch to libcpp.algorithm * Add find, find_if, and find_if_not to libcpp.algorithm * Add find_end to libcpp.algorithm and distance to libcpp.iterator * Add find_first_of to libcpp.algorithm * Add adjacent_find to libcpp.algorithm * Add search to libcpp.algorithm * Add search_n to libcpp.algorithm * Add exception specifiers in libcpp.algorithm * Add predicated overload of find_end, search and search_n to libcpp.algorithm
-
alex-xnor authored
-
- 14 Oct, 2019 4 commits
-
-
Stefan Behnel authored
-
Thomas A Caswell authored
This is more follow up to https://bugs.python.org/issue37250 The action taken is: - restore tp_print to not break all of the sdists on pypi for py38 - remove tp_print for real in py39 In https://github.com/cython/cython/pull/3171 tp_print was initialized for PY_VERSION_HEX >= 0x030800b4 however, when trying to use cython with cpython master (aka py39) there are compile time exceptions due to too many initializers: error: too many initializers for ‘PyTypeObject’ {aka ‘_typeobject’} This fixes that by putting an upper bound on the ifdef of including pt_print at the end of the object.
-
Stefan Behnel authored
-
Thomas A Caswell authored
This is more follow up to https://bugs.python.org/issue37250 The action taken is: - restore tp_print to not break all of the sdists on pypi for py38 - remove tp_print for real in py39 In https://github.com/cython/cython/pull/3171 tp_print was initialized for PY_VERSION_HEX >= 0x030800b4 however, when trying to use cython with cpython master (aka py39) there are compile time exceptions due to too many initializers: error: too many initializers for ‘PyTypeObject’ {aka ‘_typeobject’} This fixes that by putting an upper bound on the ifdef of including pt_print at the end of the object.
-
- 08 Oct, 2019 6 commits
-
-
Stefan Behnel authored
-
Alex Henrie authored
-
Stefan Behnel authored
Make sure to include "Python.h" also from the "public" header file, which depends on its declarations. Closes #3133.
-
Stefan Behnel authored
-
Pablo Galindo authored
Explicitly initialize tp_print in Python 3.8 When compiling cython-generated extension modules in Python3.8rc1 this error is emitted by the compiler: _ext.cpp:8104:1: error: missing initializer for member ‘_typeobject::tp_print’ [-Werror=missing-field-initializers] The reason is that Python3.8 moved the tp_print slot (d917cfe4051) to the end of the _typeobject struct and reused the original position for tp_vectorcall_offset. The current generated code does not initialize the deprecated tp_print slot that was moved to the end of the struct.
-
Pablo Galindo authored
Explicitly initialize tp_print in Python 3.8 When compiling cython-generated extension modules in Python3.8rc1 this error is emitted by the compiler: _ext.cpp:8104:1: error: missing initializer for member ‘_typeobject::tp_print’ [-Werror=missing-field-initializers] The reason is that Python3.8 moved the tp_print slot (d917cfe4051) to the end of the _typeobject struct and reused the original position for tp_vectorcall_offset. The current generated code does not initialize the deprecated tp_print slot that was moved to the end of the struct.
-
- 30 Sep, 2019 1 commit
-
-
da-woods authored
* Handle normalization of unicode identifiers * Support unicode characters in module names (Only valid under Python 3)
-
- 18 Sep, 2019 1 commit
-
-
realead authored
-
- 10 Sep, 2019 16 commits
-
-
Stefan Behnel authored
-
Stefan Behnel authored
-
Stefan Behnel authored
-
Stefan Behnel authored
-
Stefan Behnel authored
-
Gerion Entrup authored
When compiling to C++ code and using automatic conversion from Python str to C++ string, Cython inserts this function template but generates the warning: warning: string.from_py:15:63: local variable 'length' might be referenced before assignment
-
Stefan Behnel authored
-
Stefan Behnel authored
-
Stefan Behnel authored
-
Jeroen Demeyer authored
-
Thomas VINCENT authored
-
Stefan Behnel authored
-
Stefan Behnel authored
-
Stefan Behnel authored
-
telamonian authored
-
telamonian authored
-
- 06 Sep, 2019 5 commits
-
-
Jeroen Demeyer authored
Minor cleanup regarding __Pyx_PyMethod_New
-
Stefan Behnel authored
-
Stefan Behnel authored
-
Stefan Behnel authored
Make sure to include "Python.h" also from the "public" header file, which depends on its declarations. Closes #3133.
-
Stefan Behnel authored
-