Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | Remove support for Py2.6 and various quirks that special-cased it.gh2692_remove_py26_support | Stefan Behnel | 2018-10-30 | 1 | -21/+4 |
| | | | | Closes #2692. | ||||
* | Workaround for long internals misconfiguration on 64-bit MinGW. | Robert Bradshaw | 2018-10-24 | 1 | -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 Behnel | 2018-09-15 | 1 | -0/+7 |
| | |||||
* | Try to call "__rmod__()" during string %-formatting when the right side is a ↵ | Stefan Behnel | 2018-09-08 | 1 | -2/+3 |
| | | | | | | string subtype that implements it. See https://bugs.python.org/issue28598 | ||||
* | Clarify import error message: subinterpreters are supported, just not more ↵ | Stefan Behnel | 2018-08-25 | 1 | -1/+2 |
| | | | | than one. | ||||
* | Raise a more appropriate ImportError rather than a generic RuntimeError when ↵ | Stefan Behnel | 2018-08-25 | 1 | -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 Behnel | 2018-08-25 | 1 | -0/+27 |
| | | | | subinterpreters. | ||||
* | make the fast-call signature test compatible with Stackless Python | Anselm Kruis | 2018-08-13 | 1 | -1/+6 |
| | | | | Add METH_STACKLESS to the bit mask used to test the call signature. | ||||
* | Merge pull request #2537 from jakirkham/extern_py_raw_mem | scoder | 2018-08-11 | 1 | -0/+6 |
|\ | | | | | Add Python Raw memory helper functions | ||||
| * | Tweak Raw memory macros' version constraint | John Kirkham | 2018-08-09 | 1 | -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 ModuleSetupCode | John Kirkham | 2018-08-09 | 1 | -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 Behnel | 2018-08-10 | 1 | -3/+1 |
| | | | | | | | | handled with an error. | ||||
* | | Revert PEP-489 behaviour, but keep error raising code to make it easy to try ↵ | Stefan Behnel | 2018-08-10 | 1 | -1/+3 |
| | | | | | | | | both. | ||||
* | | Enable PEP-489 module initialisation again, but raise an error on re-inits. | Stefan Behnel | 2018-08-10 | 1 | -3/+1 |
|/ | |||||
* | Replace GCC's attribute optimize("Os") by the better supported and similar ↵ | Stefan Behnel | 2018-07-22 | 1 | -3/+2 |
| | | | | | | (cold). Closes #2494. | ||||
* | Merge branch '0.28.x' | Stefan Behnel | 2018-06-26 | 1 | -3/+11 |
|\ | |||||
| * | Add safety checks to prevent exception subtype checks with non-types. This ↵ | Stefan Behnel | 2018-06-26 | 1 | -3/+11 |
| | | | | | | | | raises a TypeError in Py3 now and we should handle that at some point. | ||||
* | | Merge branch '0.28.x' | Stefan Behnel | 2018-06-26 | 1 | -0/+25 |
|\ \ | |/ | |||||
| * | Correct the runtime handling of exception tuples in except clauses. | Stefan Behnel | 2018-06-26 | 1 | -0/+25 |
| | | | | | | | | Closes #2425. | ||||
* | | Adapt some non-const C-API declarations that were already constified in Py2.5. | Stefan Behnel | 2018-05-26 | 1 | -2/+2 |
| | | |||||
* | | Remove redundant helper function "__Pyx_ImportModule()" which was only ↵ | Stefan Behnel | 2018-05-26 | 1 | -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 Behnel | 2018-05-25 | 1 | -13/+16 |
| | | | | | | | | CYTHON_SMALL_CODE to reduce their binary code impact on the overall module size. | ||||
* | | Merge branch '0.28.x' | Stefan Behnel | 2018-05-18 | 1 | -1/+2 |
|\ \ | |/ | |||||
| * | Avoid segfault due to a bug in g++ 4.4.7 when the -Os setting for the module ↵ | Stefan Behnel | 2018-05-18 | 1 | -1/+2 |
| | | | | | | | | | | | | init function is enabled. Closes #2235. | ||||
* | | Merge branch '0.28.x' | Stefan Behnel | 2018-05-18 | 1 | -0/+1 |
|\ \ | |/ | |||||
| * | Prevent UnicodeEncodeError in Py2 when ``%s`` formatting is optimised for ↵ | Stefan Behnel | 2018-05-18 | 1 | -0/+1 |
| | | | | | | | | unicode strings. | ||||
* | | Add obvious branch hint to dict caching macro. | Stefan Behnel | 2018-05-05 | 1 | -1/+1 |
| | | |||||
* | | Use dict versioning in Py3.6+ to make the lookup of Python module globals ↵ | Stefan Behnel | 2018-05-04 | 1 | -0/+4 |
| | | | | | | | | almost as fast as C globals. | ||||
* | | Use dict versioning in Py3.6+ to reduce the overhead of checking for the ↵ | Stefan Behnel | 2018-05-03 | 1 | -0/+24 |
|/ | | | | "C-line in tracebacks" runtime option. | ||||
* | In Python 3, an unbound method is just the function | Jeroen Demeyer | 2018-02-15 | 1 | -1/+1 |
| | |||||
* | Explicitly disable CYTHON_SMALL_CODE in clang. | Stefan Behnel | 2018-02-14 | 1 | -1/+3 |
| | |||||
* | Allow users to override the CYTHON_SMALL_CODE macro. | Stefan Behnel | 2018-02-14 | 1 | -0/+2 |
| | |||||
* | Optimise the module init function for small code size regardless of the ↵ | Stefan Behnel | 2018-02-14 | 1 | -0/+6 |
| | | | | | | externally provided CFLAGS. See #2102. | ||||
* | Reduce code overhead a little using a macro to get the sequence length of ↵ | Stefan Behnel | 2018-01-13 | 1 | -0/+7 |
| | | | | builtins. | ||||
* | Extract some generated plain code into a utility code file to make it more ↵ | Stefan Behnel | 2018-01-05 | 1 | -0/+14 |
| | | | | visible and editable. | ||||
* | Follow another fast-call signature change in CPython 3.7. | Stefan Behnel | 2017-12-15 | 1 | -4/+8 |
| | | | | https://bugs.python.org/issue32240 | ||||
* | Guard access to internal Unicode hash value with the correct macro. | Stefan Behnel | 2017-11-05 | 1 | -1/+1 |
| | |||||
* | Improve preprocessor guard for new TSS API. | Stefan Behnel | 2017-11-01 | 1 | -1/+1 |
| | |||||
* | Add PythonCompatibility Codes for TSS (Thread Specific Storage) API | sonots | 2017-10-31 | 1 | -0/+34 |
| | |||||
* | Move CYTHON_NO_PYINIT_EXPORT utility code into external file to avoid ↵ | Stefan Behnel | 2017-10-28 | 1 | -0/+23 |
| | | | | lengthy chain of plain text code generation. | ||||
* | Merge branch '0.27.x' | Stefan Behnel | 2017-10-20 | 1 | -3/+12 |
|\ | |||||
| * | PyPy3: Register module cleanup with atexit (PyModuleDef.m_free is not used)dalcinl/fix-module-cleanup | Lisandro Dalcin | 2017-10-18 | 1 | -2/+2 |
| | | |||||
| * | Fix definition CYTHON_FALLTHROUGH in module setup utility code | Lisandro Dalcin | 2017-10-15 | 1 | -1/+10 |
| | | |||||
* | | Split Python compatibility adaptation code out of ModulePreamble section and ↵ | Stefan Behnel | 2017-10-20 | 1 | -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 Behnel | 2017-10-14 | 1 | -1/+1 |
|\ \ | |/ | |||||
| * | Tighten preprocessor check that avoids the "fallthrough" C compiler warnings. | Stefan Behnel | 2017-10-14 | 1 | -1/+1 |
| | | | | | | | | Closes #1930. | ||||
* | | Merge branch '0.27.x' | Stefan Behnel | 2017-10-14 | 1 | -3/+1 |
|\ \ | |/ | |||||
| * | Simplify preprocessor code that avoids the "fallthrough" C compiler ↵ | Stefan Behnel | 2017-10-14 | 1 | -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 Behnel | 2017-10-14 | 1 | -2/+4 |
|\ \ | |/ | |||||
| * | Fix compiler warnings in clang and C++ about unknown "fallthrough" attribute. | Stefan Behnel | 2017-10-14 | 1 | -2/+4 |
| | | | | | | | | Closes #1930. |