Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | closes bpo-39736: const strings in Modules/_datetimemodule.c and ↵ | Andy Lester | 2020-02-24 | 1 | -1/+1 |
| | | | | Modules/_testbuffer.c (GH-18637) | ||||
* | bpo-39573: Clean up modules and headers to use Py_IS_TYPE() function (GH-18521) | Dong-hee Na | 2020-02-17 | 1 | -1/+1 |
| | |||||
* | bpo-39573: Add Py_SET_TYPE() function (GH-18394) | Victor Stinner | 2020-02-07 | 1 | -2/+2 |
| | | | Add Py_SET_TYPE() function to set the type of an object. | ||||
* | bpo-39573: Use Py_TYPE() macro in Modules directory (GH-18393) | Victor Stinner | 2020-02-07 | 1 | -1/+1 |
| | | | Replace direct access to PyObject.ob_type with Py_TYPE(). | ||||
* | bpo-36974: tp_print -> tp_vectorcall_offset and tp_reserved -> tp_as_async ↵ | Jeroen Demeyer | 2019-05-31 | 1 | -4/+4 |
| | | | | | | | | | (GH-13464) Automatically replace tp_print -> tp_vectorcall_offset tp_compare -> tp_as_async tp_reserved -> tp_as_async | ||||
* | bpo-33029: Fix signatures of getter and setter functions. (GH-10746) | Serhiy Storchaka | 2018-11-27 | 1 | -3/+1 |
| | | | Fix also return type for few other functions (clear, releasebuffer). | ||||
* | bpo-33012: Fix invalid function cast warnings with gcc 8. (GH-6749) | Serhiy Storchaka | 2018-11-27 | 1 | -1/+1 |
| | | | | | | Fix invalid function cast warnings with gcc 8 for method conventions different from METH_NOARGS, METH_O and METH_VARARGS excluding Argument Clinic generated code. | ||||
* | bpo-34201: Make ndarray.readonly a bool and use stricter tests in ↵ | Serhiy Storchaka | 2018-07-26 | 1 | -1/+1 |
| | | | | test_buffer. (GH-8414) | ||||
* | Make various internal _testbuffer symbols static. (GH-8160) | Benjamin Peterson | 2018-07-07 | 1 | -4/+4 |
| | |||||
* | bpo-33012: Fix invalid function cast warnings with gcc 8 for METH_NOARGS. ↵ | Siddhesh Poyarekar | 2018-04-29 | 1 | -2/+2 |
| | | | | | | | | | (GH-6030) METH_NOARGS functions need only a single argument but they are cast into a PyCFunction, which takes two arguments. This triggers an invalid function cast warning in gcc8 due to the argument mismatch. Fix this by adding a dummy unused argument. | ||||
* | Expand the PySlice_GetIndicesEx macro. (#1023) | Serhiy Storchaka | 2017-04-08 | 1 | -3/+4 |
| | |||||
* | Add comment why the change in d83884b3a427 wasn't necessary. | Stefan Krah | 2017-01-08 | 1 | -0/+1 |
| | |||||
* | Revert part of 3cb3e224b692 in code that I maintain. | Stefan Krah | 2017-01-08 | 1 | -1/+1 |
| | |||||
* | Issue #25923: Added the const qualifier to static constant arrays. | Serhiy Storchaka | 2015-12-25 | 1 | -1/+1 |
| | |||||
* | Removed unintentional trailing spaces in non-external and non-generated C files. | Serhiy Storchaka | 2015-03-18 | 1 | -4/+4 |
| | |||||
* | Issue #23446: Use PyMem_New instead of PyMem_Malloc to avoid possible integer | Serhiy Storchaka | 2015-02-16 | 1 | -1/+1 |
|\ | | | | | | | overflows. Added few missed PyErr_NoMemory(). | ||||
| * | Issue #23446: Use PyMem_New instead of PyMem_Malloc to avoid possible integer | Serhiy Storchaka | 2015-02-16 | 1 | -1/+1 |
| | | | | | | | | overflows. Added few missed PyErr_NoMemory(). | ||||
* | | Issue #22445: PyBuffer_IsContiguous() now implements precise contiguity | Stefan Krah | 2015-02-01 | 1 | -17/+36 |
|/ | | | | | tests, compatible with NumPy's NPY_RELAXED_STRIDES_CHECKING compilation flag. Previously the function reported false negatives for corner cases. | ||||
* | Re #18521: fix not-quite-C syntax that works only because the PyXXX_Check ↵ | Georg Brandl | 2013-10-14 | 1 | -1/+1 |
| | | | | are macros defined with () around them. | ||||
* | Issue #17917: Use PyModule_AddIntMacro() instead of PyModule_AddIntConstant() | Charles-Francois Natali | 2013-05-20 | 1 | -30/+30 |
| | | | | when applicable. | ||||
* | _testbuffer.c: In all current use cases of cmp_structure() dest->format and | Stefan Krah | 2012-09-06 | 1 | -3/+2 |
| | | | | | src->format are either both NULL or both non-NULL. However, it is safer to generalize the function. Found by Coverity. | ||||
* | Issue #15770: Check invalid arguments in test function. Patch by Victor Stinner. | Stefan Krah | 2012-08-23 | 1 | -2/+14 |
| | |||||
* | Issue #12834: Fix PyBuffer_ToContiguous() for non-contiguous arrays. | Stefan Krah | 2012-07-28 | 1 | -0/+44 |
| | |||||
* | Issue #14779: Get sizeof(void *) directly rather than relying on sysconfig. | Stefan Krah | 2012-05-16 | 1 | -0/+7 |
| | |||||
* | Issue #14181: Preserve backwards compatibility for getbufferprocs that a) do | Stefan Krah | 2012-03-05 | 1 | -14/+15 |
| | | | | | not adhere to the new documentation and b) manage to clobber view->obj before returning failure. | ||||
* | Issue #14181: Test creating memoryviews from a static exporter with both | Stefan Krah | 2012-03-05 | 1 | -1/+125 |
| | | | | view.obj==NULL and view.obj==base. | ||||
* | Issue #14181: Allow memoryview construction from an object that uses the | Stefan Krah | 2012-03-05 | 1 | -10/+15 |
| | | | | getbuffer redirection scheme. | ||||
* | - Issue #10181: New memoryview implementation fixes multiple ownership | Stefan Krah | 2012-02-25 | 1 | -0/+2683 |
and lifetime issues of dynamically allocated Py_buffer members (#9990) as well as crashes (#8305, #7433). Many new features have been added (See whatsnew/3.3), and the documentation has been updated extensively. The ndarray test object from _testbuffer.c implements all aspects of PEP-3118, so further development towards the complete implementation of the PEP can proceed in a test-driven manner. Thanks to Nick Coghlan, Antoine Pitrou and Pauli Virtanen for review and many ideas. - Issue #12834: Fix incorrect results of memoryview.tobytes() for non-contiguous arrays. - Issue #5231: Introduce memoryview.cast() method that allows changing format and shape without making a copy of the underlying memory. |