summaryrefslogtreecommitdiff
Commit message (Collapse)AuthorAgeFilesLines
* Make CodeWriter inherit from ExpressionWriter in order to support all kinds ↵full_code_writerStefan Behnel2020-04-183-88/+63
| | | | of expressions without duplicating code.
* Add some missing branch hints.Stefan Behnel2020-04-181-6/+6
|
* Merge branch '0.29.x'Stefan Behnel2020-04-171-4/+5
|\
| * Update changelog.Stefan Behnel2020-04-171-0/+4
| |
* | Merge branch '0.29.x'Stefan Behnel2020-04-171-0/+1
|\ \ | |/
| * Clear "self.index_temps" after cleanup to avoid keeping dangling temporary ↵Stefan Behnel2020-04-171-0/+1
| | | | | | | | state.
| * Cleanup more generator temps (GH-3522)Stefan Behnel2020-04-171-11/+12
| | | | | | | | | | * Fixed indexing temps for non-python objects. * Moved cleanup into release_temps since the temps survived into the result_code.
* | Add comment and make sure the type's (empty) list of index temps cannot be ↵Stefan Behnel2020-04-171-1/+2
| | | | | | | | changed by accident.
* | Simplify some redundant code by calling the obvious helper function instead.Stefan Behnel2020-04-171-6/+4
| |
* | Cleanup more generator temps (GH-3522)da-woods2020-04-171-11/+12
| | | | | | | | | | | | * 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.
* | Merge branch '0.29.x'Stefan Behnel2020-04-170-0/+0
|\ \ | |/
| * Release temps used for buffer indexing after use (GH-3517)da-woods2020-04-151-3/+10
| | | | | | Closes https://github.com/cython/cython/issues/3430
* | Update changelog.Stefan Behnel2020-04-171-0/+4
| |
* | Convert Py2 str to unicode directly when building fused function signature.Stefan Behnel2020-04-171-6/+6
| |
* | Remove accidentally duplicated code line.Stefan Behnel2020-04-171-1/+0
| |
* | Avoid an unnecessary conditional branch.Stefan Behnel2020-04-161-4/+4
| |
* | Prevent fused dispatcher optional arguments being overwritten (GH-3519)da-woods2020-04-153-17/+26
| | | | | | | | | | | | | | | | | | * 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
* | Release temps used for buffer indexing after use (GH-3517)da-woods2020-04-151-3/+10
| | | | | | Closes https://github.com/cython/cython/issues/3430
* | Mention "cython_freeze" in the embedding docs page.Stefan Behnel2020-04-141-1/+3
| |
* | Add a stub documentation page about embedding Cython modules in C/C++ ↵Stefan Behnel2020-04-142-1/+28
| | | | | | | | applications.
* | Update changelog.Stefan Behnel2020-04-131-0/+5
| |
* | Drop unused code-paths associated with "if cython.compiled" early (GH-3507)da-woods2020-04-133-3/+54
| | | | | | | | | | | | | | | | | | | | | | | | | | 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.
* | Reduce some overhead in the fused function selection code.Stefan Behnel2020-04-131-13/+12
| |
* | Merge branch '0.29.x'Stefan Behnel2020-04-132-11/+11
|\ \ | |/
| * Prevent calling PyObject_GC_Track() in __Pyx_CyFunction_New() when ↵Stefan Behnel2020-04-133-34/+60
| | | | | | | | | | | | | | | | 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.
| * Fix a reference leak when PyList_Append() fails.Stefan Behnel2020-04-131-6/+7
| |
| * Fix error label name.Stefan Behnel2020-04-131-1/+1
| |
| * Update changelog.Stefan Behnel2020-04-121-0/+1
| |
* | Merge branch '0.29.x'Stefan Behnel2020-04-122-3/+5
|\ \ | |/
| * Make travis install script fail on intermediate errors.Stefan Behnel2020-04-121-6/+6
| |
| * Debug conda issues on travis.Stefan Behnel2020-04-121-3/+5
| |
| * Add missing "@cython.binding" decorator for Python code.Stefan Behnel2020-04-122-0/+4
| |
| * Fix missing error handling in non-CPython code.Stefan Behnel2020-04-121-1/+1
| |
* | Sprinkle lots of branch prediction hints in places where exceptions are ↵Stefan Behnel2020-04-125-39/+40
| | | | | | | | being handled or otherwise exceptional cases occur.
* | Simplify some decref-set patterns using the __Pyx_Py_XDECREF_SET() macro.Stefan Behnel2020-04-123-44/+15
| |
* | Fix missing error handling in non-CPython code.Stefan Behnel2020-04-121-1/+1
| |
* | Fixed all assignments being added to the module in the limited API (GH-3501)da-woods2020-04-121-9/+8
| | | | | | Mainly helps for adding attributes to classes, but undoubtedly fixes other things too.
* | Remove dead fallback code: inspect.getcallargs() was added in Py2.7.Stefan Behnel2020-04-121-32/+1
| |
* | Update changelog.3.0a1Stefan Behnel2020-04-111-1/+1
| |
* | Add partitioning and sorting operations to libcpp.algorithm (GH-3202)Matthew Edwards2020-04-115-72/+350
| | | | | | | | | | | | | | | | | | | | * Add is_partitioned and partition to libcpp.algorithm * Add is_sorted and is_sorted_until to libcpp.algorithm * Add partition_copy, stable_partition, and partition_point to libcpp.algorithm * Move tests for sort and partial_sort into cpp_stl_algo_sorting_ops, add greater to libcpp.functional * Add partial_sort_copy to libcpp.algorithm * Add stable_sort to libcpp.algorithm * Add nth_element to libcpp.algorithm * Add missing except specifiers in libcpp.algorithm
* | Update changelog.Stefan Behnel2020-04-111-4/+3
| |
* | Fix refleak in limited-api case for cross-module shared extension types and ↵Stefan Behnel2020-04-112-10/+10
| | | | | | | | store them correctly as PyTypeObject* instead of a generic (and unusable) PyObject*.
* | Remove incorrect error handling in limited-api case.Stefan Behnel2020-04-111-1/+2
| |
* | Reduce user expectations for the limited API support in the changelog (GH-3500)da-woods2020-04-111-1/+4
| | | | | | | | The current wording implies that users can expect it to work, which isn't really the current state. It seems better not to claim too much until it's a bit more advanced.
* | Update changelog.Stefan Behnel2020-04-111-0/+19
| |
* | Require Py3.3 as the minimum stable ABI when using the limited C-API.Stefan Behnel2020-04-111-1/+1
| |
* | Prevent calling PyObject_GC_Track() in __Pyx_CyFunction_New() when ↵Stefan Behnel2020-04-112-31/+52
| | | | | | | | | | | | | | | | 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.
* | Assume that code passed into cython.inline() is always NumPy 1.7+ clean, so ↵Stefan Behnel2020-04-111-4/+8
| | | | | | | | that we can get rid of the C compiler warning about deprecated NumPy API usage.
* | Add cython.inline() test that repeatedly uses the same code.Stefan Behnel2020-04-111-0/+15
| |
* | Skip numpy inline test rather than discarding it if numpy is not installed.Stefan Behnel2020-04-111-9/+10
| |