summaryrefslogtreecommitdiff
path: root/Cython/Utility/ModuleSetupCode.c
Commit message (Collapse)AuthorAgeFilesLines
...
* 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.
* | Speed up some dict lookups in Py3.5+ by calling the faster ↵Stefan Behnel2017-10-081-0/+6
|/ | | | "_PyDict_GetItem_KnownHash()" instead of "PyDict_GetItem()".
* Fix typo.Stefan Behnel2017-09-281-1/+1
|
* Enforce single module initialisation despite PEP 489 allowing to re-execute ↵Stefan Behnel2017-09-281-0/+4
| | | | a module.
* Disable PEP-489 support by default (*sigh*). It actually requires more than ↵Stefan Behnel2017-09-271-1/+3
| | | | | | Cython currently implements: sub-interpreter support and reloading support, i.e. per-interpreter module globals/types/state. Closes #1894.
* 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
|