Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | Close #24458: PEP 489 documentation | Nick Coghlan | 2015-07-03 | 2 | -77/+245 |
| | | | | Patch by Petr Viktorin. | ||||
* | Issue #19235: Add new RecursionError exception. Patch by Georg Brandl. | Yury Selivanov | 2015-07-03 | 1 | -3/+9 |
| | |||||
* | docs.capi: Fix tp_as_async doc | Yury Selivanov | 2015-06-23 | 1 | -1/+1 |
| | |||||
* | Issue #24400: Introduce a distinct type for 'async def' coroutines. | Yury Selivanov | 2015-06-22 | 3 | -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 Storchaka | 2015-06-21 | 8 | -14/+14 |
|\ | |||||
| * | Fixed documentation of functions with const char* arguments. | Serhiy Storchaka | 2015-06-21 | 8 | -14/+14 |
| | | |||||
* | | Added the const qualifier for char* argument of Py_EnterRecursiveCall(). | Serhiy Storchaka | 2015-06-21 | 1 | -1/+1 |
|\ \ | |/ | |||||
| * | Added the const qualifier for char* argument of Py_EnterRecursiveCall(). | Serhiy Storchaka | 2015-06-21 | 1 | -1/+1 |
| | | |||||
* | | Issue 24017: Drop getawaitablefunc and friends in favor of unaryfunc. | Yury Selivanov | 2015-05-28 | 1 | -6/+6 |
| | | |||||
* | | PEP 489: Multi-phase extension module initialization | Nick Coghlan | 2015-05-23 | 1 | -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 Selivanov | 2015-05-21 | 1 | -3/+2 |
| | | |||||
* | | Issue 24180: Documentation for PEP 492 changes. | Yury Selivanov | 2015-05-21 | 1 | -2/+63 |
| | | |||||
* | | Merge: #23088: Clarify null termination of bytes and strings in C API. | R David Murray | 2015-05-14 | 3 | -31/+44 |
|\ \ | |/ | |||||
| * | #23088: Clarify null termination of bytes and strings in C API. | R David Murray | 2015-05-14 | 3 | -31/+44 |
| | | | | | | | | Patch by Martin Panter, reviewed by Serhiy Storchaka and R. David Murray. | ||||
* | | Fixed a typo. | Serhiy Storchaka | 2015-05-02 | 1 | -1/+1 |
|\ \ | |/ | |||||
| * | Fixed a typo. | Serhiy Storchaka | 2015-05-02 | 1 | -1/+1 |
| | | |||||
* | | Regenerated pydoc-topics and fixed bad/suspicious doc markup for Python 3.5.0a4. | Larry Hastings | 2015-04-19 | 1 | -1/+1 |
| | | |||||
* | | Merge: #23957: fix typo. | R David Murray | 2015-04-14 | 1 | -1/+1 |
|\ \ | |/ | |||||
| * | #23957: fix typo. | R David Murray | 2015-04-14 | 1 | -1/+1 |
| | | |||||
* | | issue9014: Include more formatting on :c:type:`PyObject` etc. | Gregory P. Smith | 2015-04-14 | 1 | -3/+3 |
|\ \ | |/ | |||||
| * | issue9014: Include more formatting on :c:type:`PyObject` etc. | Gregory P. Smith | 2015-04-14 | 1 | -3/+3 |
| | | |||||
* | | issue9014: Properly document PyObject_HEAD and friends post-PEP-3123. | Gregory P. Smith | 2015-04-14 | 1 | -29/+41 |
|\ \ | |/ | |||||
| * | issue9014: Properly document PyObject_HEAD and friends post-PEP-3123. | Gregory P. Smith | 2015-04-14 | 1 | -29/+41 |
| | | |||||
* | | Issue #23731: Implement PEP 488. | Brett Cannon | 2015-04-13 | 1 | -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 Hastings | 2015-04-13 | 1 | -1/+1 |
| | | |||||
* | | Merge 3.4 (marshal doc) | Victor Stinner | 2015-03-18 | 1 | -6/+15 |
|\ \ | |/ | |||||
| * | Issue #19428: Document that PyMarshal_ReadLongFromFile() and | Victor Stinner | 2015-03-18 | 1 | -6/+15 |
| | | | | | | | | PyMarshal_ReadShortFromFile() can fail. | ||||
* | | Issue #23081: Document that PySequence_List also accepts iterables. | Berker Peksag | 2015-03-13 | 1 | -2/+3 |
|\ \ | |/ | | | | | Patch by Lars Buitinck. | ||||
| * | Issue #23081: Document that PySequence_List also accepts iterables. | Berker Peksag | 2015-03-13 | 1 | -2/+3 |
| | | | | | | | | Patch by Lars Buitinck. | ||||
| * | Whitespace. | Stefan Krah | 2015-02-01 | 1 | -1/+1 |
| | | |||||
* | | Whitespace. | Stefan Krah | 2015-02-01 | 1 | -1/+1 |
| | | |||||
* | | Issue #23352: Merge from 3.4. | Stefan Krah | 2015-02-01 | 1 | -0/+3 |
|\ \ | |/ | |||||
| * | Issue #23352: Document that Py_buffer.suboffsets must be NULL if no suboffsets | Stefan Krah | 2015-02-01 | 1 | -0/+3 |
| | | | | | | | | are required. | ||||
| * | Issue #23181: More "codepoint" -> "code point". | Serhiy Storchaka | 2015-01-18 | 1 | -1/+1 |
| | | |||||
* | | Closes #23181: codepoint -> code point | Georg Brandl | 2015-01-14 | 1 | -1/+1 |
| | | |||||
* | | merge 3.4 (#23221) | Benjamin Peterson | 2015-01-13 | 3 | -3/+3 |
|\ \ | |/ | |||||
| * | fix instances of consecutive articles (closes #23221) | Benjamin Peterson | 2015-01-13 | 3 | -3/+3 |
| | | | | | | | | Patch by Karan Goel. | ||||
* | | merge 3.4 (#23110) | Benjamin Peterson | 2014-12-24 | 1 | -0/+3 |
|\ \ | |/ | |||||
| * | doucment that Py_SetPath copies its argument (closes #23110) | Benjamin Peterson | 2014-12-24 | 1 | -0/+3 |
| | | |||||
* | | Issue #22581: Use more "bytes-like object" throughout the docs and comments. | Serhiy Storchaka | 2014-12-05 | 2 | -14/+16 |
|\ \ | |/ | |||||
| * | Issue #22581: Use more "bytes-like object" throughout the docs and comments. | Serhiy Storchaka | 2014-12-05 | 2 | -14/+16 |
| | | |||||
* | | Issue #19676: Tweak documentation a bit. | Berker Peksag | 2014-11-25 | 1 | -2/+2 |
| | | | | | | | | | | | | * Updated version info to 3.5 * Fixed a markup error * Added a versionadded directive to namereplace_errors documentation | ||||
* | | Issue #19676: Added the "namereplace" error handler. | Serhiy Storchaka | 2014-11-25 | 1 | -0/+5 |
| | | |||||
* | | merge with 3.4 | Georg Brandl | 2014-10-31 | 1 | -4/+5 |
|\ \ | |/ | |||||
| * | #22613: remaining corrections in extending/reference docs (thanks Jacques ↵ | Georg Brandl | 2014-10-31 | 1 | -4/+5 |
| | | | | | | | | Ducasse) | ||||
* | | Doc: fix default role usage (except in unittest mock docs) | Georg Brandl | 2014-10-30 | 1 | -1/+1 |
| | | |||||
* | | merge with 3.4 | Georg Brandl | 2014-10-11 | 1 | -1/+3 |
|\ \ | |/ | |||||
| * | Closes #21687: delimiter in Py_SetPath is platform dependent | Georg Brandl | 2014-10-11 | 1 | -1/+3 |
| | | |||||
* | | (Merge 3.4) Closes #22580: Fix documentation of PyUnicode_Tailmatch() | Victor Stinner | 2014-10-09 | 1 | -1/+1 |
|\ \ | |/ | | | | | The result type is Py_ssize_t (and not int). | ||||
| * | Closes #22580: Fix documentation of PyUnicode_Tailmatch() | Victor Stinner | 2014-10-09 | 1 | -1/+1 |
| | | | | | | | | The result type is Py_ssize_t (and not int). |