summaryrefslogtreecommitdiffstats
path: root/Doc/c-api
Commit message (Collapse)AuthorAgeFilesLines
...
| * Issue #18668: Further clarify m_size setting for non-negative valuesEli Bendersky2013-08-101-4/+4
| |
* | Fix a typo in PyUnicode_CopyCharacters() documentation.Serhiy Storchaka2013-08-081-1/+1
|\ \ | |/
| * Fix a typo in PyUnicode_CopyCharacters() documentation.Serhiy Storchaka2013-08-081-1/+1
| |
* | Closing #18668: Properly document setting m_size in PyModuleDefEli Bendersky2013-08-071-4/+10
|\ \ | |/
| * Issue #18668: Properly document setting m_size in PyModuleDefEli Bendersky2013-08-071-4/+10
| |
* | Issue #18589: fix hyperlinking of type slots (tp_*)Antoine Pitrou2013-08-015-140/+140
|\ \ | |/
| * Issue #18589: fix hyperlinking of type slots (tp_*)Antoine Pitrou2013-08-015-137/+137
| |
* | Issue #18112: PEP 442 implementation (safe object finalization).Antoine Pitrou2013-07-301-0/+49
| |
* | Issue #3329: Implement the PEP 445Victor Stinner2013-07-071-1/+170
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Add new enum: * PyMemAllocatorDomain Add new structures: * PyMemAllocator * PyObjectArenaAllocator Add new functions: * PyMem_RawMalloc(), PyMem_RawRealloc(), PyMem_RawFree() * PyMem_GetAllocator(), PyMem_SetAllocator() * PyObject_GetArenaAllocator(), PyObject_SetArenaAllocator() * PyMem_SetupDebugHooks() Changes: * PyMem_Malloc()/PyObject_Realloc() now always call malloc()/realloc(), instead of calling PyObject_Malloc()/PyObject_Realloc() in debug mode. * PyObject_Malloc()/PyObject_Realloc() now falls back to PyMem_Malloc()/PyMem_Realloc() for allocations larger than 512 bytes. * Redesign debug checks on memory block allocators as hooks, instead of using C macros
* | Issue #15767: back out 8a0ed9f63c6e, finishing the removal ofBrett Cannon2013-07-041-2/+0
| | | | | | | | ModuleNotFoundError.
* | Issue #15767: Revert 3a50025f1900 for ModuleNotFoundErrorBrett Cannon2013-07-041-7/+0
| |
* | Revert changeset 6661a8154eb3: Issue #3329: Add new APIs to customize memory ↵Victor Stinner2013-06-151-120/+1
| | | | | | | | | | | | allocators The new API require more discussion.
* | Issue #3329: Add new APIs to customize memory allocatorsVictor Stinner2013-06-141-1/+120
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * Add a new PyMemAllocators structure * New functions: - PyMem_RawMalloc(), PyMem_RawRealloc(), PyMem_RawFree(): GIL-free memory allocator functions - PyMem_GetRawAllocators(), PyMem_SetRawAllocators() - PyMem_GetAllocators(), PyMem_SetAllocators() - PyMem_SetupDebugHooks() - _PyObject_GetArenaAllocators(), _PyObject_SetArenaAllocators() * Add unit test for PyMem_Malloc(0) and PyObject_Malloc(0) * Add unit test for new get/set allocators functions * PyObject_Malloc() now falls back on PyMem_Malloc() instead of malloc() if size is bigger than SMALL_REQUEST_THRESHOLD, and PyObject_Realloc() falls back on PyMem_Realloc() instead of realloc() * PyMem_Malloc() and PyMem_Realloc() now always call malloc() and realloc(), instead of calling PyObject_Malloc() and PyObject_Realloc() in debug mode
* | Issue #15767: Touch up ModuleNotFoundError usage by import.Brett Cannon2013-06-131-0/+7
| | | | | | | | | | | | | | | | | | | | | | | | | | Forgot to raise ModuleNotFoundError when None is found in sys.modules. This led to introducing the C function PyErr_SetImportErrorSubclass() to make setting ModuleNotFoundError easier. Also updated the reference docs to mention ModuleNotFoundError appropriately. Updated the docs for ModuleNotFoundError to mention the None in sys.modules case. Lastly, it was noticed that PyErr_SetImportError() was not setting an exception when returning None in one case. That issue is now fixed.
* | Issue #15767: Introduce ModuleNotFoundError, a subclass ofBrett Cannon2013-06-121-0/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | ImportError. The exception is raised by import when a module could not be found. Technically this is defined as no viable loader could be found for the specified module. This includes ``from ... import`` statements so that the module usage is consistent for all situations where import couldn't find what was requested. This should allow for the common idiom of:: try: import something except ImportError: pass to be updated to using ModuleNotFoundError and not accidentally mask ImportError messages that should propagate (e.g. issues with a loader). This work was driven by the fact that the ``from ... import`` statement needed to be able to tell the difference between an ImportError that simply couldn't find a module (and thus silence the exception so that ceval can raise it) and an ImportError that represented an actual problem.
* | Issue #9369: The types of `char*` arguments of PyObject_CallFunction() andSerhiy Storchaka2013-05-291-2/+8
| | | | | | | | | | PyObject_CallMethod() now changed to `const char*`. Based on patches by Jörg Müller and Lars Buitinck.
* | #1554133: Document PyOS_InputHook, PyOS_ReadlineFunctionPointerAndrew Kuchling2013-05-291-1/+23
| |
* | Issue #7330: Implement width and precision (ex: "%5.3s") for the format stringVictor Stinner2013-05-061-0/+11
| | | | | | | | of PyUnicode_FromFormat() function, original patch written by Ysj Ray.
* | #17115,17116: Have modules initialize the __package__ and __loader__Brett Cannon2013-05-041-2/+9
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | attributes to None. The long-term goal is for people to be able to rely on these attributes existing and checking for None to see if they have been set. Since import itself sets these attributes when a loader does not the only instances when the attributes are None are from someone overloading __import__() and not using a loader or someone creating a module from scratch. This patch also unifies module initialization. Before you could have different attributes with default values depending on how the module object was created. Now the only way to not get the same default set of attributes is to circumvent initialization by calling ModuleType.__new__() directly.
* | #16518: merge with 3.3.Ezio Melotti2013-05-042-8/+7
|\ \ | |/
| * #16518: use "bytes-like object" throughout the docs.Ezio Melotti2013-05-042-8/+7
| |
* | merge with 3.3Georg Brandl2013-04-141-11/+29
|\ \ | |/
| * Closes #13638: document PyErr_SetFromErrnoWithFilenameObject,Georg Brandl2013-04-141-11/+29
| | | | | | | | | | | | | | PyErr_SetFromWindowsErrWithFilenameObject, and PyErr_SetExcFromWindowsErrWithFilenameObject. Note that PyErr_SetExcFromWindowsErrWithFilenameObjectAndSomeOtherParametersSoThatTheNameGetsSoLongThatNobodyIsEverGonnaUseThisStrangeFunctionForAnything is still undocumented.
* | Merge with 3.3.Georg Brandl2013-03-283-1/+8
|\ \ | |/
| * Closes #4159: add LaTeX tabular column specifications to tables that ↵Georg Brandl2013-03-283-1/+8
| | | | | | | | otherwise are cut off or have overlapping text.
* | Issue #17522: Minor documentation fixKristján Valur Jónsson2013-03-231-0/+2
| |
* | Issue #17522: Add the PyGILState_Check() API.Kristján Valur Jónsson2013-03-231-0/+12
| |
* | cleanup references to PyString_ APIs in the 3.x docs.Gregory P. Smith2013-03-222-4/+4
|\ \ | |/
| * cleanup references to PyString_ APIs from 2.x in the 3.3 docs.Gregory P. Smith2013-03-222-4/+4
| |\
| | * Clean up references to the no longer existing PyString_ APIs in our docs.Gregory P. Smith2013-03-222-4/+4
| | |
* | | merge with 3.3Georg Brandl2013-03-161-1/+1
|\ \ \ | |/ /
| * | Remove row-spanning cell, which the Sphinx text writer does not support.Georg Brandl2013-03-161-1/+1
| | |
* | | Merge with 3.3: Issue #17047: removed doubled words in Doc/*,Terry Jan Reedy2013-03-112-3/+3
|\ \ \ | |/ / | | | | | | Mac/*, and Tool/* found by Serhiy Storchaka and Matthew Barnett
| * | Merge with 3.2: Issue #17047: removed doubled words in Doc/*,Terry Jan Reedy2013-03-112-3/+3
| |\ \ | | |/ | | | | | | Mac/*, and Tool/* found by Serhiy Storchaka and Matthew Barnett
| | * Issue #17047: removed doubled words in Doc/*, Mac/*, and Tool/*Terry Jan Reedy2013-03-112-3/+3
| | | | | | | | | | | | found by Serhiy Storchaka and Matthew Barnett
| | * Improve str() and object.__str__() documentation (issue #13538).Chris Jerdonek2012-11-211-5/+7
| | |
* | | fix spelling (#17327)Benjamin Peterson2013-03-111-2/+2
| | |
* | | say defaultobj is returned (#17327)Benjamin Peterson2013-03-111-3/+3
| | |
* | | remove more useless wordsBenjamin Peterson2013-03-111-3/+3
| | |
* | | remove useless words (#17327)Benjamin Peterson2013-03-111-3/+3
| | |
* | | Fix typo in PyDict_SetDefault docs.Ezio Melotti2013-03-101-1/+1
| | |
* | | Add PyDict_SetDefault. (closes #17327)Benjamin Peterson2013-03-081-0/+9
| | | | | | | | | | | | Patch by Stefan Behnel and I.
* | | Merge fix for #15465 from 3.3Nick Coghlan2013-03-073-9/+51
|\ \ \ | |/ /
| * | Close #15465: Document C API version macrosNick Coghlan2013-03-073-9/+51
| | | | | | | | | | | | | | | | | | | | | Mostly moving the existing macro docs over from the standard library docs to the C API docs where they belong. Patch by Kushal Das.
* | | #17363: merge with 3.3.Ezio Melotti2013-03-061-2/+2
|\ \ \ | |/ /
| * | #17363: fix arguments in PyState_AddModule and PyState_RemoveModule docs.Ezio Melotti2013-03-061-2/+2
| | |
* | | Merge: remove redundant sentence from c-api docs (issue #16323)Andrew Svetlov2012-11-291-4/+1
|\ \ \ | |/ /
| * | Remove redundant sentence from c-api docs (issue #16323)Andrew Svetlov2012-11-291-4/+1
| | |
* | | Merge issue #16323: Fix wrong C API documentation for locale encoding.Andrew Svetlov2012-11-281-20/+24
|\ \ \ | |/ / | | | | | | Patch by Berker Peksag.
| * | Issue #16323: Fix wrong C API documentation for locale encoding.Andrew Svetlov2012-11-281-20/+24
| | | | | | | | | | | | Patch by Berker Peksag.