aboutsummaryrefslogtreecommitdiff
Commit message (Collapse)AuthorAgeFilesLines
* bpo-8264: Document hasattr and getattr behavior for private attributes ↵Ken Jin2021-02-021-0/+2
| | | | | | | | (GH-23513) Clarify ``getattr`` and ``setattr`` requirements for accessing name-mangled attributes Co-Authored-By: Catalin Iacob <iacobcatalin@gmail.com>
* bpo-41229: Update docs for explicit aclose()-required cases and add ↵Joongi Kim2020-11-021-3/+13
| | | | | | | | | | | | | | | | | | | contextlib.aclosing() method (GH-21545) This is a PR to: * Add `contextlib.aclosing` which ia analogous to `contextlib.closing` but for async-generators with an explicit test case for [bpo-41229]() * Update the docs to describe when we need explicit `aclose()` invocation. which are motivated by the following issues, articles, and examples: * [bpo-41229]() * https://github.com/njsmith/async_generator * https://vorpus.org/blog/some-thoughts-on-asynchronous-api-design-in-a-post-asyncawait-world/#cleanup-in-generators-and-async-generators * https://www.python.org/dev/peps/pep-0533/ * https://github.com/achimnol/aiotools/blob/ef7bf0cea7af/src/aiotools/context.py#L152 Particuarly regarding [PEP-533](https://www.python.org/dev/peps/pep-0533/), its acceptance (`__aiterclose__()`) would make this little addition of `contextlib.aclosing()` unnecessary for most use cases, but until then this could serve as a good counterpart and analogy to `contextlib.closing()`. The same applies for `contextlib.closing` with `__iterclose__()`. Also, still there are other use cases, e.g., when working with non-generator objects with `aclose()` methods.
* bpo-42198: Link to GenericAlias in typing and expressions (GH-23030)kj2020-10-291-7/+1
| | | Follow up to 7cdf30fff39ea97f403b5472096349998d190e30 and 4173320920706b49a004bdddd8d7108e8984e3fc. This addresses the point "1. Update links in typing, subscription and union to point to GenericAlias." in the bpo for this PR.
* bpo-42010: [docs] Clarify subscription of types (GH-22822)kj2020-10-201-2/+13
|
* bpo-29981: Add examples and update index for set, dict, and generator ↵Florian Dahlitz2020-10-201-0/+4
| | | | | | comprehensions'(GH-20272) Co-authored-by: Rémi Lapeyre <remi.lapeyre@henki.fr>
* bpo-41762: Fix usage of productionlist markup in the doc (GH-22281)Victor Stinner2020-09-181-27/+27
| | | | | | | Use an unique identifier for the different grammars documented using the Sphinx productionlist markup. productionlist markups of the same grammar, like "expressions" or "compound statements", use the same identifier "python-grammar".
* bpo-39868: Add documentation for Assignment Expressions (walrus, PEP 572) ↵Shankar Jha2020-07-251-2/+19
| | | | (#18851)
* Fix misinformation about NaN != NaN comparison (GH-19357)Mark Dickinson2020-04-051-2/+3
|
* fix comma location in various places (GH-19233)Mathieu Dupuy2020-03-301-1/+1
|
* bpo-39868: Update Language Reference for PEP 572. (#18793)Brandt Bucher2020-03-051-3/+15
|
* bpo-35224: Additional documentation for Assignment Expressions (GH-15935)Emily Morehouse2019-09-111-0/+2
| | | | | | | | | | | | | Add or update assignment expression documentation for: - FAQ - Design - Reference - Expressions - Reference - Lexical Analysis https://bugs.python.org/issue35224 Automerge-Triggered-By: @matrixise
* bpo-33459: Fix "tuple displays" term in Expressions.rst (GH-6760)Andre Delfino2019-09-111-4/+4
| | | | | | | https://bugs.python.org/issue33459 Automerge-Triggered-By: @matrixise
* bpo-32118: Simplify docs for sequence comparison (GH-15450)Raymond Hettinger2019-08-241-19/+7
|
* bpo-35224: Reverse evaluation order of key: value in dict comprehensions ↵Jörn Heissler2019-06-221-0/+6
| | | | | | | | | | | (GH-14139) … as proposed in PEP 572; key is now evaluated before value. https://bugs.python.org/issue35224
* bpo-30969: Fix docs about the comparison in absence of __contains__ (GH-2761)Antti Haapala2019-05-301-5/+6
|
* bpo-34682: Wording and grammatical changes to the ↵divyag92019-05-131-11/+11
| | | | | doc(https://docs.python.org/3) (GH-13120) https://bugs.python.org/issue34682
* Correct misspelling (GH-11470)Johnny Gérard2019-05-121-1/+1
|
* bpo-35506: Remove redundant and incorrect links from keywords. (GH-11174)Serhiy Storchaka2018-12-191-20/+22
|
* Correct a couple of unbalanced parenthesis. (GH-10779)Andre Delfino2018-12-051-1/+1
|
* Add link to PEP 525 in Expressions. (GH-10333)Andrés Delfino2018-11-071-1/+5
|
* bpo-35054: Add yet more index entries for symbols. (GH-10121)Serhiy Storchaka2018-10-281-47/+39
|
* bpo-35054: Add more index entries for symbols. (GH-10064)Serhiy Storchaka2018-10-261-29/+116
|
* closes bpo-28955: Clarified comparisons between NaN and number in reference ↵Tony Flury2018-09-141-6/+5
| | | | | | documentation (GH-5982) Co-authored-by: Benjamin Peterson <benjamin@python.org>
* bpo-33702: Add some missing links in production lists and do a little polish ↵Andrés Delfino2018-07-071-7/+7
| | | | (GH-7259)
* bpo-33847: Add '@' operator entry to index (GH-7669)Andrés Delfino2018-06-151-1/+3
|
* bpo-33852: Remove misplaced parentheses around 'list'. (GH-7672)Andrés Delfino2018-06-151-1/+1
| | | 'expresson list' refers to the grammar term 'expression_list' in the subscription production.
* Fix lambda parameters being refered as arguments (GH-7037)Andrés Delfino2018-05-221-2/+2
|
* bpo-33260: Regenerate token.py after removing ASYNC and AWAIT. (GH-6447)Serhiy Storchaka2018-04-111-1/+1
|
* bpo-10544: Disallow "yield" in comprehensions and generator expressions. ↵Serhiy Storchaka2018-02-041-14/+9
| | | | (GH-4564)
* bpo-10544: Deprecate "yield" in comprehensions and generator expressions. ↵Serhiy Storchaka2017-12-011-8/+53
| | | | | | | | | | | | | | (GH-4579) The current behaviour of yield expressions inside comprehensions and generator expressions is essentially an accident of implementation - it arises implicitly from the way the compiler handles yield expressions inside nested functions and generators. Since the current behaviour wasn't deliberately designed, and is inherently confusing, we're deprecating it, with no current plans to reintroduce it. Instead, our advice will be to use a named nested generator definition for cases where this behaviour is desired.
* bpo-31708: Allow async generator expressions in synchronous functions (#3905)Yury Selivanov2017-10-061-8/+10
|
* bpo-31501: Operator precedence description for arithmetic operators (#3633)svelankar2017-09-171-2/+2
|
* Fix typos in multiple `.rst` files (#1668)delirious-lettuce2017-05-191-1/+1
|
* bpo-28315: Improve code examples in docs (GH-1372)UltimateCoder2017-05-031-1/+1
| | | | | | Replace File "<stdin>", line 1, in ? with File "<stdin>", line 1, in <module>
* Remove outdated note about constraining of the bit shift right operand. (#1258)Serhiy Storchaka2017-04-221-5/+0
| | | The constrain was removed in bpo-29816.
* bpo-29952: Use usual terminology of dict (GH-917)cocoatomo2017-03-311-1/+1
| | | s/keys and elements/keys and values/
* bpo-16011 clarify that 'in' always returns a boolean valueAmit Kumar2017-03-281-9/+10
|
* Fix small typos in expressions.rst (GH-276)Jim Fasarakis-Hilliard2017-02-241-2/+2
|
* Issues #12067: Merge hash recommendation from 3.5Martin Panter2017-01-291-0/+4
|\
| * Issue #12067: Recommend that hash and equality be consistentMartin Panter2017-01-291-0/+4
| |
* | Issue #28954: Merge keyword argument syntax from 3.5Martin Panter2016-12-241-1/+1
|\|
| * Issue #28954: Add missing comma to keyword argument syntaxMartin Panter2016-12-241-1/+1
| |
* | Issue #28091: Document PEP 525 & PEP 530.Yury Selivanov2016-12-151-3/+163
|/ | | | Patch by Eric Appelt.
* Issue #26511: Reference the id() function in the 'is' and 'is not' docsRaymond Hettinger2016-09-111-2/+3
|
* Issue #26462: Doc: reduce literal_block warnings, fix syntax highlighting.Martin Panter2016-07-261-1/+3
| | | | Patch by Julien Palard.
* Issue #24136: Document generalized unpacking, PEP 448Martin Panter2016-06-121-24/+58
| | | | Based on patches by Konstantin Molchanov and Neil Girdhar.
* Issue #23921: Standardized documentation whitespace formatting.Serhiy Storchaka2016-05-101-1/+1
| | | | Original patch by James Edwards.
* Issue #26156: Make expressions grammar description more semantically correct.Serhiy Storchaka2016-05-081-2/+2
|
* Remove redundant leading zeroes in PEP references.Serhiy Storchaka2016-03-311-3/+3
|
* Issue #25161: Merge full stops from 3.4 into 3.5Martin Panter2015-10-101-1/+1
|\