| Commit message (Collapse) | Author | Age | Files | Lines | |
|---|---|---|---|---|---|
| * | upgrade to Unicode 8.0.0 | Benjamin Peterson | 2015-06-27 | 1 | -2/+2 |
| | | |||||
| * | Issue #24439: Improve PEP 492 related docs. | Yury Selivanov | 2015-06-24 | 3 | -21/+78 |
| | | | | | Patch by Martin Panter. | ||||
| * | Issue #24400: Introduce a distinct type for 'async def' coroutines. | Yury Selivanov | 2015-06-22 | 1 | -3/+18 |
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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") | ||||
| * | Merge with 3.4 | Terry Jan Reedy | 2015-06-12 | 1 | -1/+1 |
| |\ | |||||
| | * | Closes issue #24405: mark set display as code. | Terry Jan Reedy | 2015-06-12 | 1 | -1/+1 |
| | | | |||||
| * | | merge | Raymond Hettinger | 2015-05-22 | 1 | -2/+1 |
| |\ \ | |/ | |||||
| | * | Issue #24219: Remove duplicate literal in docs. | Raymond Hettinger | 2015-05-22 | 1 | -2/+1 |
| | | | |||||
| * | | Issue 24180: Documentation for PEP 492 changes. | Yury Selivanov | 2015-05-21 | 3 | -1/+234 |
| | | | |||||
| * | | PEP 479: Change StopIteration handling inside generators. | Yury Selivanov | 2015-05-09 | 1 | -6/+6 |
| | | | | | | | | | Closes issue #22906. | ||||
| * | | Issue 24088: Clarify semantics of yield expression (merge from 3.4). | Guido van Rossum | 2015-05-05 | 1 | -1/+1 |
| |\ \ | |/ | |||||
| | * | Issue 24088: Clarify semantics of yield expression. | Guido van Rossum | 2015-05-05 | 1 | -1/+1 |
| | | | |||||
| * | | merge 3.4 (#24049) | Benjamin Peterson | 2015-04-24 | 1 | -4/+0 |
| |\ \ | |/ | |||||
| | * | remove dead *-import checking code (closes #24049) | Benjamin Peterson | 2015-04-24 | 1 | -4/+0 |
| | | | |||||
| * | | Issue #24029: Document the name binding behavior for submodule imports. | Barry Warsaw | 2015-04-22 | 1 | -0/+35 |
| |\ \ | |/ | |||||
| | * | Issue #24029: Document the name binding behavior for submodule imports. | Barry Warsaw | 2015-04-22 | 1 | -0/+35 |
| | | | |||||
| * | | Issue #23731: Implement PEP 488. | Brett Cannon | 2015-04-13 | 1 | -1/+1 |
| | | | | | | | | | | | | | 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. | ||||
| * | | Issue #23912: Fix code formatting in datamodel.rst. | Berker Peksag | 2015-04-11 | 1 | -3/+3 |
| |\ \ | |/ | | | | | Patch by James Edwards. | ||||
| | * | Issue #23912: Fix code formatting in datamodel.rst. | Berker Peksag | 2015-04-11 | 1 | -3/+3 |
| | | | | | | | | | Patch by James Edwards. | ||||
| * | | Merge with 3.4 | Zachary Ware | 2015-02-20 | 1 | -1/+1 |
| |\ \ | |/ | |||||
| | * | Fix a typo pointed out on docs@ | Zachary Ware | 2015-02-20 | 1 | -1/+1 |
| | | | |||||
| * | | Issue22988: clarify yield and exception blocks | Ethan Furman | 2015-01-15 | 1 | -4/+5 |
| |\ \ | |/ | |||||
| | * | Issue22988: clarify yield and exception blocks | Ethan Furman | 2015-01-15 | 1 | -4/+5 |
| | | | |||||
| * | | Issue20467: clarify __init__'s role | Ethan Furman | 2015-01-15 | 1 | -7/+11 |
| |\ \ | |/ | |||||
| | * | Issue20467: clarify __init__'s role | Ethan Furman | 2015-01-15 | 1 | -7/+11 |
| | |\ | |||||
| | | * | Issue20467: clarify __init__'s role | Ethan Furman | 2015-01-15 | 1 | -7/+11 |
| | | | | |||||
| | | * | #19953: Clarify the wording of the augmented assignment discussion. | R David Murray | 2014-03-09 | 1 | -5/+7 |
| | | | | | | | | | | | | | | | | Patch by Priya Pappachan, based on suggestions from Terry Reedy and myself. | ||||
| * | | | Issue #23014: Make importlib.abc.Loader.create_module() required when | Brett Cannon | 2015-01-09 | 1 | -1/+7 |
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | importlib.abc.Loader.exec_module() is also defined. Before this change, create_module() was optional **and** could return None to trigger default semantics. This change now reduces the options for choosing default semantics to one and in the most backporting-friendly way (define create_module() to return None). | ||||
| * | | | Merge 3.4 | Terry Jan Reedy | 2014-12-10 | 1 | -0/+6 |
| |\ \ \ | |/ / | |||||
| | * | | Issue #23006: Improve the documentation and indexing of dict.__missing__. | Terry Jan Reedy | 2014-12-10 | 1 | -0/+6 |
| | | | | | | | | | | | | | | | | Add an entry in the language datamodel special methods section. Revise and index its discussion in the stdtypes mapping/dict section. | ||||
| * | | | Merge: #22918: Drop obsolete mention of 'keys' in datamodel __iter__ docs. | R David Murray | 2014-12-10 | 1 | -2/+1 |
| |\ \ \ | |/ / | |||||
| | * | | #22918: Drop obsolete mention of 'keys' in datamodel __iter__ docs. | R David Murray | 2014-12-10 | 1 | -2/+1 |
| | | | | | | | | | | | | | Patch by Chaitanya Agrawal. | ||||
| * | | | Issue22780: reword NotImplemented docs to emphasise should | Ethan Furman | 2014-11-27 | 1 | -1/+6 |
| |\ \ \ | |/ / | |||||
| | * | | (3.4) Issue22780: reword NotImplemented docs to emphasise should | Ethan Furman | 2014-11-27 | 1 | -1/+6 |
| | | | | |||||
| * | | | Issue #22834: Have import suppress FileNotFoundError when the current | Brett Cannon | 2014-11-21 | 1 | -0/+9 |
| | | | | | | | | | | | | | | | | | | | working directory no longer exists. Thanks to Martin Panter for the bug report. | ||||
| * | | | Issue #22242: Try to make some import-related loader details clearer. | Brett Cannon | 2014-11-07 | 1 | -1/+2 |
| | | | | | | | | | | | | | Thanks to Jon Poler for pointing this out. | ||||
| * | | | merge with 3.4 | Georg Brandl | 2014-10-31 | 6 | -45/+37 |
| |\ \ \ | |/ / | |||||
| | * | | #22613: remaining corrections in extending/reference docs (thanks Jacques ↵ | Georg Brandl | 2014-10-31 | 6 | -45/+37 |
| | | | | | | | | | | | | | Ducasse) | ||||
| * | | | merge with 3.4 | Georg Brandl | 2014-10-29 | 2 | -2/+2 |
| |\ \ \ | |/ / | |||||
| | * | | Fixing broken links in doc, part 3: the rest | Georg Brandl | 2014-10-29 | 2 | -2/+2 |
| | | | | |||||
| * | | | Merge with 3.4 | Georg Brandl | 2014-10-29 | 2 | -2/+2 |
| |\ \ \ | |/ / | |||||
| | * | | Use https:// URLs when referring to python.org hosts. | Georg Brandl | 2014-10-29 | 2 | -2/+2 |
| | | | | |||||
| * | | | Issue7186: document that __doc__ is not inherited by subclasses | Ethan Furman | 2014-10-18 | 1 | -1/+2 |
| |\ \ \ | |/ / | |||||
| | * | | Issue7186: document that __doc__ is not inherited by subclasses | Ethan Furman | 2014-10-18 | 1 | -1/+2 |
| | | | | |||||
| * | | | Merge: #18176: Change generic UCD PropList link to version specific link. | R David Murray | 2014-10-10 | 1 | -1/+3 |
| |\ \ \ | |/ / | |||||
| | * | | #18176: Change generic UCD PropList link to version specific link. | R David Murray | 2014-10-10 | 1 | -1/+3 |
| | | | | |||||
| * | | | Merge: #18176: fix another reference and add it to the makeunicodedata comment. | R David Murray | 2014-10-09 | 1 | -1/+1 |
| |\ \ \ | |/ / | |||||
| | * | | #18176: fix another reference and add it to the makeunicodedata comment. | R David Murray | 2014-10-09 | 1 | -1/+1 |
| | | | | |||||
| * | | | Merge with 3.4 | Terry Jan Reedy | 2014-09-30 | 1 | -1/+1 |
| |\ \ \ | |/ / | |||||
| | * | | Issue 22465: grammar, number agreement. | Terry Jan Reedy | 2014-09-30 | 1 | -1/+1 |
| | | | | |||||
| * | | | Issue #20643: Removed unneeded (and wrong) class directives. | Serhiy Storchaka | 2014-09-05 | 1 | -4/+1 |
| |\ \ \ | |/ / | |||||
