summaryrefslogtreecommitdiffstats
path: root/Doc/tutorial/controlflow.rst
Commit message (Collapse)AuthorAgeFilesLines
* bpo-42128: Add documentation for pattern matching (PEP 634) (#24664)Daniel F Moisset2021-03-011-0/+169
| | | | | | | | | This is a first edition, ready to go out with the implementation. We'll iterate during the rest of the period leading up to 3.10.0. Co-authored-by: Carol Willing <carolcode@willingconsulting.com> Co-authored-by: Fidget-Spinner <28750310+Fidget-Spinner@users.noreply.github.com> Co-authored-by: Brandt Bucher <brandt@python.org> Co-authored-by: Raymond Hettinger <1623689+rhettinger@users.noreply.github.com> Co-authored-by: Guido van Rossum <guido@python.org>
* bpo-43042: Augment tutorial sentence (GH-24514)Terry Jan Reedy2021-02-201-1/+2
| | | Calling same function also gets new local namespace.
* bpo-41776: Revise example of "continue" in the tutorial documentation (GH-22234)Neeraj Samtani2020-09-151-5/+5
| | | Revise example of "continue" in the tutorial documentation
* Fix grammar in Doc/tutorial/controlflow.rst (GH-21885)Denis Ovsienko2020-08-191-1/+1
| | | Automerge-Triggered-By: @csabella
* bpo-28681: Clarify multiple function names in the tutorial (GH-21340)Joannah Nanjekye2020-07-061-5/+4
| | | | | | | | | * improve control flow docs * Add also Co-authored-by: Terry Jan Reedy <tjreedy@udel.edu> Co-authored-by: Terry Jan Reedy <tjreedy@udel.edu>
* bpo-40552 Add 'users' variable in code sample (tutorial 4.2). (GH-19992)Antoine2020-05-231-0/+3
| | | | | | | * Add 'users' variable in code sample. * 📜🤖 Added by blurb_it. Co-authored-by: blurb-it[bot] <43283697+blurb-it[bot]@users.noreply.github.com>
* Grammar fix in tutorial (GH-18425)Don Kirkby2020-02-101-1/+1
|
* bpo-37904: Edition on python tutorial - section 4 (GH-16169)Diego Alberto Barriga Martínez2019-09-171-2/+2
| | | | | | | | | | | A little change on first paragraph of python tutorial to be more clearly https://bugs.python.org/issue37904 Automerge-Triggered-By: @ericvsmith
* Doc: remove duplicate word in controlflow tutorial (GH-16163)Adorilson Bezerra2019-09-161-1/+1
|
* bpo-30826: Improve control flow examples (GH-15407)Raymond Hettinger2019-08-231-14/+14
|
* Doc: Fix: Proper UpperCamelCase and lowercase. (GH-14644)Julien Palard2019-07-081-1/+1
| | | Initial report by Michael Blankenship on docs@
* bpo-29414: Change 'the for statement is such an iterator' in Tutorial (GH-273)Marco Buttu2019-06-011-10/+16
|
* bpo-36739: Update controlflow.rst (GH-12983)pbhd2019-05-291-3/+5
| | | | in addition to global-statement also mention nonlocal-statement (in the paragraph describing access to variables which are non local to a function
* bpo-36540: Documentation for PEP570 - Python positional only arguments (#13202)Pablo Galindo2019-05-281-0/+170
| | | | | | | | | | | | | | | | | | * bpo-36540: Documentation for PEP570 - Python positional only arguments * fixup! bpo-36540: Documentation for PEP570 - Python positional only arguments * Update reference for compound statements * Apply suggestions from Carol Co-Authored-By: Carol Willing <carolcode@willingconsulting.com> * Update Doc/tutorial/controlflow.rst Co-Authored-By: Carol Willing <carolcode@willingconsulting.com> * Add extra bullet point and minor edits
* Doc: Add missing forward reference in the tutorial. (GH-13499)Julien Palard2019-05-281-3/+3
|
* Revert "Minor doc improvement (GH-10341)" (GH-12597)Raymond Hettinger2019-03-281-2/+2
| | | This reverts commit dfd775a0b1aee51d842b20cdebd97cc52c0b32e7.
* Minor doc improvement (GH-10341)Andre Delfino2019-03-271-2/+2
| | | Change "star-operator" to "* operator".
* bpo-35566: Add links to annotation glossary term (GH-11291)Cheryl Sabella2018-12-241-4/+4
|
* bpo-35506: Remove redundant and incorrect links from keywords. (GH-11174)Serhiy Storchaka2018-12-191-17/+17
|
* bpo-35110: Fix unintentional spaces around hyphens and dashes. (GH-10231)Serhiy Storchaka2018-10-311-2/+2
|
* bpo-35054: Add yet more index entries for symbols. (GH-10121)Serhiy Storchaka2018-10-281-2/+2
|
* bpo-35054: Add more index entries for symbols. (GH-10064)Serhiy Storchaka2018-10-261-3/+4
|
* Mention both relevant PEPs in function annotations tutorial (GH-6304)Neeraj Badlani2018-04-251-2/+2
| | | Patch by Neeraj Badlani.
* controlflow: Use full example for "5 through 9" (GH-5907)Steven M. Vascellaro2018-03-091-1/+1
| | | | Replace example result of "5 through 9" with complete list: "5, 6, 7, 8, 9". This format is more consistent with the surrounding examples.
* Clarification to the `break` statement (GH-2453)regexaurus2017-06-271-1/+1
| | | Clarify that the break statement breaks out of the innermost enclosing for or while loop.
* 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>
* bpo-29453: Remove reference to undefined dictionary ordering in Tutorial ↵Jim Fasarakis-Hilliard2017-02-211-6/+5
| | | | | | | | | (GH-140) As of Python 3.6 **kwargs are ordered, thus, remove the paragraph stating that ordering is undefined and change snippet to remove the unecessary sorted call. * Add sentence mentioning guaranteed output order of kwargs
* Issue #26462: Merge code block fixes from 3.5Martin Panter2016-07-291-1/+3
|\
| * Issue #26462: Doc: reduce literal_block warnings, fix syntax highlighting.Martin Panter2016-07-261-1/+3
| | | | | | | | Patch by Julien Palard.
* | Issue #23116: Merge from 3.5Berker Peksag2016-06-021-3/+3
|\ \ | |/
| * Issue #23116: Improve ask_ok() example in the Python tutorialBerker Peksag2016-06-021-3/+3
| |
* | Issue #23921: Standardized documentation whitespace formatting.Serhiy Storchaka2016-05-101-2/+2
|\ \ | |/ | | | | Original patch by James Edwards.
| * Issue #23921: Standardized documentation whitespace formatting.Serhiy Storchaka2016-05-101-2/+2
| | | | | | | | Original patch by James Edwards.
* | Minor clarification in tutorial.Georg Brandl2016-02-151-0/+3
|/
* Issue #23932: Update the tutorial section on function annotations.Zachary Ware2015-04-131-11/+10
| | | | Patch by Juti Noppornpitak.
* Get rid of deprecated IOError in the docAndrew Svetlov2014-03-311-1/+1
|
* Use different wordAndrew Kuchling2014-02-031-2/+1
|
* Fix indentation in doc example.Ezio Melotti2013-11-171-5/+5
|
* Use "lambda expression" as preferred to "lambda form".Georg Brandl2013-10-061-1/+1
|
* Closes #18646: improve lambda docs in tutorial. Original patch by Terry Reedy.Georg Brandl2013-10-061-11/+18
|
* Issue #14893: Add function annotation example to function tutorial.Andrew Svetlov2012-11-011-0/+34
| | | | Patch by Zachary Ware.
* Issue #16225: Add additional note to tutorial about changing sequence while ↵Chris Jerdonek2012-10-161-11/+11
| | | | looping.
* tutorial typo fixEli Bendersky2012-08-181-1/+1
|
* Issue #15630: Add an example for "continue" statement in the tutorial. Patch bySenthil Kumaran2012-08-121-3/+16
| | | | Daniel Ellis.
* Nudge readers towards a more accurate mental model for loop else clausesNick Coghlan2012-06-071-0/+7
|
* #6570: clarify tutorial section about keyword arguments.Ezio Melotti2011-12-131-18/+23
|
* Confirm that the prime example is actually correct. We get so many ↵Georg Brandl2011-08-081-0/+3
| | | | complaints about a "buggy example" on docs@python, let us hope this cuts them in half at least.
* Refrain from using inline suites.Georg Brandl2010-10-151-2/+4
|
* Wording fix.Georg Brandl2010-06-271-4/+1
|
* Merged revisions 76460 via svnmerge fromMark Dickinson2009-11-231-9/+9
| | | | | | | | | | svn+ssh://pythondev@svn.python.org/python/trunk ........ r76460 | mark.dickinson | 2009-11-23 16:39:05 +0000 (Mon, 23 Nov 2009) | 2 lines Issue #7369: Fibonacci series should start at 0 in tutorial example. ........