Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | Update implementation of PEP 3118 getbuffer special methoddalcinl/fix-getbuffer | Lisandro Dalcin | 2017-11-01 | 1 | -20/+52 |
| | | | | | * Rework check for `view==NULL` required for legacy Python 3 releases. * Handle redefined `struct Py_buffer` in user code (e.g. mpi4py). | ||||
* | Implement line tracing for generators and coroutines. | Stefan Behnel | 2017-10-31 | 1 | -2/+9 |
| | | | | Closes #1949. | ||||
* | Merge branch '0.27.x' | Stefan Behnel | 2017-10-29 | 1 | -3/+3 |
|\ | |||||
| * | 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 |
| | | |||||
* | | Merge pull request #1952 from cython/dalcinl/mark-unused-vars | Lisandro Dalcin | 2017-10-28 | 1 | -1/+2 |
|\ \ | | | | | | | Mark unused vars with `(void)x;` [should silence Coverity Scan] | ||||
| * | | Mark unused vars with `(void)x;` [should silence Coverity Scan]dalcinl/mark-unused-vars | Lisandro Dalcin | 2017-10-28 | 1 | -1/+2 |
| |/ | |||||
* | | Trivial typo fixes | Unknown | 2017-10-17 | 1 | -2/+2 |
| | | | | | | | | | | Most are non-user facing. Found using: `codespell -d -q 3` | ||||
* | | Better errors for unknown type arguments. | Robert Bradshaw | 2017-10-14 | 1 | -1/+1 |
| | | |||||
* | | Speed up some dict lookups in Py3.5+ by calling the faster ↵ | Stefan Behnel | 2017-10-08 | 1 | -3/+3 |
| | | | | | | | | "_PyDict_GetItem_KnownHash()" instead of "PyDict_GetItem()". | ||||
* | | Clean up code. | Stefan Behnel | 2017-10-08 | 1 | -3/+4 |
| | | |||||
* | | Discard loop variable resetting in ForFromStatNode for Python loop variables ↵ | Stefan Behnel | 2017-10-08 | 1 | -2/+2 |
| | | | | | | | | also after the range() optimisation (was previously implied). | ||||
* | | Add a warning about range(enum) iteration since it's really not a good idea ↵ | Stefan Behnel | 2017-10-08 | 1 | -0/+3 |
| | | | | | | | | usually, so requiring an explicit cast to say "I know what I'm doing" seems best. | ||||
* | | Enable for-in-range() optimisation also for small integer loops with a ↵ | Stefan Behnel | 2017-10-08 | 1 | -19/+22 |
| | | | | | | | | Python loop variable. We cannot always infer the loop variable as safe integer type, but dropping the loop itself into C is always faster than calling range(). | ||||
* | | Automatic late includes. | Jeroen Demeyer | 2017-09-28 | 1 | -3/+13 |
|/ | |||||
* | 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 |