- 13 Sep, 2017 7 commits
-
-
Ronan Lamy authored
-
Ronan Lamy authored
-
Ronan Lamy authored
Disable it on pypy3, since it doesn't support PEP 442 yet.
-
Ronan Lamy authored
-
Stefan Behnel authored
-
Stefan Behnel authored
Refactor coercion predicate function to make it clearer what happens for the template based conversions and for the non-template string conversions.
-
Stefan Behnel authored
-
- 12 Sep, 2017 23 commits
-
-
Stefan Behnel authored
Avoid deprecation warning for "Py_UNICODE_strlen()" by always using the version that we ship anyway.
-
Stefan Behnel authored
-
Stefan Behnel authored
Improve C macro guard: __Pyx_GetAttr() should be optimised exactly iff __Pyx_PyObject_GetAttrStr() is also optimised.
-
Stefan Behnel authored
Avoid inlining some generic fallback functions. However short they are, they are just fallbacks and shouldn't get in the way.
-
Stefan Behnel authored
-
Stefan Behnel authored
Refactor dependencies between buffer/memoryview utility code to avoid unused C code and remove explicit utility code dependency lists from Python code where possible since they are much better expressed right in the C code.
-
Stefan Behnel authored
Split 2-tuple unpacking helper function into a (still) inlineable fast-path and a slow fallback function that does not need inlining.
-
Stefan Behnel authored
-
Stefan Behnel authored
Also avoid double-check overhead for strigns and string subtypes in Py2: only needed in Py2.6 and not really worth it.
-
Stefan Behnel authored
-
Stefan Behnel authored
-
Stefan Behnel authored
-
Stefan Behnel authored
Supply a general macro for fast exception setting without value (e.g. StopIteration).
-
Stefan Behnel authored
-
Stefan Behnel authored
-
Stefan Behnel authored
-
Stefan Behnel authored
-
Stefan Behnel authored
Mark intended fall-through steps in switch statement of int-pow() implementation with "CYTHON_FALLTHROUGH" to avoid compiler warnings.
-
Stefan Behnel authored
-
Stefan Behnel authored
-
Stefan Behnel authored
-
Stefan Behnel authored
Avoid excessive inlining of __Pyx_GetBufferAndValidate() helper and only inline the initial None check through a macro. Assumption is that explicit None assignments to buffer variables are somewhat common to clear data and NULL checks can be eliminated, but everything else takes substantial time anyway.
-
Stefan Behnel authored
-
- 11 Sep, 2017 9 commits
-
-
Stefan Behnel authored
Switch setup.py script to calling cythonize() through "new_build_ext" to get a clean split between the "translate" and "compile" steps. Previously, it would alternate between the two, which meant that Cython was already partially compiled while it was still being used.
-
scoder authored
Attempt to use a faster exception value for return type annotations that check for exceptions
-
Stefan Behnel authored
Prevent character escape sequences from being resolved in raw f-strings (fr"..."). Also fix some error reporting issues along the way. Update test_fstring.py test file from Py3.7.
-
Stefan Behnel authored
-
Stefan Behnel authored
-
Stefan Behnel authored
Disable Pythran integration testing in travis as it currently fails to compile with the latest release version of Pythran (changes pending on their side).
-
Stefan Behnel authored
-
Stefan Behnel authored
-
Stefan Behnel authored
-
- 10 Sep, 2017 1 commit
-
-
Stefan Behnel authored
Avoid using PySequence_ITEM() on METH_O calls as it involves much more overhead than PyTuple_GET_ITEM(). Also assume that we do not need to keep an extra reference to an item that we took from a call args tuple because someone else should at least hold a reference to that tuple.
-