summaryrefslogtreecommitdiff
path: root/Cython/Compiler/ModuleNode.py
Commit message (Collapse)AuthorAgeFilesLines
* Add a "CYTHON_HEX_VERSION" macro in the style of PY_HEX_VERSION that user ↵Stefan Behnel2018-08-261-1/+2
| | | | code can use to detect the Cython version that generated the main module.
* Move PyFrame localsplus offset calculation to a more appropriate utility ↵Stefan Behnel2018-08-141-0/+2
| | | | file where it can be included conditionally.
* make __Pyx_PyFunction_FastCallNoKw compatible with Stackless PythonAnselm Kruis2018-08-141-0/+1
| | | | | | Compute the offset of the PyFrameObject member "f_localsplus" at runtime, because the layout of PyFrameObject differs between regular C-python and Stackless Python.
* Added the pep8 test to travis. All the warnings are disabled and only a few ↵gabrieldemarmiesse2018-08-111-1/+1
| | | | error checks are enabled.
* Actually enable the error on PEP-489 module reinitialisation, and add it to ↵Stefan Behnel2018-08-101-5/+4
| | | | the changelog.
* Mark error raising code in PEP 489 init phase as TODO.Stefan Behnel2018-08-101-6/+6
|
* Revert PEP-489 behaviour, but keep error raising code to make it easy to try ↵Stefan Behnel2018-08-101-8/+13
| | | | both.
* Make error message more informative.Stefan Behnel2018-08-101-1/+2
|
* Enable PEP-489 module initialisation again, but raise an error on re-inits.Stefan Behnel2018-08-101-5/+7
|
* Allow C line in traceback also during module initJeroen Demeyer2018-07-121-2/+1
|
* Repair inclusion of TypeImport utility code for api .h files.Stefan Behnel2018-06-171-2/+4
|
* Fix C compiler warnings about an unused error label and an unused helper ↵Stefan Behnel2018-06-171-4/+9
| | | | function if only builtin types are used and no external extension types.
* Generate short wrappers for special methods like "__next__()" to adapt their ↵Stefan Behnel2018-06-171-1/+7
| | | | | | | signature for the PyCFunction entry in PyMethodDef. Previously, their cast to a two-argument PyCFunction was incorrect. See #2363.
* Merge branch '0.28.x'Stefan Behnel2018-06-031-1/+1
|\
| * Fix: reallowing tp_clear() in a subtype of an @no_gc_clear extension type ↵Stefan Behnel2018-06-031-1/+1
| | | | | | | | | | | | generated an invalid C function call to the (non-existent) base type implementation. Closes #2309.
* | Remove undefined branch hint macro usage from generated api header file.Stefan Behnel2018-05-261-1/+1
| |
* | Remove redundant helper function "__Pyx_ImportModule()" which was only ↵Stefan Behnel2018-05-261-9/+4
| | | | | | | | needed in Py<2.6 when PyObject_GetAttrString() and PyImport_ImportModule() did not take const string arguments.
* | Avoid redundant importing of modules when cimporting external extension ↵Stefan Behnel2018-05-261-23/+63
| | | | | | | | types from the same module.
* | Add comment.Stefan Behnel2018-05-261-0/+2
| |
* | Avoid a dangling pointer in the global "__pyx_m" variable while decrefing it.Stefan Behnel2018-05-251-1/+1
| |
* | Mark several one-time functions (used during module init) with ↵Stefan Behnel2018-05-251-2/+7
| | | | | | | | CYTHON_SMALL_CODE to reduce their binary code impact on the overall module size.
* | Merge branch '0.28.x'Stefan Behnel2018-05-211-1/+1
|\ \ | |/
| * Fix error reporting on very early errors when the Cython runtime ↵Stefan Behnel2018-05-211-1/+1
| | | | | | | | | | | | configuration module is not set up yet. See #2199.
* | Intern some identifier names that are likely to be otherwise interned anyway.Stefan Behnel2018-05-181-4/+3
| |
* | Allow access to long/int internalsJeroen Demeyer2018-05-031-0/+5
|/
* COMPAT: From the next release PyPy fixed tp_basicsize of PyType_Typemattip2018-03-211-1/+1
|
* Remove invalid GCC attribute usage when PEP-489 is enabled.Stefan Behnel2018-03-181-1/+1
|
* Work around BPO-32973: CPython 3 can rerun the module PyInit function if the ↵Stefan Behnel2018-03-021-0/+6
| | | | | | extension module is re-imported under a different name. https://bugs.python.org/issue32973
* Make CYTHON_SMALL_CODE macro work with g++.Stefan Behnel2018-02-141-3/+3
|
* Optimise the module init function for small code size regardless of the ↵Stefan Behnel2018-02-141-3/+4
| | | | | | externally provided CFLAGS. See #2102.
* Optimise attribute access on extension types with "__getattr__" but without ↵Stefan Behnel2018-01-241-10/+25
| | | | instance dict through a streamlined copy of "PyObject_GenericGetAttr".
* Extract some generated plain code into a utility code file to make it more ↵Stefan Behnel2018-01-051-9/+2
| | | | visible and editable.
* Verbatim C code using docstring syntax.Jeroen Demeyer2017-11-171-20/+14
|
* Merge branch 'master' into multi-inheritanceRobert Bradshaw2017-11-071-23/+97
|\
| * Add docstring.Stefan Behnel2017-11-051-0/+8
| |
| * Enable the refnanny for the separate mod-init step functions as it is ↵Stefan Behnel2017-11-051-1/+5
| | | | | | | | required for temp checking.
| * Split up the module init function into separate C functions per setup step ↵Stefan Behnel2017-11-051-19/+77
| | | | | | | | | | | | as it can get fairly lengthy for complex modules, e.g. with many extension types. This hopefully reduces the function complexity that the C compiler must handle.
| * Merge branch '0.27.x'Stefan Behnel2017-10-291-1/+3
| |\
| | * Add missing `extern` declaration for the `module_is_main` flagLisandro Dalcin2017-10-271-1/+3
| | |
| * | Move CYTHON_NO_PYINIT_EXPORT utility code into external file to avoid ↵Stefan Behnel2017-10-281-21/+2
| | | | | | | | | | | | lengthy chain of plain text code generation.
| * | Add CYTHON_NO_PYINIT_EXPORT macro. (#1944)AraHaan2017-10-211-2/+22
| | | | | | | | | | | | | | | | | | | | | When building the generated code in an embedded interpreter the module init function will no longer be exported if CYTHON_NO_PYINIT_EXPORT is defined. See https://github.com/cython/cython/issues/1944 for details.
| * | Split Python compatibility adaptation code out of ModulePreamble section and ↵Stefan Behnel2017-10-201-0/+1
| | | | | | | | | | | | into its own separate section to allow moving it around and support using CYTHON_INLINE etc. in it.
* | | Cleanup.Robert Bradshaw2017-11-071-1/+1
| | |
* | | Move type_ready code to CClassDefNode.Robert Bradshaw2017-10-121-99/+2
| | |
* | | Allow multiple bases for cdef classes.Robert Bradshaw2017-10-111-12/+10
|/ /
* | Merge branch 'late_includes_auto'Robert Bradshaw2017-10-021-5/+18
|\ \ | |/ |/|
| * Cleanup late includes.Robert Bradshaw2017-10-021-2/+2
| |
| * Automatic late includes.Jeroen Demeyer2017-09-281-5/+18
| |
* | Fix method name (no test failure?).Stefan Behnel2017-09-291-1/+1
| |
* | Fix generation of api code for C++ classes with object members.Robert Bradshaw2017-09-281-40/+51
|/ | | | Fixes Github issue #1886.