Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | Mark try-finally statements with terminating finally clauses as terminators ↵ | Stefan Behnel | 2018-08-25 | 1 | -0/+6 |
| | | | | themselves. | ||||
* | Simplify code to format it better. | Stefan Behnel | 2018-07-23 | 1 | -2/+2 |
| | |||||
* | Pythran: verify that pythran supports called Numpy APIs | Adrien Guinet | 2018-07-21 | 1 | -1/+2 |
| | |||||
* | Add some comments on potential improvements. | Stefan Behnel | 2018-06-04 | 1 | -0/+4 |
| | |||||
* | Improve a docstring. | Stefan Behnel | 2018-06-03 | 1 | -1/+4 |
| | |||||
* | Make raise-statements inside of nogil blocks automatically acquire the GIL, ↵ | Stefan Behnel | 2018-06-03 | 1 | -0/+47 |
| | | | | instead of requiring an explicit ``with gil`` block around them. | ||||
* | Delete unused code. | Stefan Behnel | 2018-05-10 | 1 | -14/+1 |
| | |||||
* | Do not hijack "@asyncio.coroutine" to make async-def functions iterable, ↵ | Stefan Behnel | 2018-02-28 | 1 | -16/+2 |
| | | | | since this is really just a legacy feature that users should not overuse. Instead, provide a dedicated and explicit "cython.iterable_coroutine" directive. | ||||
* | Allow @final class decorator in pure mode. Was previously rejected for ↵ | Stefan Behnel | 2017-12-15 | 1 | -5/+8 |
| | | | | | | Python classes with an @cclass decorator. Closes #2040. | ||||
* | initial attempt to evaluate "@coroutine" at compile time by making the ↵ | Stefan Behnel | 2017-11-16 | 1 | -1/+18 |
| | | | | | | resulting coroutine iterable Signed-off-by: Stefan Behnel <stefan_ml@behnel.de> | ||||
* | Implement line tracing for generators and coroutines. | Stefan Behnel | 2017-10-31 | 1 | -0/+2 |
| | | | | Closes #1949. | ||||
* | Trivial typo fixes | Unknown | 2017-10-17 | 1 | -2/+2 |
| | | | | | Most are non-user facing. Found using: `codespell -d -q 3` | ||||
* | Allow typeof(...) to be used in a type context. | Robert Bradshaw | 2017-10-14 | 1 | -2/+4 |
| | |||||
* | Allow pure python annotations in type declarations. | Robert Bradshaw | 2017-10-14 | 1 | -2/+7 |
| | | | | Related to #1838. | ||||
* | Remove accidental use of "await" as a name as it becomes a keyword in Py3.7. | Stefan Behnel | 2017-10-07 | 1 | -2/+2 |
| | | | | Closes #1916. | ||||
* | Turn compiler assertion into an error since it's triggered by user code. | Stefan Behnel | 2017-10-03 | 1 | -3/+8 |
| | | | | | Considered to make it a warning, but CPython's forgiving behaviour seems unhelpful. Can still make it a warning later. Closed #1905. | ||||
* | Make vtable order of extension types with fused methods only dependant on ↵ | Stefan Behnel | 2017-09-20 | 1 | -0/+7 |
| | | | | | | | | the original declaration order (e.g. in the .pxd file). Previously, fused methods were specialised and expanded on first use, which lead to an arbitrary order in the vtable. Also fixes compile failures when inheriting from base types with fused cdef methods. Fixes #1873. | ||||
* | Attempt to use a faster exception value for return type annotations that ↵ | Stefan Behnel | 2017-09-09 | 1 | -1/+8 |
| | | | | | | | | | | | | | | 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 | -4/+23 |
| | | | | | | declaration available in pure Python mode. Closes #1653. | ||||
* | Work around compiler crash due to missing 'env' (before declaration ↵ | Stefan Behnel | 2017-09-02 | 1 | -2/+5 |
| | | | | analysis) when combining @ccall with argument annotations. | ||||
* | Avoid useless instance assignment on NameNode to save a bit of memory. | Stefan Behnel | 2017-09-02 | 1 | -1/+3 |
| | |||||
* | Merge branch 'master' into gen_exc_handling | Stefan Behnel | 2017-08-25 | 1 | -3/+8 |
|\ | |||||
| * | Simplify TrackNumpyAttributes transform. | Stefan Behnel | 2017-08-21 | 1 | -3/+8 |
| | | |||||
* | | Move exception state cleanup into generator body code to allow a distinction ↵ | Stefan Behnel | 2017-08-24 | 1 | -1/+6 |
| | | | | | | | | between normal yields and yields in except blocks. They require different handling according to what CPython does. | ||||
* | | Keep direct closure of generators and coroutines intact during cleanup by ↵ | Stefan Behnel | 2017-08-20 | 1 | -0/+3 |
|/ | | | | disabling their tp_clear() as they still need their closure for handling the final GeneratorExit call. | ||||
* | Merge pull request #1802 from scoder/_pep525_async_gen | scoder | 2017-08-09 | 1 | -33/+61 |
|\ | | | | | PEP 525: asynchronous generators | ||||
| * | disambiguate attribute name ("is_async_gen" it too close to an existing ↵ | Stefan Behnel | 2017-08-08 | 1 | -1/+1 |
| | | | | | | | | "is_asyncgen") | ||||
| * | repair scoped comprehensions inside of generators and async functions by ↵ | Stefan Behnel | 2017-08-07 | 1 | -14/+19 |
| | | | | | | | | allowing their loop variables to be added to closures when necessary | ||||
| * | implement PEP 530 by allowing async generator expressions | Stefan Behnel | 2017-08-04 | 1 | -5/+16 |
| | | |||||
| * | in generators/coroutines, save away the current exception in the 'return' ↵ | Stefan Behnel | 2017-07-30 | 1 | -1/+6 |
| | | | | | | | | case of finally clauses as 'return' actually raises an (Async)StopIteration exception | ||||
| * | solve most of the issues with failing async-gen tests, some asyncio tests ↵ | Stefan Behnel | 2017-07-29 | 1 | -2/+3 |
| | | | | | | | | are still failing | ||||
| * | allow yield in async def functions (which turns them into async generators) | Stefan Behnel | 2017-07-27 | 1 | -12/+18 |
| | | |||||
* | | Fix a compiler crash when looking up cython.view.array() as a callable ↵ | Stefan Behnel | 2017-07-31 | 1 | -13/+13 |
|/ | | | | | | function with non-trivial keyword arguments. Closes #1598. | ||||
* | Suppress special casing of attribute names in closure classes since they are ↵ | Stefan Behnel | 2017-07-25 | 1 | -0/+1 |
| | | | | | | not user defined and any local variable name is allowed without being special. Closes #1797. | ||||
* | minor readability/safety fix | Stefan Behnel | 2017-07-22 | 1 | -1/+1 |
| | |||||
* | Minor safety/speed fix to prevent looking for a "__dict__" in an unpickled ↵ | Stefan Behnel | 2017-07-21 | 1 | -2/+2 |
| | | | | object if we don't have anything to fill it with in the first place. | ||||
* | Escape another local variable in generated pickle helper function to prevent ↵ | Stefan Behnel | 2017-07-21 | 1 | -2/+2 |
| | | | | conflicts with the user defined class name. See #1786. | ||||
* | Don't conflict with a class named 'result' in auto-pickle | Jason Madden | 2017-07-20 | 1 | -7/+7 |
| | | | | Fixes #1786. | ||||
* | Avoid pickling objects with struct attributes. | Robert Bradshaw | 2017-07-10 | 1 | -3/+12 |
| | | | | Extern structs may only be partially declared. | ||||
* | Allow self-referential members in default pickling. | Robert Bradshaw | 2017-07-08 | 1 | -21/+37 |
| | |||||
* | Merge branch 'finally-fix' | Robert Bradshaw | 2017-07-06 | 1 | -0/+2 |
|\ | |||||
| * | Don't generate pickling for types that already have a __getstate__ method. | Robert Bradshaw | 2017-07-06 | 1 | -0/+2 |
| | | |||||
* | | Avoid generating utility code unless it's actually used. | Robert Bradshaw | 2017-07-05 | 1 | -2/+7 |
| | | | | | | | | This should resolve #1757. | ||||
* | | Merge branch 'master' into feature/pythran | scoder | 2017-06-25 | 1 | -1/+11 |
|\ \ | |||||
| * \ | Merge pull request #1724 from jdemeyer/cyfunction_decorators | scoder | 2017-06-25 | 1 | -1/+11 |
| |\ \ | | |/ | |/| | Do not apply decorators twice | ||||
| | * | Do not apply decorators twice | Jeroen Demeyer | 2017-06-02 | 1 | -1/+11 |
| | | | | | | | | | | | | This fixes https://github.com/cython/cython/issues/1679 | ||||
* | | | Add a Pythran backend for Numpy operation | Adrien Guinet | 2017-06-17 | 1 | -2/+20 |
|/ / | | | | | | | | | | | | | | | | | | | | | | | 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. | ||||
* | | Less attribute lookups in reduce patching. | Robert Bradshaw | 2017-06-15 | 1 | -0/+2 |
| | | |||||
* | | Don't override unknown inherited __reduce__. | Robert Bradshaw | 2017-06-15 | 1 | -2/+8 |
| | | |||||
* | | Introduce safety check for unpickling. | Robert Bradshaw | 2017-06-14 | 1 | -3/+10 |
| | |