summaryrefslogtreecommitdiffstats
path: root/Doc/c-api
Commit message (Collapse)AuthorAgeFilesLines
* Issue #15444: Use proper spelling for non-ASCII contributor names.Antoine Pitrou2012-08-111-1/+1
|\ | | | | | | Patch by Serhiy Storchaka.
| * Issue #15444: Use proper spelling for non-ASCII contributor names.Antoine Pitrou2012-08-111-1/+1
| | | | | | | | Patch by Serhiy Storchaka.
* | Issue #15610: The PyImport_ImportModuleEx macro now callsBrett Cannon2012-08-101-2/+4
| | | | | | | | | | | | | | | | | | PyImport_ImportModuleLevel() with a 'level' of 0 instead of -1 as the latter is no longer a valid value. Also added a versionchanged note for PyImport_ImportModuleLevel() just in case people don't make the connection between changes to __import__() and this C function.
* | fix docs for c-api memory functionsAndrew Svetlov2012-08-091-3/+3
|\ \ | |/
| * fix docs for c-api memory functionsAndrew Svetlov2012-08-091-3/+3
| |
* | Issues #15169, #14599: Make PyImport_ExecCodeModuleWithPathnames() useBrett Cannon2012-07-131-1/+6
| | | | | | | | | | | | | | | | | | | | | | | | Lib/imp.py for imp.source_from_cache() instead of its own C version. Also change PyImport_ExecCodeModuleObject() to not infer the source path from the bytecode path like PyImport_ExecCodeModuleWithPathnames() does. This makes the function less magical. This also has the side-effect of removing all uses of MAXPATHLEN in Python/import.c which can cause failures on really long filenames.
* | Issue #15167 (as part of #13959): imp.get_magic() is no implemented inBrett Cannon2012-07-091-1/+4
| | | | | | | | Lib/imp.py.
* | Issue #15242: Have PyImport_GetMagicTag() return a const char *Brett Cannon2012-07-091-1/+2
| | | | | | | | | | | | | | defined in sysmodule.c instead of straight out of a Unicode object. Thanks to Amaury Forgeot d'Arc for noticing the bug and Eric Snow for writing the patch.
* | Fix a couple of versionadded/versionchanged related markup errors.Georg Brandl2012-06-241-2/+3
| |
* | Fix whitespace.Martin v. Löwis2012-06-231-1/+1
| |
* | Issue #15146: Add PyType_FromSpecWithBases. Patch by Robin Schreiber.Martin v. Löwis2012-06-231-0/+12
| |
* | Issue #12965: Merge from 3.2.Mark Dickinson2012-06-231-22/+39
|\ \ | |/
| * Issue #12965: More PyLong_As* clarifications. Thanks Stefan Krah.Mark Dickinson2012-06-231-22/+39
| |
* | Issue #12965: Merge from 3.2.Mark Dickinson2012-06-231-18/+23
|\ \ | |/
| * Issue #12965: Clean up C-API docs for PyLong_AsLongLong(AndOverflow); ↵Mark Dickinson2012-06-231-18/+23
| | | | | | | | clarify that __int__ will be called for non-PyLongs
* | Issue #12965: Merge from 3.2Mark Dickinson2012-06-231-13/+16
|\ \ | |/
| * Issue #12965: Clean up C-API docs for PyLong_AsLong(AndOverflow); clarify ↵Mark Dickinson2012-06-231-13/+16
| | | | | | | | that __int__ will be called for non-PyLongs
* | Whitespace normalizationMartin v. Löwis2012-06-221-2/+2
| |
* | Add Stable ABI documentation.Martin v. Löwis2012-06-222-0/+40
| |
* | Issue #15042: Add PyState_AddModule and PyState_RemoveModule.Martin v. Löwis2012-06-221-1/+21
| | | | | | | | | | | | Add version guard for Py_LIMITED_API additions. Issue #15081: Document PyState_FindModule. Patch by Robin Schreiber.
* | Issue #14090: fix some minor C API problems in default branch (3.3)Eli Bendersky2012-06-036-15/+9
| |
* | Issue #14424: Document PyType_GenericAlloc, and fix the documentation of ↵Eli Bendersky2012-06-031-4/+5
| | | | | | | | PyType_GenericNew
* | Issue #9260: A finer-grained import lock.Antoine Pitrou2012-05-171-7/+7
| | | | | | | | | | Most of the import sequence now uses per-module locks rather than the global import lock, eliminating well-known issues with threads and imports.
* | PEP 415: Implement suppression of __context__ display with an exception ↵Benjamin Peterson2012-05-151-7/+1
| | | | | | | | | | | | attribute This replaces the original PEP 409 implementation. See #14133.
* | Issue #14705: Add 'p' format character to PyArg_ParseTuple* for bool support.Larry Hastings2012-05-051-0/+9
| |
* | Fix location of versionaddeds and empty lines.Georg Brandl2012-04-241-3/+6
| |
* | Issue #14098: New functions PyErr_GetExcInfo and PyErr_SetExcInfo.Martin v. Löwis2012-04-191-0/+35
| | | | | | | | Patch by Stefan Behnel.
* | Fix #14600. Correct reference handling and naming of ImportError convenience ↵Brian Curtin2012-04-171-19/+4
| | | | | | | | function
* | Add versionadded tags to newly added ImportError convenience functions.Brian Curtin2012-04-161-0/+5
| |
* | Add documentation for the new PyErr_SetFromImport* functionsBrian Curtin2012-04-161-0/+18
| |
* | Issue #14386: Expose the dict_proxy internal type as types.MappingProxyTypeVictor Stinner2012-04-151-4/+4
| |
* | Issue #14328: Add keyword-only parameters to PyArg_ParseTupleAndKeywords.Larry Hastings2012-03-201-0/+9
| | | | | | | | | | | | They're optional-only for now (unlike in pure Python) but that's all I needed. The syntax can easily be relaxed if we want to support required keyword-only arguments for extension types in the future.
* | Issue #14181: Improve clarity in the documentation for the multi-purposeStefan Krah2012-03-062-23/+45
| | | | | | | | Py_buffer.obj field.
* | Add PyMemoryView_FromMemory() to whatsnew/3.3.Stefan Krah2012-02-291-0/+2
| |
* | Some corrections for the Doc/extending documentation. Closes #14129Eli Bendersky2012-02-271-1/+2
| |
* | Close issue #6210: Implement PEP 409Nick Coghlan2012-02-261-6/+13
| |
* | - Issue #10181: New memoryview implementation fixes multiple ownershipStefan Krah2012-02-253-204/+398
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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.
* | write versionaddedBenjamin Peterson2012-02-201-0/+4
| |
* | add generic implementation of a __dict__ descriptor for C typesBenjamin Peterson2012-02-202-1/+12
| |
* | Fix error handling in examples of C API use.Antoine Pitrou2012-01-271-11/+25
|\ \ | |/
| * Fix error handling in examples of C API use.Antoine Pitrou2012-01-271-11/+25
| |
* | Issue #12949: Document the kwonlyargcount argument for the PyCode_New C API ↵Meador Inge2012-01-201-1/+1
|\ \ | |/ | | | | function.
| * Issue #12949: Document the kwonlyargcount argument for the PyCode_New C API ↵Meador Inge2012-01-201-1/+1
| | | | | | | | function.
* | Issue #13727: Add 3 macros to access PyDateTime_Delta members:Amaury Forgeot d'Arc2012-01-171-0/+25
| | | | | | | | | | | | | | PyDateTime_DELTA_GET_DAYS, PyDateTime_DELTA_GET_SECONDS, PyDateTime_DELTA_GET_MICROSECONDS. Please use them instead of directly accessing PyDateTime_Delta struct members.
* | use full unicode mappings for upper/lower/title case (#12736)Benjamin Peterson2012-01-111-0/+9
| | | | | | | | Also broaden the category of characters that count as lowercase/uppercase.
* | merge with 3.2Sandro Tosi2012-01-071-1/+1
|\ \ | |/
| * Py_SetPythonHome() can be called before Py_Initialize(); thanks to Cody ↵Sandro Tosi2012-01-071-1/+1
| | | | | | | | Smith from docs@
* | Fix PyUnicode_Fill() doc: return type is Py_ssize_t, not intVictor Stinner2012-01-041-1/+1
| |
* | Add a new PyUnicode_Fill() functionVictor Stinner2012-01-031-0/+15
| | | | | | | | | | It is faster than the unicode_fill() function which was implemented in formatter_unicode.c.
* | Issue #13617: Document that the result of the conversion of a Unicode object toVictor Stinner2011-12-181-13/+24
|\ \ | |/ | | | | | | | | wchar*, Py_UNICODE* and bytes may contain embedded null characters/bytes. Patch written by Arnaud Calmettes.