summaryrefslogtreecommitdiff
path: root/Cython/Utility/ModuleSetupCode.c
Commit message (Collapse)AuthorAgeFilesLines
...
* Fix #if-#elif-#endif structure.Stefan Behnel2017-09-251-1/+1
|
* Remove duplicate code for fast access to PyThreadState.Stefan Behnel2017-09-251-1/+2
|
* Avoid depending on CPython micro level versions at compile time. Compiling ↵Stefan Behnel2017-09-251-2/+3
| | | | | | against 3.5.2 does not guarantee that we never get imported on 3.5.1. Closes #1880.
* Avoid calling _PyDict_NewPresized() for len(dict) <=8, which is the minimum ↵Stefan Behnel2017-09-151-1/+1
| | | | dict size in CPython.
* Avoid dict resizing while creating fixed-size dicts.Stefan Behnel2017-09-141-0/+6
|
* Add flag CYTHON_USE_TP_FINALIZEto control whether tp_finalize is used.Ronan Lamy2017-09-131-0/+7
| | | | Disable it on pypy3, since it doesn't support PEP 442 yet.
* Enable CYTHON_USE_ASYNC_SLOTS on pypy3.5Ronan Lamy2017-09-131-2/+6
|
* Move future division #defines out of ModuleNode.py.Stefan Behnel2017-09-051-0/+8
|
* Correct CPython version check: _PyThreadState_UncheckedGet() was not added ↵Stefan Behnel2017-09-021-1/+1
| | | | before 3.5.2.
* Remove support and special handling code for Py3.2.Stefan Behnel2017-08-251-1/+1
|
* Allow C++ classes to have Python object members.Robert Bradshaw2017-08-251-0/+3
|
* use slightly faster thread state access where we know that we own the GILStefan Behnel2017-08-121-8/+11
|
* Merge pull request #1794 from scoder/pep489_multi_phase_initscoder2017-08-091-0/+53
|\ | | | | implement PEP 489 multi-phase module initialisation in Py3.5+
| * silence C compiler warning about unused argumentStefan Behnel2017-07-231-1/+1
| |
| * remove redundant C defines around helper code (already applied where helper ↵Stefan Behnel2017-07-231-2/+2
| | | | | | | | is used)
| * implement PEP 489 multi-phase module initialisation in Py3.5+Stefan Behnel2017-07-221-0/+53
| |
* | Merge pull request #1802 from scoder/_pep525_async_genscoder2017-08-091-5/+110
|\ \ | | | | | | PEP 525: asynchronous generators
| * | do not call PyObject_IsSubclass() with an exception set (instead rely on it ↵Stefan Behnel2017-08-011-3/+2
| | | | | | | | | | | | being cleared when printing it before)
| * | reduce amount of casts in helper codeStefan Behnel2017-08-011-10/+10
| | |
| * | fix argument types in call to PyErr_WriteUnraisable()Stefan Behnel2017-08-011-2/+2
| | |
| * | fix argument types in call to PyObject_IsSubclass()Stefan Behnel2017-08-011-2/+2
| | |
| * | speed up type checks, especially for exceptions (which are used a lot in ↵Stefan Behnel2017-07-311-1/+105
| | | | | | | | | | | | yield/await)
| * | solve most of the issues with failing async-gen tests, some asyncio tests ↵Stefan Behnel2017-07-291-4/+6
| | | | | | | | | | | | are still failing
* | | remove duplicated "IsLittleEndian" helper (already exists in ↵Stefan Behnel2017-08-011-2/+2
|/ / | | | | | | ModuleSetupCode.c now)
* | use a dedicated macro to guard calls to _PyType_Lookup()Stefan Behnel2017-07-261-0/+11
|/
* Merge branch 'release'Robert Bradshaw2017-07-141-3/+13
|\
| * Fix (still unused by default) fast GIL sharing.Robert Bradshaw2017-07-141-3/+13
| |
* | add link to CPython issue in comment for future referenceStefan Behnel2017-07-131-1/+1
| |
* | Merge branch '_METH_FASTCALL_py37'Stefan Behnel2017-07-131-6/+11
|\ \ | |/ |/|
| * adapt METH_FASTCALL handling to signature change of _PyCFunctionFast() in Py3.7Stefan Behnel2017-07-091-6/+11
| |
* | Isolate C++ fallthrough detection.Robert Bradshaw2017-07-101-8/+14
| |
* | First attempt at explicit fallthrough annotation.Robert Bradshaw2017-07-081-0/+21
|/
* Suppress unreachable code warning on clang.Robert Bradshaw2017-07-031-1/+1
|
* Conditionally use FastGil utility code.Robert Bradshaw2017-07-031-0/+5
|
* Fix warning.Robert Bradshaw2017-06-291-1/+1
|
* Add missing static declarations.Robert Bradshaw2017-06-291-2/+2
|
* Another Python 3.3-3.4 fix.Robert Bradshaw2017-06-291-1/+1
|
* Allow cached threadstate to persist within nogil blocks.Robert Bradshaw2017-06-291-14/+31
|
* Avoid PyCapsule_Import for Python 2.6Robert Bradshaw2017-06-291-0/+4
|
* Fix actual method name for getting thread state.Robert Bradshaw2017-06-291-1/+1
|
* Fixes for other Python versions.Robert Bradshaw2017-06-291-1/+13
|
* Fix pedantic compiler error.Robert Bradshaw2017-06-291-1/+2
|
* Add an optimization for re-aquiring the GIL.Robert Bradshaw2017-06-291-0/+130
|
* Add a Pythran backend for Numpy operationAdrien Guinet2017-06-171-0/+29
| | | | | | | | | | | | 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.
* Excape comma in dll_linkage macros.Robert Bradshaw2017-02-251-0/+3
| | | | | | This allows return types such as std::map<K, V>. Fixes #1599
* Allow taking address of fake references.Robert Bradshaw2016-11-151-0/+1
| | | | This fixes #1519.
* Suppress unused function warnings for Clang.Robert Bradshaw2016-11-151-2/+8
| | | | | | | | | | Cython uses many static inline utility functions. Most compilers don't emit warnings for such functions, but Clang does if they're not defined in header files. As such functions are often defined as a group (e.g. utility code for a specific type) it would be cumbersome to thin them out to those that happen to actually get used. Instead, simply suppress this warning for this compiler for all inline functions.
* Suppress self-assignment warning.Robert Bradshaw2016-11-151-0/+8
|
* Remove superfluous semicolons.Robert Bradshaw2016-11-141-2/+2
| | | | This closes #1522.
* Merge pull request #1503 from jdemeyer/cython_unusedscoder2016-10-291-23/+23
|\ | | | | Move CYTHON_UNUSED macro up such that included files can use it