Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | bpo-8264: Document hasattr and getattr behavior for private attributes ↵ | Ken Jin | 2021-02-02 | 1 | -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 Kim | 2020-11-02 | 1 | -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) | kj | 2020-10-29 | 1 | -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) | kj | 2020-10-20 | 1 | -2/+13 |
| | |||||
* | bpo-29981: Add examples and update index for set, dict, and generator ↵ | Florian Dahlitz | 2020-10-20 | 1 | -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 Stinner | 2020-09-18 | 1 | -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 Jha | 2020-07-25 | 1 | -2/+19 |
| | | | | (#18851) | ||||
* | Fix misinformation about NaN != NaN comparison (GH-19357) | Mark Dickinson | 2020-04-05 | 1 | -2/+3 |
| | |||||
* | fix comma location in various places (GH-19233) | Mathieu Dupuy | 2020-03-30 | 1 | -1/+1 |
| | |||||
* | bpo-39868: Update Language Reference for PEP 572. (#18793) | Brandt Bucher | 2020-03-05 | 1 | -3/+15 |
| | |||||
* | bpo-35224: Additional documentation for Assignment Expressions (GH-15935) | Emily Morehouse | 2019-09-11 | 1 | -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 Delfino | 2019-09-11 | 1 | -4/+4 |
| | | | | | | | https://bugs.python.org/issue33459 Automerge-Triggered-By: @matrixise | ||||
* | bpo-32118: Simplify docs for sequence comparison (GH-15450) | Raymond Hettinger | 2019-08-24 | 1 | -19/+7 |
| | |||||
* | bpo-35224: Reverse evaluation order of key: value in dict comprehensions ↵ | Jörn Heissler | 2019-06-22 | 1 | -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 Haapala | 2019-05-30 | 1 | -5/+6 |
| | |||||
* | bpo-34682: Wording and grammatical changes to the ↵ | divyag9 | 2019-05-13 | 1 | -11/+11 |
| | | | | | doc(https://docs.python.org/3) (GH-13120) https://bugs.python.org/issue34682 | ||||
* | Correct misspelling (GH-11470) | Johnny Gérard | 2019-05-12 | 1 | -1/+1 |
| | |||||
* | bpo-35506: Remove redundant and incorrect links from keywords. (GH-11174) | Serhiy Storchaka | 2018-12-19 | 1 | -20/+22 |
| | |||||
* | Correct a couple of unbalanced parenthesis. (GH-10779) | Andre Delfino | 2018-12-05 | 1 | -1/+1 |
| | |||||
* | Add link to PEP 525 in Expressions. (GH-10333) | Andrés Delfino | 2018-11-07 | 1 | -1/+5 |
| | |||||
* | bpo-35054: Add yet more index entries for symbols. (GH-10121) | Serhiy Storchaka | 2018-10-28 | 1 | -47/+39 |
| | |||||
* | bpo-35054: Add more index entries for symbols. (GH-10064) | Serhiy Storchaka | 2018-10-26 | 1 | -29/+116 |
| | |||||
* | closes bpo-28955: Clarified comparisons between NaN and number in reference ↵ | Tony Flury | 2018-09-14 | 1 | -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 Delfino | 2018-07-07 | 1 | -7/+7 |
| | | | | (GH-7259) | ||||
* | bpo-33847: Add '@' operator entry to index (GH-7669) | Andrés Delfino | 2018-06-15 | 1 | -1/+3 |
| | |||||
* | bpo-33852: Remove misplaced parentheses around 'list'. (GH-7672) | Andrés Delfino | 2018-06-15 | 1 | -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 Delfino | 2018-05-22 | 1 | -2/+2 |
| | |||||
* | bpo-33260: Regenerate token.py after removing ASYNC and AWAIT. (GH-6447) | Serhiy Storchaka | 2018-04-11 | 1 | -1/+1 |
| | |||||
* | bpo-10544: Disallow "yield" in comprehensions and generator expressions. ↵ | Serhiy Storchaka | 2018-02-04 | 1 | -14/+9 |
| | | | | (GH-4564) | ||||
* | bpo-10544: Deprecate "yield" in comprehensions and generator expressions. ↵ | Serhiy Storchaka | 2017-12-01 | 1 | -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 Selivanov | 2017-10-06 | 1 | -8/+10 |
| | |||||
* | bpo-31501: Operator precedence description for arithmetic operators (#3633) | svelankar | 2017-09-17 | 1 | -2/+2 |
| | |||||
* | Fix typos in multiple `.rst` files (#1668) | delirious-lettuce | 2017-05-19 | 1 | -1/+1 |
| | |||||
* | bpo-28315: Improve code examples in docs (GH-1372) | UltimateCoder | 2017-05-03 | 1 | -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 Storchaka | 2017-04-22 | 1 | -5/+0 |
| | | | The constrain was removed in bpo-29816. | ||||
* | bpo-29952: Use usual terminology of dict (GH-917) | cocoatomo | 2017-03-31 | 1 | -1/+1 |
| | | | s/keys and elements/keys and values/ | ||||
* | bpo-16011 clarify that 'in' always returns a boolean value | Amit Kumar | 2017-03-28 | 1 | -9/+10 |
| | |||||
* | Fix small typos in expressions.rst (GH-276) | Jim Fasarakis-Hilliard | 2017-02-24 | 1 | -2/+2 |
| | |||||
* | Issues #12067: Merge hash recommendation from 3.5 | Martin Panter | 2017-01-29 | 1 | -0/+4 |
|\ | |||||
| * | Issue #12067: Recommend that hash and equality be consistent | Martin Panter | 2017-01-29 | 1 | -0/+4 |
| | | |||||
* | | Issue #28954: Merge keyword argument syntax from 3.5 | Martin Panter | 2016-12-24 | 1 | -1/+1 |
|\| | |||||
| * | Issue #28954: Add missing comma to keyword argument syntax | Martin Panter | 2016-12-24 | 1 | -1/+1 |
| | | |||||
* | | Issue #28091: Document PEP 525 & PEP 530. | Yury Selivanov | 2016-12-15 | 1 | -3/+163 |
|/ | | | | Patch by Eric Appelt. | ||||
* | Issue #26511: Reference the id() function in the 'is' and 'is not' docs | Raymond Hettinger | 2016-09-11 | 1 | -2/+3 |
| | |||||
* | Issue #26462: Doc: reduce literal_block warnings, fix syntax highlighting. | Martin Panter | 2016-07-26 | 1 | -1/+3 |
| | | | | Patch by Julien Palard. | ||||
* | Issue #24136: Document generalized unpacking, PEP 448 | Martin Panter | 2016-06-12 | 1 | -24/+58 |
| | | | | Based on patches by Konstantin Molchanov and Neil Girdhar. | ||||
* | Issue #23921: Standardized documentation whitespace formatting. | Serhiy Storchaka | 2016-05-10 | 1 | -1/+1 |
| | | | | Original patch by James Edwards. | ||||
* | Issue #26156: Make expressions grammar description more semantically correct. | Serhiy Storchaka | 2016-05-08 | 1 | -2/+2 |
| | |||||
* | Remove redundant leading zeroes in PEP references. | Serhiy Storchaka | 2016-03-31 | 1 | -3/+3 |
| | |||||
* | Issue #25161: Merge full stops from 3.4 into 3.5 | Martin Panter | 2015-10-10 | 1 | -1/+1 |
|\ |