summaryrefslogtreecommitdiffstats
path: root/Modules/_testcapimodule.c
Commit message (Collapse)AuthorAgeFilesLines
* Untabify C files. Will watch buildbots.Antoine Pitrou2010-05-091-1401/+1401
|
* Fix a couple of issues with the test_structmembersType class in _testcapimoduleMark Dickinson2010-04-031-10/+17
| | | | | | | | | | | | | - rename to _test_structmembersType to avoid the class being automatically called by test_capi - allow space for trailing NUL in inplace_member field of all_structmembers - use T_STRING_INPLACE instead of T_INPLACE_STRING as keyword argument to _test_structmembersType initializer - don't attempt to initialize inplace_member field if T_STRING_INPLACE argument wasn't supplied.
* give TypeError when trying to set T_STRING_INPLACEBenjamin Peterson2010-04-031-3/+14
|
* Backported PyCapsule from 3.1, and converted most uses ofLarry Hastings2010-03-251-0/+152
| | | | CObject to PyCapsule.
* Issue #7385: Fix a crash in `MemoryView_FromObject` whenAntoine Pitrou2010-02-021-0/+95
| | | | `PyObject_GetBuffer` fails. Patch by Florent Xicluna.
* be robust against test being run over and over (such as -R)Benjamin Peterson2010-01-301-3/+13
|
* move test outside WITH_THREAD sectionBenjamin Peterson2010-01-301-2/+3
|
* Issue #7767: Add new C-API function PyLong_AsLongLongAndOverflow, aMark Dickinson2010-01-301-0/+167
| | | | | long long variant of PyLong_AsLongAndOverflow. Patch by Case Van Horsen.
* #7033: add new API function PyErr_NewExceptionWithDoc, for easily giving new ↵Georg Brandl2009-12-281-0/+22
| | | | exceptions a docstring.
* Additional edge-case tests for test_long_and_overflow.Mark Dickinson2009-12-211-16/+107
|
* Fix reference counts for test_long_and_overflow.Mark Dickinson2009-12-211-0/+6
|
* Issue #7528: Backport PyLong_AsLongAndOverflow from py3k to trunk.Mark Dickinson2009-12-211-0/+70
| | | | Thanks Case Van Horsen for the patch.
* Add missing tests for PyArg_Parse* with format 'h'Mark Dickinson2009-12-201-0/+10
|
* add a test of loading the datetime capiBenjamin Peterson2009-12-131-0/+16
|
* Issue #7228: Add '%lld' and '%llu' support to PyFormat_FromString,Mark Dickinson2009-11-151-0/+6
| | | | PyFormat_FromStringV and PyErr_Format.
* PyCode_NewEmpty:Jeffrey Yasskin2009-05-081-0/+16
| | | | | | | | Most uses of PyCode_New found by http://www.google.com/codesearch?q=PyCode_New are trying to build an empty code object, usually to put it in a dummy frame object. This patch adds a PyCode_NewEmpty wrapper which lets the user specify just the filename, function name, and first line number, instead of also requiring lots of code internals.
* tabify :(Benjamin Peterson2009-05-051-5/+5
|
* fix running test_capi with -R ::Benjamin Peterson2009-05-051-0/+9
| | | | Also, fix a refleak in the test that was preventing running. :)
* Issue 4474: On platforms with sizeof(wchar_t) == 4 andMark Dickinson2009-03-181-0/+43
| | | | | | | | | sizeof(Py_UNICODE) == 2, PyUnicode_FromWideChar now converts each character outside the BMP to the appropriate surrogate pair. Thanks Victor Stinner for the patch. (backport of r70452 from py3k to trunk)
* Issue 4293: Make Py_AddPendingCall() thread safeKristján Valur Jónsson2009-01-091-0/+38
| | | | Add test cases and documentation
* Just inserted blank line.Hirokazu Yamamoto2008-12-311-0/+1
|
* Fixed compile error on windows.Hirokazu Yamamoto2008-12-311-1/+2
|
* Issue #4701: implicitly call PyType_Ready from PyObject_HashNick Coghlan2008-12-301-0/+101
|
* make global staticBenjamin Peterson2008-12-231-1/+1
|
* use a global variable, so the compiler doesn't optimize the assignment outBenjamin Peterson2008-12-231-2/+3
|
* silence compiler warningBenjamin Peterson2008-12-221-0/+1
|
* fix #4720: the format to PyArg_ParseTupleAndKeywords can now start with '|'Benjamin Peterson2008-12-221-0/+27
|
* #4122: On Windows, Py_UNICODE_ISSPACE cannot be used in an extension module:Amaury Forgeot d'Arc2008-10-141-0/+4
| | | | | | compilation fails with "undefined reference to _Py_ascii_whitespace" Will backport to 2.6.
* #3643 add a few more checks to _testcapi to prevent segfaultsBenjamin Peterson2008-08-231-4/+20
| | | | | Author: Victor Stinner Reviewer: Benjamin Peterson
* Added garbage collector overhead and optional default return value toRobert Schuppenies2008-07-101-0/+1
| | | | sys.getsizeof.
* This reverts r63675 based on the discussion in this thread:Gregory P. Smith2008-06-091-3/+3
| | | | | | | http://mail.python.org/pipermail/python-dev/2008-June/079988.html Python 2.6 should stick with PyString_* in its codebase. The PyBytes_* names in the spirit of 3.0 are available via a #define only. See the email thread.
* Renamed PyString to PyBytesChristian Heimes2008-05-261-3/+3
|
* Rename the test_traceback_print() function to traceback_print() to preventBrett Cannon2008-04-281-3/+3
| | | | test_capi from automatically calling the function.
* Fix a bug introduced by the warnings rewrite where tracebacks were beingBrett Cannon2008-04-281-0/+19
| | | | | | improperly indented. Closes issue #2699.
* Patch #1691070 from Roger Upole: Speed up PyArg_ParseTupleAndKeywords() and ↵Christian Heimes2008-02-261-0/+18
| | | | | | improve error msg My tests don't show the promised speed up of 10%. The code is as fast as the old code for simple cases and slightly faster for complex cases with several of args and kwargs. But the patch simplifies the code, too.
* Reformat some ugly code.Georg Brandl2008-01-211-26/+39
|
* Patch #1720595: add T_BOOL to the range of structmember types.Georg Brandl2008-01-211-2/+5
| | | | Patch by Angelo Mottola, reviewed by MvL, tests by me.
* #1629: Renamed Py_Size, Py_Type and Py_Refcnt to Py_SIZE, Py_TYPE and ↵Christian Heimes2007-12-191-1/+1
| | | | Py_REFCNT. Macros for b/w compatibility are available.
* PEP 3123: Provide forward compatibility with Python 3.0, while keepingMartin v. Löwis2007-07-211-3/+2
| | | | | backwards compatibility. Add Py_Refcnt, Py_Type, Py_Size, and PyVarObject_HEAD_INIT.
* Patch #1733960: Allow T_LONGLONG to accept ints.Martin v. Löwis2007-06-091-3/+27
| | | | Will backport to 2.5.
* Fix crash in test on HP-UX. Apparently, it's not possible to delete a lock ifNeal Norwitz2006-10-281-0/+3
| | | | | | it's held (even by the current thread). Will backport.
* Get DBL_MAX from float.h not values.h. Will backport.Martin v. Löwis2006-10-271-3/+1
|
* Check for values.h. Will backport.Martin v. Löwis2006-10-271-0/+2
|
* Patch #1549049: Rewrite type conversion in structmember.Martin v. Löwis2006-10-271-8/+121
| | | | Fixes #1545696 and #1566140. Will backport to 2.5.
* Change fix for segfaulting property(), add a NEWS entry and a test.Georg Brandl2006-08-041-0/+9
|
* Part of bug #1523610: fix miscalculation of buffer length.Georg Brandl2006-07-261-0/+11
| | | | | Also add a guard against NULL in converttuple and add a test case (that previously would have crashed).
* Remove lie in new comment.Tim Peters2006-05-131-3/+1
|
* Teach PyString_FromFormat, PyErr_Format, and PyString_FromFormatVTim Peters2006-05-131-4/+43
| | | | | | | | | | | | about "%u", "%lu" and "%zu" formats. Since PyString_FromFormat and PyErr_Format have exactly the same rules (both inherited from PyString_FromFormatV), it would be good if someone with more LaTeX Fu changed one of them to just point to the other. Their docs were way out of synch before this patch, and I just did a mass copy+paste to repair that. Not a backport candidate (this is a new feature).
* correct function signatureSkip Montanaro2006-04-181-1/+1
|
* Add a test for Py_ssize_t. Correct typo in getargs.c.Georg Brandl2006-04-131-11/+21
|