summaryrefslogtreecommitdiffstats
path: root/Doc/tutorial/controlflow.rst
Commit message (Collapse)AuthorAgeFilesLines
* bpo-39231: correct tutorial annotations section (GH-25029)Miss Islington (bot)2021-03-271-1/+1
| | | | | (cherry picked from commit a53e9a7cf5912a44c5143e353912e44cfcfca7dc) Co-authored-by: Irit Katriel <iritkatriel@yahoo.com>
* bpo-43042: Augment tutorial sentence (GH-24514)Miss Islington (bot)2021-02-201-1/+2
| | | | | | Calling same function also gets new local namespace. (cherry picked from commit b30fcba3a8abaabd1087f2392ae8aec4c1b1f210) Co-authored-by: Terry Jan Reedy <tjreedy@udel.edu>
* bpo-41776: Revise example of "continue" in the tutorial documentation ↵Miss Islington (bot)2020-09-151-5/+5
| | | | | | | | | | (GH-22234) (GH-22256) Revise example of "continue" in the tutorial documentation (cherry picked from commit 7bcc6456ad4704da9b287c8045768fa53961adc5) Co-authored-by: Neeraj Samtani <neerajjsamtani@gmail.com> Co-authored-by: Neeraj Samtani <neerajjsamtani@gmail.com>
* Fix grammar in Doc/tutorial/controlflow.rst (GH-21885) (#21923)Miss Islington (bot)2020-08-221-1/+1
| | | | | | | Automerge-Triggered-By: @csabella (cherry picked from commit 0be7c216e16f0d459f1c8f6209734c9b2b82fbd4) Co-authored-by: Denis Ovsienko <denis@ovsienko.info>
* bpo-28681: Clarify multiple function names in the tutorial (GH-21340) (GH-21344)Miss Islington (bot)2020-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> (cherry picked from commit d12af71047f0eae86440654d3ea74c032c7c3558) Co-authored-by: Joannah Nanjekye <33177550+nanjekyejoannah@users.noreply.github.com> Co-authored-by: Joannah Nanjekye <33177550+nanjekyejoannah@users.noreply.github.com>
* Grammar fix in tutorial (GH-18425) (GH-18426)Miss Islington (bot)2020-02-101-1/+1
| | | | | | (cherry picked from commit 3ed4d251587c36c3853daf42602eaad121b59bba) Co-authored-by: Don Kirkby <donkirkby@users.noreply.github.com>
* bpo-37904: Edition on python tutorial - section 4 (GH-16169) (GH-16234)Miss Islington (bot)2019-09-181-2/+2
| | | | | | | | | | A little change on first paragraph of python tutorial to be more clearly https://bugs.python.org/issue37904 Automerge-Triggered-By: @ericvsmith (cherry picked from commit b57481318e3e3cbacd398b898f9849ec8f2d7eec) Co-authored-by: Diego Alberto Barriga Martínez <diegobarriga@protonmail.com>
* Doc: remove duplicate word in controlflow tutorial (GH-16163)Miss Islington (bot)2019-09-161-1/+1
| | | | | (cherry picked from commit b7af4e75657e6478920d00260c48a1a3020002fc) Co-authored-by: Adorilson Bezerra <adorilson@gmail.com>
* bpo-30826: Improve control flow examples (GH-15407) (GH-15410)Miss Islington (bot)2019-08-231-14/+14
| | | | | (cherry picked from commit 6fcb6cfb139ade1aac6dbee0b18ca72b18cbe0d2) Co-authored-by: Raymond Hettinger <rhettinger@users.noreply.github.com>
* Doc: Fix: Proper UpperCamelCase and lowercase. (GH-14644)Miss Islington (bot)2019-07-081-1/+1
| | | | | | Initial report by Michael Blankenship on docs@ (cherry picked from commit 2da622ff77a763327895656779370b80a833d95c) Co-authored-by: Julien Palard <julien@palard.fr>
* 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. ........
* Elaborate encoding recommendations, and fix ambiguous wording for list ↵Georg Brandl2009-06-081-1/+6
| | | | comprehensions.