summaryrefslogtreecommitdiff
path: root/Cython/Utility/ModuleSetupCode.c
Commit message (Collapse)AuthorAgeFilesLines
* Remove support for Py2.6 and various quirks that special-cased it.gh2692_remove_py26_supportStefan Behnel2018-10-301-21/+4
| | | | Closes #2692.
* Workaround for long internals misconfiguration on 64-bit MinGW.Robert Bradshaw2018-10-241-0/+4
| | | | | | | | | | Also add a compile time check for SIZEOF_VOID_P. This fixes #2670. See also https://bugs.python.org/issue35037 https://bugs.python.org/issue4709
* Initial (incomplete) attempt at supporting the Py3.7 exception state stack.Stefan Behnel2018-09-151-0/+7
|
* Try to call "__rmod__()" during string %-formatting when the right side is a ↵Stefan Behnel2018-09-081-2/+3
| | | | | | string subtype that implements it. See https://bugs.python.org/issue28598
* Clarify import error message: subinterpreters are supported, just not more ↵Stefan Behnel2018-08-251-1/+2
| | | | than one.
* Raise a more appropriate ImportError rather than a generic RuntimeError when ↵Stefan Behnel2018-08-251-1/+1
| | | | trying to re-import a Cython module in a different subinterpreter with PEP-489.
* Implement safe-guard to prevent loading Cython modules into multiple ↵Stefan Behnel2018-08-251-0/+27
| | | | subinterpreters.
* make the fast-call signature test compatible with Stackless PythonAnselm Kruis2018-08-131-1/+6
| | | | Add METH_STACKLESS to the bit mask used to test the call signature.
* Merge pull request #2537 from jakirkham/extern_py_raw_memscoder2018-08-111-0/+6
|\ | | | | Add Python Raw memory helper functions
| * Tweak Raw memory macros' version constraintJohn Kirkham2018-08-091-1/+1
| | | | | | | | | | Technically these functions were around in some of the Python 3.4 prereleases. So add a more accurate version constraint.
| * Define Python Raw Mem helpers in ModuleSetupCodeJohn Kirkham2018-08-091-0/+6
| | | | | | | | | | | | To handle the Python version differences, handle the definitions of `PyMem_Raw*` functions in `ModuleSetupCode`. Then extern them in `cpython.mem` without using a version check or a specific header.
* | Enable PEP-489 multi-phase module initialisation, now that re-imports are ↵Stefan Behnel2018-08-101-3/+1
| | | | | | | | handled with an error.
* | Revert PEP-489 behaviour, but keep error raising code to make it easy to try ↵Stefan Behnel2018-08-101-1/+3
| | | | | | | | both.
* | Enable PEP-489 module initialisation again, but raise an error on re-inits.Stefan Behnel2018-08-101-3/+1
|/
* Replace GCC's attribute optimize("Os") by the better supported and similar ↵Stefan Behnel2018-07-221-3/+2
| | | | | | (cold). Closes #2494.
* Merge branch '0.28.x'Stefan Behnel2018-06-261-3/+11
|\
| * Add safety checks to prevent exception subtype checks with non-types. This ↵Stefan Behnel2018-06-261-3/+11
| | | | | | | | raises a TypeError in Py3 now and we should handle that at some point.
* | Merge branch '0.28.x'Stefan Behnel2018-06-261-0/+25
|\ \ | |/
| * Correct the runtime handling of exception tuples in except clauses.Stefan Behnel2018-06-261-0/+25
| | | | | | | | Closes #2425.
* | Adapt some non-const C-API declarations that were already constified in Py2.5.Stefan Behnel2018-05-261-2/+2
| |
* | Remove redundant helper function "__Pyx_ImportModule()" which was only ↵Stefan Behnel2018-05-261-8/+6
| | | | | | | | needed in Py<2.6 when PyObject_GetAttrString() and PyImport_ImportModule() did not take const string arguments.
* | Mark several one-time functions (used during module init) with ↵Stefan Behnel2018-05-251-13/+16
| | | | | | | | CYTHON_SMALL_CODE to reduce their binary code impact on the overall module size.
* | Merge branch '0.28.x'Stefan Behnel2018-05-181-1/+2
|\ \ | |/
| * Avoid segfault due to a bug in g++ 4.4.7 when the -Os setting for the module ↵Stefan Behnel2018-05-181-1/+2
| | | | | | | | | | | | init function is enabled. Closes #2235.
* | Merge branch '0.28.x'Stefan Behnel2018-05-181-0/+1
|\ \ | |/
| * Prevent UnicodeEncodeError in Py2 when ``%s`` formatting is optimised for ↵Stefan Behnel2018-05-181-0/+1
| | | | | | | | unicode strings.
* | Add obvious branch hint to dict caching macro.Stefan Behnel2018-05-051-1/+1
| |
* | Use dict versioning in Py3.6+ to make the lookup of Python module globals ↵Stefan Behnel2018-05-041-0/+4
| | | | | | | | almost as fast as C globals.
* | Use dict versioning in Py3.6+ to reduce the overhead of checking for the ↵Stefan Behnel2018-05-031-0/+24
|/ | | | "C-line in tracebacks" runtime option.
* In Python 3, an unbound method is just the functionJeroen Demeyer2018-02-151-1/+1
|
* Explicitly disable CYTHON_SMALL_CODE in clang.Stefan Behnel2018-02-141-1/+3
|
* Allow users to override the CYTHON_SMALL_CODE macro.Stefan Behnel2018-02-141-0/+2
|
* Optimise the module init function for small code size regardless of the ↵Stefan Behnel2018-02-141-0/+6
| | | | | | externally provided CFLAGS. See #2102.
* Reduce code overhead a little using a macro to get the sequence length of ↵Stefan Behnel2018-01-131-0/+7
| | | | builtins.
* Extract some generated plain code into a utility code file to make it more ↵Stefan Behnel2018-01-051-0/+14
| | | | visible and editable.
* Follow another fast-call signature change in CPython 3.7.Stefan Behnel2017-12-151-4/+8
| | | | https://bugs.python.org/issue32240
* Guard access to internal Unicode hash value with the correct macro.Stefan Behnel2017-11-051-1/+1
|
* Improve preprocessor guard for new TSS API.Stefan Behnel2017-11-011-1/+1
|
* Add PythonCompatibility Codes for TSS (Thread Specific Storage) APIsonots2017-10-311-0/+34
|
* Move CYTHON_NO_PYINIT_EXPORT utility code into external file to avoid ↵Stefan Behnel2017-10-281-0/+23
| | | | lengthy chain of plain text code generation.
* Merge branch '0.27.x'Stefan Behnel2017-10-201-3/+12
|\
| * PyPy3: Register module cleanup with atexit (PyModuleDef.m_free is not used)dalcinl/fix-module-cleanupLisandro Dalcin2017-10-181-2/+2
| |
| * Fix definition CYTHON_FALLTHROUGH in module setup utility codeLisandro Dalcin2017-10-151-1/+10
| |
* | Split Python compatibility adaptation code out of ModulePreamble section and ↵Stefan Behnel2017-10-201-161/+164
| | | | | | | | into its own separate section to allow moving it around and support using CYTHON_INLINE etc. in it.
* | Merge branch '0.27.x'Stefan Behnel2017-10-141-1/+1
|\ \ | |/
| * Tighten preprocessor check that avoids the "fallthrough" C compiler warnings.Stefan Behnel2017-10-141-1/+1
| | | | | | | | Closes #1930.
* | Merge branch '0.27.x'Stefan Behnel2017-10-141-3/+1
|\ \ | |/
| * Simplify preprocessor code that avoids the "fallthrough" C compiler ↵Stefan Behnel2017-10-141-3/+1
| | | | | | | | | | | | warnings, assuming that "__has_attribute()" is widely supported these days. At least GCC 5.x and clang seem to have it. Closes #1930.
* | Merge branch '0.27.x'Stefan Behnel2017-10-141-2/+4
|\ \ | |/
| * Fix compiler warnings in clang and C++ about unknown "fallthrough" attribute.Stefan Behnel2017-10-141-2/+4
| | | | | | | | Closes #1930.