Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | Issue #25706: Fixed markup in the documentation. | Serhiy Storchaka | 2015-11-23 | 1 | -1/+1 |
|\ | |||||
| * | Issue #25706: Fixed markup in the documentation. | Serhiy Storchaka | 2015-11-23 | 1 | -1/+1 |
| | | |||||
* | | Issue #25523: Merge "a" to "an" fixes from 3.4 into 3.5 | Martin Panter | 2015-11-02 | 1 | -1/+1 |
|\ \ | |/ | |||||
| * | Issue #25523: Correct "a" article to "an" article | Martin Panter | 2015-11-02 | 1 | -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.5 | Martin Panter | 2015-10-10 | 3 | -3/+3 |
|\ \ | |/ | |||||
| * | Issue #25161: Add full stops in documentation; patch by Takase Arihiro | Martin Panter | 2015-10-10 | 3 | -3/+3 |
| | | |||||
* | | Issue #24808: Merge 3.4 into 3.5; adjust new tp_as_async field | Martin Panter | 2015-08-25 | 1 | -5/+5 |
|\ \ | |/ | |||||
| * | Issue #24808: Update the documentation of some PyTypeObject fields | Martin Panter | 2015-08-25 | 1 | -5/+5 |
| | | | | | | | | Patch by Joseph Weston. | ||||
* | | merge 3.4 (#24883) | Benjamin Peterson | 2015-08-18 | 1 | -4/+4 |
|\ \ | |/ | |||||
| * | 'Py_Buffer' should be 'Py_buffer' (closes #24883) | Benjamin Peterson | 2015-08-18 | 1 | -4/+4 |
| | | |||||
* | | Issue #23756: Clarify the terms "contiguous" and "bytes-like object". | Stefan Krah | 2015-08-08 | 2 | -7/+10 |
| | | | | | | | | Patch by Martin Panter. | ||||
* | | Merge 3.4 | Zachary Ware | 2015-07-07 | 1 | -3/+4 |
|\ \ | |/ | |||||
| * | Fix usage of the default role. | Zachary Ware | 2015-07-07 | 1 | -3/+4 |
| | | | | | | | | | | The changes to Doc/library/unittest.mock.rst are almost entirely a selective backport of the 3.5 page. | ||||
| * | Fix suspicious markup | Zachary Ware | 2015-07-07 | 1 | -1/+1 |
| | | |||||
* | | 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 |
|\ \ | |/ |