Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | Minor changes to try/finally code generation [should silence Coverity Scan]dalcinl/fix-try-finally | Lisandro Dalcin | 2017-10-29 | 1 | -3/+3 |
| | |||||
* | Mark unused vars with `(void)x;` [should silence Coverity Scan] | Lisandro Dalcin | 2017-10-28 | 1 | -1/+2 |
| | |||||
* | Remove dead code. | Stefan Behnel | 2017-09-28 | 1 | -3/+0 |
| | |||||
* | Allow arbitrary annotations again with "annotation_typing=False", not only ↵ | Stefan Behnel | 2017-09-27 | 1 | -1/+1 |
| | | | | valid types. | ||||
* | Include error helper function only at need and do not inline it. | Stefan Behnel | 2017-09-12 | 1 | -4/+4 |
| | |||||
* | Attempt to use a faster exception value for return type annotations that ↵ | Stefan Behnel | 2017-09-09 | 1 | -17/+30 |
| | | | | | | | | | | | | | | check for exceptions. Inside of a module, it is safe to convert a function declared cdef int func() except *: ... into cdef int func() except? -1 because a) we need an exception return value anyway and b) there will always be an explicit exception check afterwards. Thus, changing the function implementation itself is safe. We must exclude functions that are only declared but not implemented since we do not control their signature and it is not safe to assume a specific exception return value if it is not declared. | ||||
* | Implement @cython.exceptval() decorator to make the "except x" signature ↵ | Stefan Behnel | 2017-09-03 | 1 | -7/+8 |
| | | | | | | declaration available in pure Python mode. Closes #1653. | ||||
* | Need to delay annotation typing after the "as_cfunction()" conversion in ↵ | Stefan Behnel | 2017-09-03 | 1 | -2/+2 |
| | | | | AdjustDefByDirectives transform as we do not have an 'env' yet. | ||||
* | Work around compiler crash due to missing 'env' (before declaration ↵ | Stefan Behnel | 2017-09-02 | 1 | -1/+2 |
| | | | | analysis) when combining @ccall with argument annotations. | ||||
* | Add comment. | Stefan Behnel | 2017-09-02 | 1 | -0/+1 |
| | |||||
* | Allow arbitrary type references in annotations, rather than just valid ↵ | Stefan Behnel | 2017-09-02 | 1 | -2/+9 |
| | | | | executable Python expressions. | ||||
* | Change annotation typing directive to cover all type annotations and modify ↵ | Stefan Behnel | 2017-09-02 | 1 | -4/+13 |
| | | | | | | annotation parsing to be more PEP 484 compatible. Only "cython.*" types are interpreted as C types from now on, everything else is considered Python types for maximum compatibility with Python type hints. | ||||
* | Fix compiler crash in some error cases where ExprStatNode accidentally ↵ | Stefan Behnel | 2017-09-02 | 1 | -1/+1 |
| | | | | contains a StatNode. | ||||
* | Implement PEP 526: syntax for variable annotations. | Stefan Behnel | 2017-09-02 | 1 | -4/+13 |
| | | | | | Also parses variable annotations as type declarations. Closes #1850. | ||||
* | Allow for-in-range loop targets to be arbitrary expressions, not just plain ↵ | Stefan Behnel | 2017-09-02 | 1 | -8/+15 |
| | | | | | | names. Closes #1831. | ||||
* | Remove debugging change. | Robert Bradshaw | 2017-09-01 | 1 | -1/+1 |
| | |||||
* | More complete test and fix for template specialization issues. | Robert Bradshaw | 2017-08-31 | 1 | -1/+1 |
| | | | | Partial workaround for Github Issue #1852. | ||||
* | Minor code cleanups. | Stefan Behnel | 2017-08-24 | 1 | -2/+3 |
| | |||||
* | Pass current thread state into generator body instead of requesting it twice. | Stefan Behnel | 2017-08-24 | 1 | -3/+2 |
| | |||||
* | Move exception state cleanup into generator body code to allow a distinction ↵ | Stefan Behnel | 2017-08-24 | 1 | -11/+15 |
| | | | | between normal yields and yields in except blocks. They require different handling according to what CPython does. | ||||
* | Repair "range(enum)" iteration in C++ which (rightfully) disallows arbitrary ↵ | Stefan Behnel | 2017-08-17 | 1 | -4/+9 |
| | | | | assignments between enum+int. | ||||
* | Merge pull request #1802 from scoder/_pep525_async_gen | scoder | 2017-08-09 | 1 | -39/+70 |
|\ | | | | | PEP 525: asynchronous generators | ||||
| * | disambiguate attribute name ("is_async_gen" it too close to an existing ↵ | Stefan Behnel | 2017-08-08 | 1 | -5/+5 |
| | | | | | | | | "is_asyncgen") | ||||
| * | remove support for the pre-Py3.5.2 aiter protocol that slows down the ↵ | Stefan Behnel | 2017-08-08 | 1 | -3/+2 |
| | | | | | | | | overall implementation | ||||
| * | repair scoped comprehensions inside of generators and async functions by ↵ | Stefan Behnel | 2017-08-07 | 1 | -2/+2 |
| | | | | | | | | allowing their loop variables to be added to closures when necessary | ||||
| * | in generators/coroutines, save away the current exception in the 'return' ↵ | Stefan Behnel | 2017-07-30 | 1 | -22/+41 |
| | | | | | | | | case of finally clauses as 'return' actually raises an (Async)StopIteration exception | ||||
| * | remove accidental left-over | Stefan Behnel | 2017-07-29 | 1 | -1/+1 |
| | | |||||
| * | solve most of the issues with failing async-gen tests, some asyncio tests ↵ | Stefan Behnel | 2017-07-29 | 1 | -8/+14 |
| | | | | | | | | are still failing | ||||
| * | allow yield in async def functions (which turns them into async generators) | Stefan Behnel | 2017-07-27 | 1 | -4/+11 |
| | | |||||
* | | Fix "declaration after code" issue. | Stefan Behnel | 2017-07-31 | 1 | -1/+1 |
|/ | | | | Closes #1801 | ||||
* | remove useless semicolons from Python code | Stefan Behnel | 2017-07-13 | 1 | -2/+2 |
| | |||||
* | Fix #1767 | Robert Bradshaw | 2017-07-10 | 1 | -3/+5 |
| | |||||
* | Add semicolon for fallthrough statements.0.26b2 | Robert Bradshaw | 2017-07-10 | 1 | -3/+3 |
| | | | | Resolves note at #1765. | ||||
* | First attempt at explicit fallthrough annotation. | Robert Bradshaw | 2017-07-08 | 1 | -0/+4 |
| | |||||
* | Suppress (verbose) may-be-used-uninitialized errors. | Robert Bradshaw | 2017-07-06 | 1 | -0/+4 |
| | |||||
* | Merge branch 'master' into feature/pythran | scoder | 2017-06-25 | 1 | -1/+3 |
|\ | |||||
| * | Merge pull request #1724 from jdemeyer/cyfunction_decorators | scoder | 2017-06-25 | 1 | -1/+3 |
| |\ | | | | | | | Do not apply decorators twice | ||||
| | * | Do not apply decorators twice | Jeroen Demeyer | 2017-06-02 | 1 | -1/+3 |
| | | | | | | | | | | | | This fixes https://github.com/cython/cython/issues/1679 | ||||
* | | | Add a Pythran backend for Numpy operation | Adrien Guinet | 2017-06-17 | 1 | -1/+18 |
|/ / | | | | | | | | | | | | | | | | | | | | | | | When the user asked for it (thanks to the --np-pythran flag), use Pythran's Numpy implementation as a backend for numpy operation. This flag forces the C++ mode, as the Pythran implementation is written in C++. Distutils integration through the 'np_pythran' flag of the cythonize API is also provided. This commit also adds a Pythran mode for the tests, that can enable the pythran mode for the C++ tests, and allows the reuse of Cython tests to test for the Pythran integration. | ||||
* | | Make "break" outside of loops a syntax error also inside of try-except blocks. | Stefan Behnel | 2017-06-04 | 1 | -2/+3 |
|/ | | | | Closes #1726. | ||||
* | Explicit error on declaring a reference type. | Robert Bradshaw | 2017-05-20 | 1 | -0/+2 |
| | | | | This is better than generating invalid code; see #1695. | ||||
* | Correctly look up module of superclass. | Robert Bradshaw | 2017-05-11 | 1 | -1/+4 |
| | |||||
* | Merge pull request #1669 from shalabhc/generator-profiling-fix | scoder | 2017-05-10 | 1 | -15/+35 |
|\ | | | | | Fix profiling for generators and generator expressions | ||||
| * | Fix profiling for generators and generator expressions | Shalabh Chaturvedi | 2017-04-10 | 1 | -15/+35 |
| | | | | | | | | | | Fixes #1668. The profile hook is now called with 'call' and 'return' each time the generator resumes/yields. | ||||
* | | cast invalid pointer initialisation values also for OpenMP temps and not ↵ | Stefan Behnel | 2017-05-06 | 1 | -1/+1 |
| | | | | | | | | | | | | just normal variables Closes #1664 | ||||
* | | include missing utility code when raising StopAsyncIteration | Stefan Behnel | 2017-05-06 | 1 | -0/+2 |
| | | | | | | | | Closes #1692 | ||||
* | | Generate subexpression code for deletion of C++ classes. | Robert Bradshaw | 2017-04-29 | 1 | -1/+2 |
|/ | |||||
* | Remove duplicated file path handling code when generating file path tables. | Stefan Behnel | 2017-02-12 | 1 | -20/+2 |
| | |||||
* | Detect function template parameters through pointers and references. | Robert Bradshaw | 2016-12-04 | 1 | -0/+6 |
| | | | | Fixes #1541 | ||||
* | Suppress self-assignment warning. | Robert Bradshaw | 2016-11-15 | 1 | -2/+1 |
| |