- 21 Mar, 2016 4 commits
-
-
Stefan Behnel authored
-
Stefan Behnel authored
-
Stefan Behnel authored
-
Stefan Behnel authored
speed up compilation for functions with large numbers of temps (already shows for a couple of thousand, e.g. for large list literals)
-
- 20 Mar, 2016 12 commits
-
-
Jelle Zijlstra authored
Docstrings don't support f-strings in cpython, so they don't need to here either. The scanner seems to be working. Current status: - All but three of the tests from CPython's test_fstring pass. Two of the remaining ones rely on exec and the third relies on a runtime NameError that occurs at compile time in Cython. These tests still need to be added to the Cython test suite. - I'm not overly convinced that the refcounting is correct in the C code that's currently emitted. - There's some room for optimization, such as removing empty strings from JoinedStrNode, concatenating adjacent raw strings at compile time, and using _PyUnicodeWriter. - Currently the feature is available in both Python 2 and Python 3 mode. It mostly works in Python 2, except for the !a conversion char.
-
Jelle Zijlstra authored
Not sure about the refcounting
-
Jelle Zijlstra authored
-
Jelle Zijlstra authored
Using _PyUnicode_Writer might be faster but seems more complicated to implement.
-
Jelle Zijlstra authored
Still doesn't do concatenation of FormattedValueNodes correctly.
-
Jelle Zijlstra authored
-
Jelle Zijlstra authored
-
Jelle Zijlstra authored
-
Jelle Zijlstra authored
Parses f-strings into ExprNodes, but with no support for compiling them. Some known bugs are marked as TODOs.
-
Robert Bradshaw authored
-
Robert Bradshaw authored
-
Robert Bradshaw authored
-
- 19 Mar, 2016 1 commit
-
-
Stefan Behnel authored
-
- 17 Mar, 2016 5 commits
-
-
Robert Bradshaw authored
-
Robert Bradshaw authored
This partially revert the change introduced in 767fce81. Turns out AttributeNodes always start with type error, which we don't want to propagate in some places.
-
Stefan Behnel authored
-
Stefan Behnel authored
-
Robert Bradshaw authored
-
- 11 Mar, 2016 7 commits
-
-
Robert Bradshaw authored
-
Robert Bradshaw authored
-
Robert Bradshaw authored
-
Robert Bradshaw authored
-
Robert Bradshaw authored
Add visibility kwarg to cython.declare.
-
Robert Bradshaw authored
Add declarations for C++11/14 smart pointer factories (make_shared & make_unique)
-
Robert Bradshaw authored
-
- 05 Mar, 2016 2 commits
-
-
Robert Bradshaw authored
DOCS: Fix typo
-
Aditya Bhosale authored
-
- 04 Mar, 2016 4 commits
-
-
Robert Bradshaw authored
Don't error out when non-const value is passed as const function parameter
-
Stefan Behnel authored
-
Robert Bradshaw authored
Silence a warning about applying unary minus to an unsigned integer
-
Ian Henriksen authored
with MSVC.
-
- 03 Mar, 2016 2 commits
-
-
Ian Henriksen authored
function parameter.
-
Ian Henriksen authored
parameter to a function. When function arguments are marked as const, this means that the function should not modify them, not that non-const arguments are not allowed. This also fixes a test that began failing because this change resulted in a slightly different error message when conversion to a const qualified argument is not possible.
-
- 29 Feb, 2016 3 commits
-
-
scoder authored
__Pyx_PyInt_TrueDivideObjC: switch comparison order
-
scoder authored
FROM_PY_FUNCTION: Cast to sdigit after unary minus, not before
-
Nikolaus Rath authored
The current order results in compiler warnings on 32 bit machines, e.g. src/llfuse.c: In function '__Pyx_PyInt_TrueDivideObjC': src/llfuse.c:43980:17: warning: left shift count >= width of type if (8 * sizeof(long) <= 53 || (__Pyx_sst_abs(size) <= 52 / PyLong_SHIFT) || likely(labs(a) <= (1L << 53))) { Switching the order so that the left shift is closer to the sizeof test avoids the warning, presumably because it makes it easier for the compiler to see that the left shift is only executed on 64 bit. Thanks to Christian Neukirchen for doing most of the work!
-