summaryrefslogtreecommitdiffstats
path: root/Doc/c-api
Commit message (Collapse)AuthorAgeFilesLines
* Merge for issue #12484Brett Cannon2015-12-271-5/+0
|\
| * Issue #12484: Remove a mention of Py_InitModule() and ↵Brett Cannon2015-12-271-5/+0
| | | | | | | | | | | | | | _PyImport_FixupExtension(). Thanks to Alejandro Santos for the bug report and Anish Shah for the patch.
* | Issue #25701: Merge set and delete documentation from 3.5Martin Panter2015-12-083-19/+40
|\ \ | |/
| * Issue #25701: Document C API functions that both set and delete objectsMartin Panter2015-12-083-19/+40
| | | | | | | | | | | | Also document that the separate functions that delete objects are preferred; using PyObject_SetAttr(), _SetAttrString(), and PySequence_SetItem() to delete is deprecated.
* | Issue #5319: New Py_FinalizeEx() API to exit with status 120 on failureMartin Panter2015-11-303-19/+32
|/
* Issue #25706: Fixed markup in the documentation.Serhiy Storchaka2015-11-231-1/+1
|\
| * Issue #25706: Fixed markup in the documentation.Serhiy Storchaka2015-11-231-1/+1
| |
* | Issue #25523: Merge "a" to "an" fixes from 3.4 into 3.5Martin Panter2015-11-021-1/+1
|\ \ | |/
| * Issue #25523: Correct "a" article to "an" articleMartin Panter2015-11-021-1/+1
| | | | | | | | | | | | This changes the main documentation, doc strings, source code comments, and a couple error messages in the test suite. In some cases the word was removed or edited some other way to fix the grammar.
* | Issue #25161: Merge full stops from 3.4 into 3.5Martin Panter2015-10-103-3/+3
|\ \ | |/
| * Issue #25161: Add full stops in documentation; patch by Takase ArihiroMartin Panter2015-10-103-3/+3
| |
* | Issue #24808: Merge 3.4 into 3.5; adjust new tp_as_async fieldMartin Panter2015-08-251-5/+5
|\ \ | |/
| * Issue #24808: Update the documentation of some PyTypeObject fieldsMartin Panter2015-08-251-5/+5
| | | | | | | | Patch by Joseph Weston.
* | merge 3.4 (#24883)Benjamin Peterson2015-08-181-4/+4
|\ \ | |/
| * 'Py_Buffer' should be 'Py_buffer' (closes #24883)Benjamin Peterson2015-08-181-4/+4
| |
* | Issue #23756: Clarify the terms "contiguous" and "bytes-like object".Stefan Krah2015-08-082-7/+10
| | | | | | | | Patch by Martin Panter.
* | Merge 3.4Zachary Ware2015-07-071-3/+4
|\ \ | |/
| * Fix usage of the default role.Zachary Ware2015-07-071-3/+4
| | | | | | | | | | The changes to Doc/library/unittest.mock.rst are almost entirely a selective backport of the 3.5 page.
| * Fix suspicious markupZachary Ware2015-07-071-1/+1
| |
* | Close #24458: PEP 489 documentationNick Coghlan2015-07-032-77/+245
| | | | | | | | Patch by Petr Viktorin.
* | Issue #19235: Add new RecursionError exception. Patch by Georg Brandl.Yury Selivanov2015-07-031-3/+9
| |
* | docs.capi: Fix tp_as_async docYury Selivanov2015-06-231-1/+1
| |
* | Issue #24400: Introduce a distinct type for 'async def' coroutines.Yury Selivanov2015-06-223-7/+48
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Summary of changes: 1. Coroutines now have a distinct, separate from generators type at the C level: PyGen_Type, and a new typedef PyCoroObject. PyCoroObject shares the initial segment of struct layout with PyGenObject, making it possible to reuse existing generators machinery. The new type is exposed as 'types.CoroutineType'. As a consequence of having a new type, CO_GENERATOR flag is no longer applied to coroutines. 2. Having a separate type for coroutines made it possible to add an __await__ method to the type. Although it is not used by the interpreter (see details on that below), it makes coroutines naturally (without using __instancecheck__) conform to collections.abc.Coroutine and collections.abc.Awaitable ABCs. [The __instancecheck__ is still used for generator-based coroutines, as we don't want to add __await__ for generators.] 3. Add new opcode: GET_YIELD_FROM_ITER. The opcode is needed to allow passing native coroutines to the YIELD_FROM opcode. Before this change, 'yield from o' expression was compiled to: (o) GET_ITER LOAD_CONST YIELD_FROM Now, we use GET_YIELD_FROM_ITER instead of GET_ITER. The reason for adding a new opcode is that GET_ITER is used in some contexts (such as 'for .. in' loops) where passing a coroutine object is invalid. 4. Add two new introspection functions to the inspec module: getcoroutinestate(c) and getcoroutinelocals(c). 5. inspect.iscoroutine(o) is updated to test if 'o' is a native coroutine object. Before this commit it used abc.Coroutine, and it was requested to update inspect.isgenerator(o) to use abc.Generator; it was decided, however, that inspect functions should really be tailored for checking for native types. 6. sys.set_coroutine_wrapper(w) API is updated to work with only native coroutines. Since types.coroutine decorator supports any type of callables now, it would be confusing that it does not work for all types of coroutines. 7. Exceptions logic in generators C implementation was updated to raise clearer messages for coroutines: Before: TypeError("generator raised StopIteration") After: TypeError("coroutine raised StopIteration")
* | Fixed documentation of functions with const char* arguments.Serhiy Storchaka2015-06-218-14/+14
|\ \ | |/
| * Fixed documentation of functions with const char* arguments.Serhiy Storchaka2015-06-218-14/+14
| |
* | Added the const qualifier for char* argument of Py_EnterRecursiveCall().Serhiy Storchaka2015-06-211-1/+1
|\ \ | |/
| * Added the const qualifier for char* argument of Py_EnterRecursiveCall().Serhiy Storchaka2015-06-211-1/+1
| |
* | Issue 24017: Drop getawaitablefunc and friends in favor of unaryfunc.Yury Selivanov2015-05-281-6/+6
| |
* | PEP 489: Multi-phase extension module initializationNick Coghlan2015-05-231-26/+66
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Known limitations of the current implementation: - documentation changes are incomplete - there's a reference leak I haven't tracked down yet The leak is most visible by running: ./python -m test -R3:3 test_importlib However, you can also see it by running: ./python -X showrefcount Importing the array or _testmultiphase modules, and then deleting them from both sys.modules and the local namespace shows significant increases in the total number of active references each cycle. By contrast, with _testcapi (which continues to use single-phase initialisation) the global refcounts stabilise after a couple of cycles.
* | Issue 24180: Fixes by Berker Peksag.Yury Selivanov2015-05-211-3/+2
| |
* | Issue 24180: Documentation for PEP 492 changes.Yury Selivanov2015-05-211-2/+63
| |
* | Merge: #23088: Clarify null termination of bytes and strings in C API.R David Murray2015-05-143-31/+44
|\ \ | |/
| * #23088: Clarify null termination of bytes and strings in C API.R David Murray2015-05-143-31/+44
| | | | | | | | Patch by Martin Panter, reviewed by Serhiy Storchaka and R. David Murray.
* | Fixed a typo.Serhiy Storchaka2015-05-021-1/+1
|\ \ | |/
| * Fixed a typo.Serhiy Storchaka2015-05-021-1/+1
| |
* | Regenerated pydoc-topics and fixed bad/suspicious doc markup for Python 3.5.0a4.Larry Hastings2015-04-191-1/+1
| |
* | Merge: #23957: fix typo.R David Murray2015-04-141-1/+1
|\ \ | |/
| * #23957: fix typo.R David Murray2015-04-141-1/+1
| |
* | issue9014: Include more formatting on :c:type:`PyObject` etc.Gregory P. Smith2015-04-141-3/+3
|\ \ | |/
| * issue9014: Include more formatting on :c:type:`PyObject` etc.Gregory P. Smith2015-04-141-3/+3
| |
* | issue9014: Properly document PyObject_HEAD and friends post-PEP-3123.Gregory P. Smith2015-04-141-29/+41
|\ \ | |/
| * issue9014: Properly document PyObject_HEAD and friends post-PEP-3123.Gregory P. Smith2015-04-141-29/+41
| |
* | Issue #23731: Implement PEP 488.Brett Cannon2015-04-131-3/+3
| | | | | | | | | | | | The concept of .pyo files no longer exists. Now .pyc files have an optional `opt-` tag which specifies if any extra optimizations beyond the peepholer were applied.
* | Doc clarification / edification on the semantics of the 'w*' format unit.Larry Hastings2015-04-131-1/+1
| |
* | Merge 3.4 (marshal doc)Victor Stinner2015-03-181-6/+15
|\ \ | |/
| * 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.
| * 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
| |
* | Whitespace.Stefan Krah2015-02-011-1/+1
| |