summaryrefslogtreecommitdiffstats
path: root/Doc/reference/expressions.rst
Commit message (Collapse)AuthorAgeFilesLines
* bpo-33459: Fix "tuple displays" term in Expressions.rst (GH-6760) (GH-15939)Miss Islington (bot)2019-09-111-4/+4
| | | | | | | | https://bugs.python.org/issue33459 Automerge-Triggered-By: @matrixise (cherry picked from commit dc269971091710563a0d730a0d4b084901826c15) Co-authored-by: Andre Delfino <adelfino@gmail.com>
* bpo-30969: Fix docs about the comparison in absence of __contains__ (GH-2761)Miss Islington (bot)2019-05-301-5/+6
| | | | | (cherry picked from commit 2f5b9dcc0a89cbde1499c76df81c36bfd5ef9aa8) Co-authored-by: Antti Haapala <antti@haapala.name>
* [3.7] bpo-34682: Wording and grammatical changes to the ↵Stéphane Wirtel2019-05-131-11/+11
| | | | | | | | doc(https://docs.python.org/3) (GH-13120) (GH-13281) https://bugs.python.org/issue34682 (cherry picked from commit 778a9107586e29421af3a08209cf0b557c1fe5bc) Co-authored-by: divyag9 <divyam9@gmail.com>
* [3.7] bpo-35506: Remove redundant and incorrect links from keywords. ↵Serhiy Storchaka2018-12-191-20/+22
| | | | | | (GH-11174). (GH-11232) (cherry picked from commit 2b57c43f21f891df4c6f2294a3b9e1b9029a16b6)
* Correct a couple of unbalanced parenthesis. (GH-10779)Miss Islington (bot)2018-12-051-1/+1
| | | | | (cherry picked from commit 55f41e45b4318cbe19209f5144641344d0049fb8) Co-authored-by: Andre Delfino <adelfino@gmail.com>
* Add link to PEP 525 in Expressions. (GH-10333)Miss Islington (bot)2018-11-071-1/+5
| | | | | (cherry picked from commit bfe1839aa994f0d84471254418a4ecfa7c7c9b9c) Co-authored-by: Andrés Delfino <adelfino@gmail.com>
* bpo-35054: Add yet more index entries for symbols. (GH-10121) (GH-10171)Miss Islington (bot)2018-10-281-47/+39
| | | | | (cherry picked from commit 913876d824d969f8c7431e8a9d4610a9a11a786e) Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
* [3.7] bpo-35054: Add more index entries for symbols. (GH-10064). (GH-10120)Serhiy Storchaka2018-10-261-29/+116
| | | | | (cherry picked from commit ddb961d2abe5d5fde76d85b21a77e4e91e0043ad) Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
* closes bpo-28955: Clarified comparisons between NaN and number in reference ↵Miss Islington (bot)2018-09-141-6/+5
| | | | | | | | documentation (GH-5982) Co-authored-by: Benjamin Peterson <benjamin@python.org> (cherry picked from commit ad8a0004206ba7aec5a8a60fce413da718080db2) Co-authored-by: Tony Flury <anthony.flury@btinternet.com>
* bpo-33702: Add some missing links in production lists and do a little polish ↵Miss Islington (bot)2018-07-071-7/+7
| | | | | | | (GH-7259) (cherry picked from commit caccca78e46bf3c3b24e09b3afb1c1b08c39990c) Co-authored-by: Andrés Delfino <adelfino@gmail.com>
* bpo-33847: Add '@' operator entry to index (GH-7669)Miss Islington (bot)2018-06-151-1/+3
| | | | | (cherry picked from commit 695118600fecaa7b95634e168ad7cbbc561fd1ec) Co-authored-by: Andrés Delfino <adelfino@gmail.com>
* bpo-33852: Remove misplaced parentheses around 'list'. (GH-7672)Miss Islington (bot)2018-06-151-1/+1
| | | | | | 'expresson list' refers to the grammar term 'expression_list' in the subscription production. (cherry picked from commit 4fddd4e4069aad9efad999d8d9ce3cd9fb523a5c) Co-authored-by: Andrés Delfino <adelfino@gmail.com>
* Fix lambda parameters being refered as arguments (GH-7037)Miss Islington (bot)2018-05-221-2/+2
| | | | | (cherry picked from commit 268cc7c3f8f58075b42ff0cd6b6c6c5d76044895) Co-authored-by: Andrés Delfino <adelfino@gmail.com>
* bpo-33260: Regenerate token.py after removing ASYNC and AWAIT. (GH-6447)Miss Islington (bot)2018-04-111-1/+1
| | | | | (cherry picked from commit d08972fdb92cad6b813d22205752c97ea18df060) Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
* 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-181-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-121-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
|\
| * Issue #25161: Add full stops in documentation; patch by Takase ArihiroMartin Panter2015-10-101-1/+1
| |
* | Issue #12067: Merge comparisons doc from 3.4 into 3.5Martin Panter2015-09-231-56/+188
|\ \ | |/
| * Issue #12067: Rewrite Comparisons section in the language referenceMartin Panter2015-09-231-56/+188
| | | | | | | | | | | | | | Some of the details of comparing mixed types were incorrect or ambiguous. NotImplemented is only relevant at a lower level than the Expressions chapter. Added details of comparing range() objects, and default behaviour and consistency suggestions for user-defined classes. Patch from Andy Maier.
* | merge 3.4 (#24610)Benjamin Peterson2015-07-111-1/+1
|\ \ | |/
| * fix normalization example (closes #24610)Benjamin Peterson2015-07-111-1/+1
| | | | | | | | Patch by Chris Angelico
* | Issue #24439: Improve PEP 492 related docs.Yury Selivanov2015-06-241-0/+1
| | | | | | | | Patch by Martin Panter.
* | Merge with 3.4Terry Jan Reedy2015-06-121-1/+1
|\ \ | |/
| * Closes issue #24405: mark set display as code.Terry Jan Reedy2015-06-121-1/+1
| |
* | Issue 24180: Documentation for PEP 492 changes.Yury Selivanov2015-05-211-1/+17
| |
* | PEP 479: Change StopIteration handling inside generators.Yury Selivanov2015-05-091-6/+6
| | | | | | | | Closes issue #22906.
* | Issue 24088: Clarify semantics of yield expression (merge from 3.4).Guido van Rossum2015-05-051-1/+1
|\ \ | |/
| * Issue 24088: Clarify semantics of yield expression.Guido van Rossum2015-05-051-1/+1
| |
* | Merge with 3.4Zachary Ware2015-02-201-1/+1
|\ \ | |/
| * Fix a typo pointed out on docs@Zachary Ware2015-02-201-1/+1
| |
* | Issue22988: clarify yield and exception blocksEthan Furman2015-01-151-4/+5
|\ \ | |/