- 25 Aug, 2017 23 commits
-
-
Stefan Behnel authored
-
Stefan Behnel authored
-
scoder authored
Repair some issues with coroutine exception handling
-
Stefan Behnel authored
-
Stefan Behnel authored
-
Stefan Behnel authored
-
Stefan Behnel authored
-
Stefan Behnel authored
Disable refnanny in PyPy since it otherwise risks to access partly initialised objects, e.g. tuples.
-
Stefan Behnel authored
Only reset the frame backlink of *internally* created exception tracebacks in generators/coroutines, not the ones stored away from the caller state.
-
Stefan Behnel authored
-
Stefan Behnel authored
-
Robert Bradshaw authored
-
Stefan Behnel authored
-
Robert Bradshaw authored
-
Stefan Behnel authored
-
Stefan Behnel authored
-
-
Stefan Behnel authored
-
Stefan Behnel authored
Also make some C function signatures generic to avoid a dependency on concrete struct types in "far away" code.
-
Robert Bradshaw authored
-
Robert Bradshaw authored
-
Robert Bradshaw authored
-
Robert Bradshaw authored
-
- 24 Aug, 2017 13 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
-
Stefan Behnel authored
Terminate generator in test to avoid having its exception state hang around, which leads to exception leaks in Py3.3 for the pure Python comparison test.
-
Stefan Behnel authored
-
Stefan Behnel authored
-
Stefan Behnel authored
-
Stefan Behnel authored
Check frame back-pointer before we clear it. CPython can simply assert the identity in genobject.c because it always owns a frame itself for the current coroutine. Since Cython does not have frames here and uses the last frame of whatever traceback it currently owns, it's not clear if we can really give any guarantees better than best-effort here.
-
Stefan Behnel authored
-
Stefan Behnel authored
-
Stefan Behnel authored
-
Stefan Behnel authored
Move exception state cleanup into generator body code to allow a distinction between normal yields and yields in except blocks. They require different handling according to what CPython does.
-
Stefan Behnel authored
Add a script that concatenates the code sections in CPython's ceval.c in the execution sequence given by the byte code of a Python function.
-
- 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 1 commit
-