summaryrefslogtreecommitdiff
path: root/Doc/c-api
Commit message (Collapse)AuthorAgeFilesLines
...
* | | | | | | | | | | | | | | | | | | | | | Issue #19428: Document that PyMarshal_ReadLongFromFile() andVictor Stinner2015-03-181-6/+15
|/ / / / / / / / / / / / / / / / / / / / / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | PyMarshal_ReadShortFromFile() can fail.
* | | | | | | | | | | | | | | | | | | | | Issue #23081: Document that PySequence_List also accepts iterables.Berker Peksag2015-03-131-2/+3
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Patch by Lars Buitinck.
* | | | | | | | | | | | | | | | | | | | | Whitespace.Stefan Krah2015-02-011-1/+1
|/ / / / / / / / / / / / / / / / / / / /
* | | | | | | | | | | | | | | | | | | | Issue #23352: Document that Py_buffer.suboffsets must be NULL if no suboffsetsStefan Krah2015-02-011-0/+3
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | are required.
* | | | | | | | | | | | | | | | | | | | Issue #23181: More "codepoint" -> "code point".Serhiy Storchaka2015-01-181-1/+1
|/ / / / / / / / / / / / / / / / / / /
* | | | | | | | | | | | | | | | | | | fix instances of consecutive articles (closes #23221)Benjamin Peterson2015-01-133-3/+3
| |_|_|_|_|_|_|_|_|_|_|_|_|_|_|_|_|/ |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Patch by Karan Goel.
* | | | | | | | | | | | | | | | | | doucment that Py_SetPath copies its argument (closes #23110)Benjamin Peterson2014-12-241-0/+3
|/ / / / / / / / / / / / / / / / /
* | | | | | | | | | | | | | | | | Issue #22581: Use more "bytes-like object" throughout the docs and comments.Serhiy Storchaka2014-12-052-14/+16
|/ / / / / / / / / / / / / / / /
* | | | | | | | | | | | | | | | #22613: remaining corrections in extending/reference docs (thanks Jacques ↵Georg Brandl2014-10-311-4/+5
| |_|_|_|_|_|_|_|_|_|_|_|_|_|/ |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Ducasse)
* | | | | | | | | | | | | | | Closes #21687: delimiter in Py_SetPath is platform dependentGeorg Brandl2014-10-111-1/+3
| |_|_|_|_|_|_|_|_|_|_|_|_|/ |/| | | | | | | | | | | | |
* | | | | | | | | | | | | | Closes #22580: Fix documentation of PyUnicode_Tailmatch()Victor Stinner2014-10-091-1/+1
| |_|_|_|_|_|_|_|_|_|_|_|/ |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The result type is Py_ssize_t (and not int).
* | | | | | | | | | | | | Clean up the docs of PyObject_IsSubclass and PyObject_IsInstance, and ↵Georg Brandl2014-10-062-30/+35
| |_|_|_|_|_|_|_|_|_|_|/ |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | mention that they call the PEP 3119 methods.
* | | | | | | | | | | | Closes #22507: document that PyType_IsSubtype does not call __subclasscheck__.Georg Brandl2014-10-061-0/+6
| |_|_|_|_|_|_|_|_|_|/ |/| | | | | | | | | |
* | | | | | | | | | | Closes #22565: fix argument types of PyErr_WarnEx.Georg Brandl2014-10-061-1/+1
|/ / / / / / / / / /
* | | | | | | | | | PyObject not PyType (closes #18494)Benjamin Peterson2014-10-051-2/+2
|/ / / / / / / / /
* | | | | | | | | Closes #19477: remove outdated documentation of tp_print type object slot.Georg Brandl2014-10-051-24/+1
|/ / / / / / / /
* | | | | | | | args doesn't need to be a tuple (closes #17210)Benjamin Peterson2014-07-191-1/+1
| |_|_|_|_|_|/ |/| | | | | |
* | | | | | | Update docs about tp_richcompareAndrew Svetlov2014-07-031-1/+3
|/ / / / / /
* | | | | | Issue #21778: Clarify use of flags if PyBuffer_FillInfo() is used inside aStefan Krah2014-06-301-2/+2
|/ / / / / | | | | | | | | | | | | | | | getbufferproc().
* | | | | MERGE: Closes #21441: Reorder elements in documentation to match actual ↵Jesus Cea2014-06-2518-56/+506
|\ \ \ \ \ | | |_|_|/ | |/| | | | | | | | order in the code
| * | | | Quash extraneous quote.Zachary Ware2014-06-061-1/+1
| |/ / /
| * | | Issue #21226: Set all attrs in PyImport_ExecCodeModuleObject.Eric Snow2014-05-121-1/+7
| | |/ | |/|
| * | Issue #9307: document the various Py_TPFLAGS_*_SUBCLASS flags. Patch by ↵Antoine Pitrou2014-04-291-0/+18
| |/ | | | | | | Yury V. Zaytsev.
| * PySequence_Fast generally returns a list not a tuple (closes #16395)Benjamin Peterson2014-04-081-4/+4
| |
| * the name of the slot of nb_multiply not nb_mulBenjamin Peterson2014-04-081-1/+2
| |
| * Issue #20942: PyImport_ImportFrozenModuleObject() no longer setsBrett Cannon2014-04-041-0/+3
| | | | | | | | | | | | | | | | __file__. This causes _frozen_importlib to no longer have __file__ set as well as any frozen module imported using imp.init_frozen() (which is deprecated).
| * Get rid of deprecated IOError in the docAndrew Svetlov2014-04-011-2/+2
| |
| * Closes #18456: Doc fix: PyDict_Update only works with dict-like objects, not ↵Georg Brandl2014-03-251-2/+5
| | | | | | | | key-value sequences. Patch by priyapappachan.
| * Fix a few scoping issues with versionadded/versionchanged directives.Georg Brandl2014-03-242-4/+5
| |
| * Merge in all documentation changes since branching 3.4.0rc1.Larry Hastings2014-03-157-11/+20
| |
| * Issue #20517: Removed unnecessary new (short-lived) functions from PyErr.Larry Hastings2014-02-101-25/+0
| |
| * Issue #20517: Functions in the os module that accept two filenamesLarry Hastings2014-02-091-7/+43
| | | | | | | | | | | | now register both filenames in the exception on failure. This required adding new C API functions allowing OSError exceptions to reference two filenames instead of one.
| * Issue #20500: Note other public APIs with the new assertionNick Coghlan2014-02-092-2/+9
| |
| * Note the new debug assertion in PyObject_StrNick Coghlan2014-02-091-0/+4
| |
| * Tweaks to What's New and some referenced docsNick Coghlan2014-02-091-1/+1
| |
| * Issue #17162: Add PyType_GetSlot.Martin v. L?wis2014-02-041-0/+10
| |
| * Issue #20460: Merge with 3.3Zachary Ware2014-01-3115-40/+418
| |\
| | * Close #20105: set __traceback__ when chaining exceptions in CNick Coghlan2014-01-271-0/+10
| | |
| | * Issue #20226: Major improvements to Argument Clinic.Larry Hastings2014-01-161-0/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * You may now specify an expression as the default value for a parameter! Example: "sys.maxsize - 1". This support is intentionally quite limited; you may only use values that can be represented as static C values. * Removed "doc_default", simplified support for "c_default" and "py_default". (I'm not sure we still even need "py_default", but I'm leaving it in for now in case a use presents itself.) * Parameter lines support a trailing '\\' as a line continuation character, allowing you to break up long lines. * The argument parsing code generated when supporting optional groups now uses PyTuple_GET_SIZE instead of PyTuple_GetSize, leading to a 850% speedup in parsing. (Just kidding, this is an unmeasurable difference.) * A bugfix for the recent regression where the generated prototype from pydoc for builtins would be littered with unreadable "=<object ...>"" default values for parameters that had no default value. * Converted some asserts into proper failure messages. * Many doc improvements and fixes.
| | * C API doc: try to group concrete objectsVictor Stinner2013-11-071-7/+15
| | |
| | * Issue #1772673: The type of `char*` arguments now changed to `const char*`.Serhiy Storchaka2013-10-196-11/+11
| | |
| | * Issue #16129: Py_SetStandardStreamEncoding cleanupsNick Coghlan2013-10-181-5/+8
| | | | | | | | | | | | | | | | | | | | | | | | | | | - don't call PyErr_NoMemory with interpreter is not initialised - note that it's OK to call _PyMem_RawStrDup here - don't include this in the limited API - capitalise "IO" - be explicit that a non-zero return indicates an error - include versionadded marker in docs
| | * Issue #16129: Add `Py_SetStandardStreamEncoding`Nick Coghlan2013-10-171-0/+27
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This new pre-initialization API allows embedding applications like Blender to force a particular encoding and error handler for the standard IO streams. Also refactors Modules/_testembed.c to let us start testing multiple embedding scenarios. (Initial patch by Bastien Montagne)
| | * merge with 3.3Georg Brandl2013-10-129-23/+351
| | |\
| | | * merge with 3.3Georg Brandl2013-10-121-0/+100
| | | |\
| | | * | Close #16742: Fix misuse of memory allocations in PyOS_Readline()Victor Stinner2013-10-101-0/+8
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The GIL must be held to call PyMem_Malloc(), whereas PyOS_Readline() releases the GIL to read input. The result of the C callback PyOS_ReadlineFunctionPointer must now be a string allocated by PyMem_RawMalloc() or PyMem_RawRealloc() (or NULL if an error occurred), instead of a string allocated by PyMem_Malloc() or PyMem_Realloc(). Fixing this issue was required to setup a hook on PyMem_Malloc(), for example using the tracemalloc module. PyOS_Readline() copies the result of PyOS_ReadlineFunctionPointer() into a new buffer allocated by PyMem_Malloc(). So the public API of PyOS_Readline() does not change.
| | | * | Issue #18874: _PyObject_Malloc/Realloc/Free() now falls back onVictor Stinner2013-10-101-2/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | _PyMem_RawMalloc/Realloc/Free, instead of _PyMem_Malloc/Realloc/Free. So it becomes possible to use the fast pymalloc allocator for the PYMEM_DOMAIN_MEM domain (PyMem_Malloc/Realloc/Free functions).
| | | * | mergeRaymond Hettinger2013-10-091-6/+5
| | | |\ \
| | | * \ \ Issue 19195: Improved cross-references in C API documentation.Serhiy Storchaka2013-10-099-23/+343
| | | |\ \ \
| | | | * \ \ Add a "skull and crossbones" to Py_AddPendingCall.Antoine Pitrou2013-09-301-25/+30
| | | | |\ \ \