Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | Make raise-statements inside of nogil blocks automatically acquire the GIL, ↵ | Stefan Behnel | 2018-06-03 | 1 | -1/+2 |
| | | | | instead of requiring an explicit ``with gil`` block around them. | ||||
* | Make compiler pipeline a bit nicer to profile. | Stefan Behnel | 2017-08-21 | 1 | -3/+17 |
| | |||||
* | Simplify TrackNumpyAttributes transform. | Stefan Behnel | 2017-08-21 | 1 | -2/+1 |
| | |||||
* | Always report fatal errors. | Robert Bradshaw | 2017-07-08 | 1 | -1/+1 |
| | | | | | | Previously these could be suppressed if error holding was in place. This was noticed in #1746. | ||||
* | Add a Pythran backend for Numpy operation | Adrien Guinet | 2017-06-17 | 1 | -1/+2 |
| | | | | | | | | | | | | 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. | ||||
* | rely on code generation phase to include required utility code instead of ↵ | Stefan Behnel | 2016-08-14 | 1 | -25/+0 |
| | | | | always including all of it in a separate pipeline phase | ||||
* | merge DecoratorTransform and PropertyTransform | Stefan Behnel | 2015-11-07 | 1 | -2/+1 |
| | |||||
* | Add a pass transforming Python-style properties in cdef class into ↵ | Emmanuel Gil Peyrot | 2015-11-05 | 1 | -1/+2 |
| | | | | | | | | | | Cython-style properties. This makes properties work properly in cdef classes, and gives them the exact same AST as the “property something:” blocks, whose syntax should probably be deprecated now. Fixes T264. | ||||
* | pass correct CythonScope into CythonUtilityScope tree generation (used to be ↵ | Stefan Behnel | 2015-10-26 | 1 | -1/+1 |
| | | | | None) | ||||
* | minor code reformatting | Stefan Behnel | 2015-09-17 | 1 | -0/+5 |
| | |||||
* | More determanistic utility code ordering. | Robert Bradshaw | 2015-09-05 | 1 | -5/+4 |
| | |||||
* | Fix a couple of tests due to utility code changes. | Robert Bradshaw | 2015-09-03 | 1 | -1/+3 |
| | |||||
* | Make cpdef enums into first-class types. | Robert Bradshaw | 2015-09-03 | 1 | -0/+25 |
| | | | | | | | | | | | | | | For example cpdef enum Eggs SOFT HARD SCRAMBLED produces three constants with int values that print as strings, and a type Eggs with attributes Eggs.SOFT, etc. and list(Eggs) giving the set of all enum values. Instantiating Eggs with a numeric or string value will return the appropriate constant. | ||||
* | Merge branch '0.23.x' | Stefan Behnel | 2015-08-09 | 1 | -0/+1 |
|\ | |||||
| * | fix #855: make "import *" include all necessary "from_py" coercion helper ↵ | Stefan Behnel | 2015-08-09 | 1 | -0/+1 |
| | | | | | | | | functions | ||||
* | | minor code beautification | Stefan Behnel | 2015-08-09 | 1 | -2/+8 |
|/ | |||||
* | adapt some more syntax to Py2/Py3 | Stefan Behnel | 2015-07-25 | 1 | -3/+3 |
| | |||||
* | make dict iteration compatible with Py2/Py3 | Stefan Behnel | 2015-07-25 | 1 | -2/+2 |
| | |||||
* | 2to3: Apply the 'except' fixer | Petr Viktorin | 2015-07-25 | 1 | -3/+3 |
| | |||||
* | implement "async with" (PEP 492) | Stefan Behnel | 2015-05-23 | 1 | -1/+1 |
| | |||||
* | Undo --embed -> __main__ conversion. | Robert Bradshaw | 2015-04-27 | 1 | -4/+1 |
| | |||||
* | Rename module to __main__ in embed mode. | Robert Bradshaw | 2015-04-24 | 1 | -3/+5 |
| | | | | | | This is more consistent with the execution of "python foo.py" and also allows for compilation of files that don't obey the module naming rules. | ||||
* | change pipeline order to include tree changes made by structural optimisers ↵ | Stefan Behnel | 2015-03-19 | 1 | -2/+2 |
| | | | | in OptimizeBuiltinCalls run | ||||
* | remove unclear comment and add docstring to explain why | Stefan Behnel | 2014-11-15 | 1 | -1/+1 |
| | | | | | --HG-- extra : transplant_source : %C4Y%8Fo%10QD%23%A6%FB%B6%AF%3B%D6%C9%A9%09%C4%0D%A8 | ||||
* | use explicit relative imports everywhere and enable absolute imports by default | Stefan Behnel | 2014-06-17 | 1 | -38/+38 |
| | |||||
* | add a directive to disable SwitchTransform | Alok Singhal | 2014-04-22 | 1 | -1/+1 |
| | | | | | SwitchTransform is unable to detect all cases of duplicate values, which result in errors at compile time in the generated code. | ||||
* | fix some unnecessary Py2-isms in the code base | Stefan Behnel | 2014-01-17 | 1 | -1/+1 |
| | |||||
* | Cimported name mangling. | Robert Bradshaw | 2014-01-07 | 1 | -0/+4 |
| | |||||
* | Add support for external C++ template functions. | Robert Bradshaw | 2013-12-26 | 1 | -1/+1 |
| | | | | | | The syntax follows that of template classes, namely cdef T foo[T](T, ...) | ||||
* | fix crash when looking up closure names in OptimizeBuiltinCalls transform ↵ | Stefan Behnel | 2013-12-24 | 1 | -1/+1 |
| | | | | (after running CreateClosureClasses transform) | ||||
* | move qualname calculation transform a little later in the pipeline | Stefan Behnel | 2013-11-16 | 1 | -1/+1 |
| | |||||
* | reimplement PEP 3155 __qualname__ calculation in a dedicated transform to ↵ | Stefan Behnel | 2013-11-15 | 1 | -0/+2 |
| | | | | base it on the node structure instead of the scopes (which fails for class scopes) | ||||
* | In cimport_from_pyx mode don't treat "cdef extern from" variables as being ↵ | Nikita Nemkin | 2013-04-06 | 1 | -1/+2 |
| | | | | defined, preventing erroneous cross-module cimport. | ||||
* | reimplement SimplifyCalls transform in-place in GeneralCallNode.analyse_types() | Stefan Behnel | 2013-02-07 | 1 | -2/+1 |
| | |||||
* | move major part of SimplifyCalls transform into type analysis in GeneralCallNode | Stefan Behnel | 2013-02-06 | 1 | -1/+1 |
| | |||||
* | simple optimisation that statically maps keyword arguments to positional ↵ | Stefan Behnel | 2013-02-05 | 1 | -1/+2 |
| | | | | arguments when called signature is known | ||||
* | convert IterationTransform to inherit from EnvTransform for better scope ↵ | Stefan Behnel | 2012-12-31 | 1 | -1/+1 |
| | | | | tracking | ||||
* | Cheaper overflow checks for nested expressions. | Robert Bradshaw | 2012-12-28 | 1 | -0/+2 |
| | |||||
* | move utility code inclusion from Name/AttributeNodes to the latest possible ↵ | Stefan Behnel | 2012-08-29 | 1 | -5/+9 |
| | | | | step in the pipeline (after removing it from declaration analysis) | ||||
* | comment | Stefan Behnel | 2012-08-11 | 1 | -1/+1 |
| | |||||
* | Rename MarkAssignments to MarkParallelAssignments | Vitja Makarov | 2012-05-08 | 1 | -3/+3 |
| | |||||
* | Revert "Stopgap support for numpy 1.7" | Robert Bradshaw | 2012-04-14 | 1 | -1/+0 |
| | | | | This reverts commit 95b6e693327650607c6f5b1fffc5c9867dce0645. | ||||
* | Stopgap support for numpy 1.7 | Dag Sverre Seljebotn | 2012-03-21 | 1 | -0/+1 |
| | | | | | | | | | | | | NumPy is starting to seriously deprecating access to the member fields in an ndarray (it was always frowned upon, but now it is starting to become enforced). To support the large body of Cython code out there accessing these fields (arr.shape[0] and so on), we special-case PyArrayObject in Cython, with special knowledge of the NumPy API. Ideally, we may introduce features in Cython in the future that allows specifying this kind of magic with syntax in pxd files, and then we can move away from special-casing NumPy. | ||||
* | Simple closure defnode call inlining | Vitja Makarov | 2012-01-12 | 1 | -0/+2 |
| | |||||
* | Rename CreateControlFlowGraph to ControlFlowAnalysis | Vitja Makarov | 2011-11-30 | 1 | -2/+2 |
| | |||||
* | minor import cleanup | Stefan Behnel | 2011-11-13 | 1 | -1/+0 |
| | |||||
* | removed lots of unused imports, delayed some imports that are only needed ↵ | Stefan Behnel | 2011-11-13 | 1 | -1/+1 |
| | | | | | | | for Cython specific syntax --HG-- extra : rebase_source : a2df3675fd1efae1a1122ca9742e99ab1405fba6 | ||||
* | Better fused types error detection, specialized fused C++ templates | Mark Florisson | 2011-11-05 | 1 | -1/+2 |
| | |||||
* | Merge branch 'master' into fusedmerge | Mark Florisson | 2011-10-28 | 1 | -1/+1 |
|\ | | | | | | | | | | | | | | | Conflicts: Cython/Compiler/MemoryView.py Cython/Compiler/Naming.py Cython/Compiler/Nodes.py Cython/Compiler/Parsing.py | ||||
| * | fix compiler crash on .pxd file processing | Stefan Behnel | 2011-10-14 | 1 | -1/+1 |
| | |