- 25 Aug, 2017 5 commits
-
-
Robert Bradshaw authored
-
Robert Bradshaw authored
-
Robert Bradshaw authored
-
Robert Bradshaw authored
-
Robert Bradshaw authored
-
- 24 Aug, 2017 3 commits
-
-
Robert Bradshaw authored
-
Robert Bradshaw authored
This means abs(MIN_INT) has the "overflow" behavior of returning MIN_INT as in C, but avoids surprising unsigned arithmetic for all other values. To preserve Python compatibility, abs(x) dissallows integer inference for x just like the other potentially overflowing arithmetic operators. This fixes Github Issue #1837
-
Robert Bradshaw authored
See discussion at https://github.com/cython/cython/issues/1837
-
- 23 Aug, 2017 3 commits
-
-
Stefan Behnel authored
Prevent incorrect coercion from digit-only strings to integers in fallback code if slots are not used (e.g. in PyPy).
-
Stefan Behnel authored
Extend test to assure that normal conversion to C integers does not allow strings, but only (optimised) casting does.
-
Stefan Behnel authored
Disable refnanny in PyPy since it otherwise risks to access partly initialised objects, e.g. tuples.
-
- 22 Aug, 2017 3 commits
-
-
Stefan Behnel authored
Remove accidental left-over name "gs" from Shadow.py that should not be part of the pure mode types.
-
Stefan Behnel authored
Avoid some unnecessary strlen() calls in exception text formatting, while still keeping up the nice property of sharing const C message strings.
- 21 Aug, 2017 13 commits
-
-
Stefan Behnel authored
Revert "Do not compile Lexicon.py. It's really only used once and is much larger as a binary module than as a byte code file, but not slower to import." Currently seems to be required when the scanner is compiled. This reverts commit d66405c6.
-
Stefan Behnel authored
-
Stefan Behnel authored
-
Stefan Behnel authored
-
Stefan Behnel authored
-
Stefan Behnel authored
-
Stefan Behnel authored
-
Stefan Behnel authored
-
Stefan Behnel authored
-
Stefan Behnel authored
-
Stefan Behnel authored
Do not compile Lexicon.py. It's really only used once and is much larger as a binary module than as a byte code file, but not slower to import.
-
Stefan Behnel authored
-
Stefan Behnel authored
-
- 19 Aug, 2017 8 commits
-
-
Stefan Behnel authored
-
Stefan Behnel authored
-
Stefan Behnel authored
-
Stefan Behnel authored
Include deprecation warning from CPython (3.3+) in __Pyx_PyNumber_IntOrLong() and avoid inlining error handling code.
-
Stefan Behnel authored
Streamline __Pyx_PyNumber_IntOrLong() with direct slot calls instead of C-API function calls that only do what we already do on our side already.
-
Stefan Behnel authored
-
Stefan Behnel authored
Specialise coercion from bytes to char* (and friends) to avoid going through several type checks in the generic "__Pyx_PyObject_AsStringAndSize()" function.
-
Stefan Behnel authored
Split uncommon case from unicode/bytes.endswith() implementation to suggest inlining the normal case.
-
- 18 Aug, 2017 5 commits
-
-
Stefan Behnel authored
-
Stefan Behnel authored
Fix reference leak in the Py2.x __Pyx_ReleaseBuffer() implementation for types with an overridden __releasebuffer__ method. Closes #1638.
-
Stefan Behnel authored
-
Stefan Behnel authored
-
Stefan Behnel authored
-