Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | Drop unused code-paths associated with "if cython.compiled" early (GH-3507) | da-woods | 2020-04-13 | 1 | -3/+14 |
| | | | | | | | | | | | | | This allows things to work like: # in pxd file from libc.math cimport sin # in py file if not cython.compiled: from math import sin # previously failed with cython compile # error because it was assigning to a cdef name This seems worthwhile because it makes it easier to write code that re-assigns cdef names and so works in both modes. | ||||
* | Specialize fused function local variables specified with pure-python (GH-3463) | da-woods | 2020-03-31 | 1 | -0/+2 |
| | | | | | | | These were previously getting missed. Added code to specialize them and tests to prove it. Fixes https://github.com/cython/cython/issues/3142 Also fixes https://github.com/cython/cython/issues/3460 - (seems related enough to go in the same PR) | ||||
* | Merge branch '0.29.x' | Stefan Behnel | 2020-02-12 | 1 | -0/+2 |
|\ | |||||
| * | fix "undeclared" warning about generated pickle methods (GH-3353) | da-woods | 2020-02-12 | 1 | -0/+2 |
| | | | | | | | | | | The pickle functions __reduce__ and __setstate_cython__ were being visited in the module scope (where they were undeclared) rather than the class scope where they were declared | ||||
| * | Mangle cname for closures in derived c class (GH-2990) | Josh Tobin | 2019-06-11 | 1 | -1/+4 |
| | | |||||
* | | Support METH_FASTCALL for Cython functions (GH-3101) | Jeroen Demeyer | 2019-09-10 | 1 | -3/+0 |
| | | |||||
* | | Rename self_result_code -> closure_result_code | Jeroen Demeyer | 2019-08-27 | 1 | -1/+1 |
| | | |||||
* | | Use METH_FASTCALL on CPython >= 3.7 (GH-3021) | Jeroen Demeyer | 2019-08-27 | 1 | -0/+5 |
| | | |||||
* | | Support wider use of @property decorator on CClassDef AttributeNodes (GH-3095) | Matti Picus | 2019-08-27 | 1 | -1/+3 |
| | | | | | | | | | | | | * TEST: add cgetter test for pointer and pxd use * BUG: handle more AttributeNode-with-property-decorator * BUG: fix numpy/__init__.pxd * ENH: add @property for ndarray.size, formatting cleanup | ||||
* | | Unicode identifiers (PEP 3131) (GH-3081) | da-woods | 2019-08-24 | 1 | -4/+5 |
| | | | | | | Closes #2601 | ||||
* | | Mangle cname for closures in derived c class (GH-2990) | Josh Tobin | 2019-06-11 | 1 | -1/+4 |
| | | |||||
* | | Merge branch '0.29.x' | Stefan Behnel | 2019-03-04 | 1 | -1/+2 |
|\ \ | |/ | |||||
| * | Add missing return type annotation to generators and coroutines. | Stefan Behnel | 2019-03-04 | 1 | -1/+2 |
| | | | | | | | | Closes GH-2884. | ||||
* | | Create run tests for conditional GILStatNode | Noam Hershtig | 2019-02-23 | 1 | -2/+10 |
| | | |||||
* | | Allow condition in GILStatNode | Noam Hershtig | 2019-02-23 | 1 | -0/+5 |
| | | |||||
* | | Only inject eval() locals/globals args when it's called as a builtin and not ↵ | Stefan Behnel | 2019-02-03 | 1 | -2/+2 |
| | | | | | | | | redefined e.g. in the module (found when updating test_grammar() and overriding it there). | ||||
* | | Merge pull request #2640 from mattip/ctypedef-class-getter2 | Stefan Behnel | 2019-01-16 | 1 | -1/+24 |
|\ \ | | | | | | | ENH: allow @property decorator on external ctypedef classes | ||||
| * | | MAINT: refactor decorator analysis | mattip | 2019-01-07 | 1 | -16/+17 |
| | | | |||||
| * | | MAINT: refactor: is_cgetter now lives on the entry, use find_decorator | mattip | 2019-01-07 | 1 | -13/+11 |
| | | | |||||
| * | | MAINT: refactor from review | mattip | 2019-01-05 | 1 | -11/+16 |
| | | | |||||
| * | | whoops, staticmethod is a valid cdef decorator | mattip | 2018-11-13 | 1 | -0/+1 |
| | | | |||||
| * | | ENH: handle c-level property decorator to produce a cfunc call | mattip | 2018-11-13 | 1 | -9/+8 |
| | | | |||||
| * | | add a new ReplacePropertyNode pass | mattip | 2018-11-13 | 1 | -61/+19 |
| | | | |||||
| * | | WIP ENH: allow @property decorator on external ctypedef classes | mattip | 2018-11-05 | 1 | -1/+62 |
| |/ | |||||
* | | Use Py3 syntax in generated Cython code fragment. | Stefan Behnel | 2019-01-12 | 1 | -1/+1 |
| | | |||||
* | | Replace MD5 file hashing by SHA-1, both because it's faster (by 25% on 64 ↵ | Stefan Behnel | 2019-01-08 | 1 | -1/+1 |
|/ | | | | | | bit Linux) and because MD5 is no longer allowed in US FIPS 140-2 environments. Closes #2790. | ||||
* | 2685_warn_undeclared: fix undeclared type warnings for unpickle variables. | Nicolas Pauss | 2018-10-30 | 1 | -0/+4 |
| | | | | | | | | | | The types of variables __pyx_PickleError, __pyx_result from generated unpickle function, and variables state, _dict from __reduce_cython__ generated method were not declared. So warnings were raised with warn.undeclared for every single extension type. Now, we define the type of these variables, and no warnings are raised. | ||||
* | Prevent assigned global variables from being marked and treated as closure ↵ | Stefan Behnel | 2018-09-22 | 1 | -1/+1 |
| | | | | | | variables in generators and coroutines. Closes #2613. | ||||
* | Clean up directives to distinguish between those that belong to a function ↵ | Stefan Behnel | 2018-09-22 | 1 | -32/+29 |
| | | | | | | | or class and those that are generally inherited. Everything that is not inherited should also not have a default value and instead exist or not. Then, prevent lambdas and generator expressions from inheriting directives from their outer function/scope, e.g. "@cython.cdef". Closes #459. | ||||
* | Check some child nodes against the correct nogil context when they are ↵ | Stefan Behnel | 2018-09-19 | 1 | -12/+24 |
| | | | | actually being evaluated in the outer scope (e.g default arguments or annotations of a nogil function). | ||||
* | Support "@cython.nogil" decorator in pure mode. | Stefan Behnel | 2018-09-14 | 1 | -2/+7 |
| | | | | Closes #2557. | ||||
* | 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. |