summaryrefslogtreecommitdiff
path: root/Cython/Utility/CythonFunction.c
Commit message (Collapse)AuthorAgeFilesLines
* replace generic "COMPILING_IN_*" C macros with feature specific guards that ↵Stefan Behnel2016-07-301-10/+10
| | | | allow a more fine-grained adaptation to C-API implementations
* generally #define PyObject_Malloc() and friends to their PyMem_*() ↵Stefan Behnel2016-03-171-8/+0
| | | | counterparts in PyPy
* fall back to PyMem_Malloc() in PyPy (which doesn't have PyObject_Malloc() ↵Stefan Behnel2016-03-171-0/+8
| | | | and friends)
* use slightly faster PyObject_Malloc() instead of PyMem_Malloc() for small ↵Stefan Behnel2016-02-071-2/+2
| | | | memory allocation needs (<= 512 bytes)
* split Cython's Generator type into separate Coroutine and Generator types to ↵Stefan Behnel2015-05-231-2/+2
| | | | prepare PEP 492 implementation
* Merge branch '0.22.x'Stefan Behnel2015-05-031-7/+11
|\ | | | | | | | | | | Conflicts: Cython/Utility/CythonFunction.c Cython/Utility/Generator.c
| * fix some cases where errors in IsInstance()/IsSubtype() calls were not handledStefan Behnel2015-05-031-7/+11
| |
* | even static methods need their closure class in pypyStefan Behnel2015-04-121-1/+1
| |
* | avoid dependency on pypy C-API functions in CyFunction_Call()Stefan Behnel2015-04-111-3/+3
| |
* | pypy: avoid borrowed references and improve error handling where it differs ↵Stefan Behnel2015-04-111-20/+68
|/ | | | from CPython
* remove leftover 2.5 compatibility codeLars Buitinck2014-12-231-4/+0
|
* escape two more places where '%zd' is usedStefan Behnel2014-10-291-2/+2
|
* fix PyMethod_New() in pypy3Stefan Behnel2014-10-081-3/+2
|
* Get rid of obsolete Python cruftLisandro Dalcin2014-08-311-5/+5
| | | | | | | * Remove macros __Pyx_{NAME|DOC}STR * Remove macros __Pyx_{Get|Set|Del}AttrString * Remove macro __Pyx_PyIndex_Check * Remove workaround for missing BaseException in builtins
* fix accidental argument name reuse in C macroStefan Behnel2014-08-081-6/+7
|
* fix Py3.5 support: PyCFunction is now weak referencible itself, need to ↵Stefan Behnel2014-08-081-3/+15
| | | | remove it from CyFunction
* clean up C comments in CyFunction/Generator utility code files to avoid ↵Stefan Behnel2014-08-021-28/+34
| | | | writing them out
* fix typosStefan Behnel2014-08-021-1/+1
|
* Merge pull request #275 from cython/no-old-pythonscoder2014-03-221-4/+0
|\ | | | | Get rid of obsolete Python cruft.
| * Restore some over-eager 3.1 removals.Robert Bradshaw2014-02-221-0/+4
| |
| * More obsolete code removal.Robert Bradshaw2014-02-221-4/+0
| |
| * Remove obsolete utility code.Robert Bradshaw2014-02-221-4/+0
| |
* | remove reference to unused utility codeStefan Behnel2014-02-261-1/+1
|/
* get rid of __signature__ property for cyfunctions again as inspect.py in ↵Stefan Behnel2014-02-221-27/+27
| | | | Py3.4 can do the same thing more efficiently all by itself now (only commenting it out because it could potentially become a feature again at some point)
* fix typoStefan Behnel2014-02-141-1/+1
|
* avoid C compiler warning about unused helper function in Py<3.4Stefan Behnel2014-02-141-2/+1
|
* support __signature__ property on CyFunction in Py3.4Stefan Behnel2014-02-141-0/+30
|
* improve alignment in __pyx_CyFunctionObject structStefan Behnel2014-02-021-1/+1
|
* Backed out changeset 6bf1959d8f95Stefan Behnel2014-02-021-4/+0
|
* make CyFunction's inheritance from PyCFunction visible at the Python level ↵Stefan Behnel2014-02-011-0/+4
| | | | | | | to let inspect.isbuiltin(cyfunction) return True --HG-- extra : transplant_source : %8D%99%BA%9D%13e%1E%9E%A8%88%9D%88m%F4D%DFw_%2B%F2
* clean up lots of places where exceptions are being raised to reduce the ↵Stefan Behnel2013-12-061-5/+5
| | | | message building overhead
* Correct globals for shared function types.Robert Bradshaw2013-08-151-19/+21
|
* Use shared module for more Cython types.Robert Bradshaw2013-08-121-9/+4
|
* Share common type object for Cython functions.Robert Bradshaw2013-08-111-0/+7
|
* fix CPython version check for tp_finalize()Stefan Behnel2013-08-061-2/+2
|
* revert actual tp_finalize() usages, needs more thoughtStefan Behnel2013-08-061-2/+2
|
* fix CPython version checking for tp_finalize()Stefan Behnel2013-08-041-2/+2
|
* adapt more type structs to Py3.4Stefan Behnel2013-08-031-0/+6
|
* implement __annotations__ attribute on CyFunction (PEP 3107)Stefan Behnel2013-03-291-3/+44
|
* implement __kwdefaults__ for CyFunctionStefan Behnel2013-03-291-17/+88
|
* Remove duplicate DECREF, tp_clear does it alreadyPauli Virtanen2013-03-171-1/+0
|
* Fix fused tp_clear function prototypeMark Florisson2013-03-171-1/+1
|
* Properly decref objects held by fused functionsMark Florisson2013-03-171-1/+2
|
* replace lots of dynamically created string constants in utility code by ↵Stefan Behnel2013-02-121-1/+1
| | | | static Python constants
* Fully initialize allocated memory.J Robert Ray2013-02-071-1/+1
| | | | | | | | | | | | | | | | | __pyx_CyFunctionObject.defaults must be fully zeroed or a segfault or memory corruption may occur if the object is visited by the garbage collector before defaults is later populated. Uninitialized memory is cast to PyObject* with undefined results: static int __Pyx_CyFunction_traverse(__pyx_CyFunctionObject *m, visitproc visit, void *arg) { ... if (m->defaults) { PyObject **pydefaults = __Pyx_CyFunction_Defaults(PyObject *, m); int i; for (i = 0; i < m->defaults_pyobjects; i++) Py_VISIT(pydefaults[i]); ^^^^^^^^^^^^^
* safety fixes and a little branch prediction helping in CyFunction utility codeStefan Behnel2013-01-061-21/+25
|
* implement __qualname__ special attribute on Python functions/classes (PEP 3155)Stefan Behnel2013-01-041-14/+48
|
* Fix fused types delimiter, add pure-mode memoryview syntax like ↵Mark Florisson2012-11-041-1/+1
| | | | cython.double[:, :]
* minor code simplificationStefan Behnel2012-07-081-1/+2
|
* avoid a useless level of indirection for CyFunction.tp_call() in CPythonStefan Behnel2012-07-081-0/+4
|