summaryrefslogtreecommitdiffstats
path: root/Doc/glossary.rst
Commit message (Collapse)AuthorAgeFilesLines
* String annotations [PEP 563] (#4390)Guido van Rossum2018-01-261-7/+10
| | | | | | | | * Document `from __future__ import annotations` * Provide plumbing and tests for `from __future__ import annotations` * Implement unparsing the AST back to string form This is required for PEP 563 and as such only implements a part of the unparsing process that covers expressions.
* bpo-32377: improve __del__ docs and fix mention about resurrection (#4927)Antoine Pitrou2017-12-191-1/+2
| | | | | | * Fix #32377: improve __del__ docs and fix mention about resurrection * Mention that CPython only calls __del__ once.
* closes bpo-31650: PEP 552 (Deterministic pycs) implementation (#4575)Benjamin Peterson2017-12-091-0/+6
| | | | | | | | | | | | | | | | | | | | | | | | | Python now supports checking bytecode cache up-to-dateness with a hash of the source contents rather than volatile source metadata. See the PEP for details. While a fairly straightforward idea, quite a lot of code had to be modified due to the pervasiveness of pyc implementation details in the codebase. Changes in this commit include: - The core changes to importlib to understand how to read, validate, and regenerate hash-based pycs. - Support for generating hash-based pycs in py_compile and compileall. - Modifications to our siphash implementation to support passing a custom key. We then expose it to importlib through _imp. - Updates to all places in the interpreter, standard library, and tests that manually generate or parse pyc files to grok the new format. - Support in the interpreter command line code for long options like --check-hash-based-pycs. - Tests and documentation for all of the above.
* bpo-25910: Fixes redirection from http to https (#4674)Sanyam Khurana2017-12-061-1/+1
|
* bpo-18558: Clarify glossary entry for "Iterable" (#3732)Raymond Hettinger2017-09-251-1/+4
|
* bpo-26947: DOC: clarify wording on hashable in glossary (#948)csabella2017-04-021-3/+3
|
* bpo-29928: Add f-string to the Glossary (GH-864)Mariatta2017-03-301-0/+5
|
* bpo-29746: Update marshal docs to Python 3. (#547)Serhiy Storchaka2017-03-121-0/+7
|
* bpo-29770: remove outdated PYO related info (GH-590)Xiang Zhang2017-03-111-1/+1
|
* Issue #28091: Document PEP 525 & PEP 530.Yury Selivanov2016-12-151-0/+28
| | | | Patch by Eric Appelt.
* Issue #27985: Implement PEP 526 -- Syntax for Variable Annotations.Yury Selivanov2016-09-091-0/+12
| | | | Patch by Ivan Levkivskyi.
* Issue #27285: Document the deprecation of the pyvenv script.Brett Cannon2016-07-081-1/+1
| | | | | | | | | As part of the update, the documentation was updated to normalize around the term "virtual environment" instead of relying too heavily on "venv" for the same meaning and leading to inconsistent usage of either. Thanks to Steve Piercy for the patch.
* Issue #27186: Define what a "path-like object" is.Brett Cannon2016-06-241-0/+10
| | | | Thanks to Dusty Phillips for the initial patch.
* Merge from 3.5Berker Peksag2016-06-111-1/+1
|\
| * Fix typo and silence a Sphinx warning in Doc/glossary.rstBerker Peksag2016-06-111-1/+1
| |
* | Issue #26282: PyArg_ParseTupleAndKeywords() and Argument Clinic now supportSerhiy Storchaka2016-06-091-0/+2
|/ | | | positional-only and keyword parameters in the same function.
* Issue #27243: Fix __aiter__ protocolYury Selivanov2016-06-091-4/+3
|
* Issue #27076: Doc, comment and tests spelling fixesMartin Panter2016-05-261-1/+1
| | | | Most fixes to Doc/ and Lib/ directories by Ville Skyttä.
* Issue23675 - A tiny clarification in the MRO glossary term.Senthil Kumaran2016-01-101-1/+2
|
* Issue #23936: Clarify what finders are.Brett Cannon2015-12-041-6/+16
| | | | | Thanks to Raúl Cumplido for the bug report and Thomas Kluyver for the patch.
* Issue #25161: Merge full stops from 3.4 into 3.5Martin Panter2015-10-101-1/+1
|\
| * Issue #25161: Add full stops in documentation; patch by Takase ArihiroMartin Panter2015-10-101-1/+1
| |
* | Issue #25286: Merge dictionary view glossary from 3.4 into 3.5Martin Panter2015-10-071-7/+8
|\ \ | |/
| * Issue #25286: Dictionary views are not sequencesMartin Panter2015-10-071-7/+8
| | | | | | | | Also change glossary heading from view
* | Issue #23756: Clarify the terms "contiguous" and "bytes-like object".Stefan Krah2015-08-081-2/+16
| | | | | | | | Patch by Martin Panter.
* | Issue #24439: Improve PEP 492 related docs.Yury Selivanov2015-06-241-10/+11
| | | | | | | | Patch by Martin Panter.
* | Issue #24400: Introduce a distinct type for 'async def' coroutines.Yury Selivanov2015-06-221-8/+17
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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")
* | Issue 24180: Fixes by Berker Peksag.Yury Selivanov2015-05-211-12/+0
| |
* | Issue 24180: Documentation for PEP 492 changes.Yury Selivanov2015-05-211-0/+48
| |
* | Doc clarification / edification on the semantics of the 'w*' format unit.Larry Hastings2015-04-131-4/+11
| |
* | merge with 3.4Georg Brandl2015-01-151-1/+1
|\ \ | |/
| * Closes #23244: fix typo. Thanks Mayank Tripathi for the patch.Georg Brandl2015-01-151-1/+1
| |
* | Merge issue 19548 changes from 3.4Nick Coghlan2015-01-061-1/+4
|\ \ | |/
| * Issue 19548: update codecs module documentationNick Coghlan2015-01-061-1/+4
| | | | | | | | | | | | | | | | - clarified the distinction between text encodings and other codecs - clarified relationship with builtin open and the io module - consolidated documentation of error handlers into one section - clarified type constraints of some behaviours - added tests for some of the new statements in the docs
* | Issue #22696: Add function :func:`sys.is_finalizing` to know about ↵Antoine Pitrou2014-12-071-0/+13
| | | | | | | | interpreter shutdown.
* | Merge with 3.4Georg Brandl2014-10-291-3/+3
|\ \ | |/
| * Use https:// URLs when referring to python.org hosts.Georg Brandl2014-10-291-3/+3
| |
* | merge with 3.4Georg Brandl2014-10-061-2/+2
|\ \ | |/
| * Closes #21782: the default hash(x) is not exactly id(x) but derived from it.Georg Brandl2014-10-061-2/+2
| |
* | Merge issue #22295 fix from 3.4Nick Coghlan2014-09-061-0/+8
|\ \ | |/
| * Issue #22295: Adopt 'python -m pip' as the preferred invocationNick Coghlan2014-09-061-0/+8
| |
* | Merge with 3.4Terry Jan Reedy2014-08-231-1/+1
|\ \ | |/
| * Issue #22232 (partial fix): update Universal newlines Glossary entry.Terry Jan Reedy2014-08-231-1/+1
| |
| * Merge in all documentation changes since branching 3.4.0rc1.Larry Hastings2014-03-161-0/+8
| |
* | Issue #13742: Add key and reverse parameters to heapq.merge()Raymond Hettinger2014-05-301-3/+4
| |
* | Merge from 3.3Andrew Kuchling2014-02-151-0/+8
|\ \ | |/ |/|
| * #16728: Mention collections.abc.Sequence in 'sequence' glossary entryAndrew Kuchling2014-02-151-0/+8
| |
* | Issue #19713: Update importlib docs for module spec changes, including ↵Eric Snow2013-12-171-0/+4
| | | | | | | | deprecations.
* | Issue #18840: Introduce the json module in the tutorial, and deemphasize the ↵Antoine Pitrou2013-12-051-4/+20
|\ \ | |/ | | | | pickle module.
| * Issue #18840: Introduce the json module in the tutorial, and deemphasize the ↵Antoine Pitrou2013-12-051-4/+20
| | | | | | | | pickle module.