summaryrefslogtreecommitdiff
path: root/Doc/tutorial/controlflow.rst
Commit message (Collapse)AuthorAgeFilesLines
* bpo-28681: Clarify multiple function names in the tutorial (GH-21340)Joannah Nanjekye2020-07-051-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-221-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-091-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-221-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-281-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-271-2/+2
| | | This reverts commit dfd775a0b1aee51d842b20cdebd97cc52c0b32e7.
* Minor doc improvement (GH-10341)Andre Delfino2019-03-261-2/+2
| | | Change "star-operator" to "* operator".
* bpo-35566: Add links to annotation glossary term (GH-11291)Cheryl Sabella2018-12-231-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-201-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-04-011-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-151-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.
* Merged revisions 73190,73213,73257-73258,73260,73275,73294 via svnmerge fromGeorg Brandl2009-06-081-5/+13
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | svn+ssh://pythondev@svn.python.org/python/trunk ........ r73190 | georg.brandl | 2009-06-04 01:23:45 +0200 (Do, 04 Jun 2009) | 2 lines Avoid PendingDeprecationWarnings emitted by deprecated unittest methods. ........ r73213 | georg.brandl | 2009-06-04 12:15:57 +0200 (Do, 04 Jun 2009) | 1 line #5967: note that the C slicing APIs do not support negative indices. ........ r73257 | georg.brandl | 2009-06-06 19:50:05 +0200 (Sa, 06 Jun 2009) | 1 line #6211: elaborate a bit on ways to call the function. ........ r73258 | georg.brandl | 2009-06-06 19:51:31 +0200 (Sa, 06 Jun 2009) | 1 line #6204: use a real reference instead of "see later". ........ r73260 | georg.brandl | 2009-06-06 20:21:58 +0200 (Sa, 06 Jun 2009) | 1 line #6224: s/JPython/Jython/, and remove one link to a module nine years old. ........ r73275 | georg.brandl | 2009-06-07 22:37:52 +0200 (So, 07 Jun 2009) | 1 line Add Ezio. ........ r73294 | georg.brandl | 2009-06-08 15:34:52 +0200 (Mo, 08 Jun 2009) | 1 line #6194: O_SHLOCK/O_EXLOCK are not really more platform independent than lockf(). ........
* Remove trailing whitespace.Georg Brandl2009-01-031-26/+26
|
* Merged revisions ↵Benjamin Peterson2008-12-271-28/+6
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 67889-67892,67895,67898,67904-67907,67912,67918,67920-67921,67923-67924,67926-67927,67930,67943 via svnmerge from svn+ssh://pythondev@svn.python.org/python/trunk ................ r67889 | benjamin.peterson | 2008-12-20 19:04:32 -0600 (Sat, 20 Dec 2008) | 1 line sphinx.web is long gone ................ r67890 | benjamin.peterson | 2008-12-20 19:12:26 -0600 (Sat, 20 Dec 2008) | 1 line update readme ................ r67891 | benjamin.peterson | 2008-12-20 19:14:47 -0600 (Sat, 20 Dec 2008) | 1 line there are way too many places which need to have the current version added ................ r67892 | benjamin.peterson | 2008-12-20 19:29:32 -0600 (Sat, 20 Dec 2008) | 9 lines Merged revisions 67809 via svnmerge from svn+ssh://pythondev@svn.python.org/sandbox/trunk/2to3/lib2to3 ........ r67809 | benjamin.peterson | 2008-12-15 21:54:45 -0600 (Mon, 15 Dec 2008) | 1 line fix logic error ........ ................ r67895 | neal.norwitz | 2008-12-21 08:28:32 -0600 (Sun, 21 Dec 2008) | 2 lines Add Tarek for work on distutils. ................ r67898 | benjamin.peterson | 2008-12-21 15:00:53 -0600 (Sun, 21 Dec 2008) | 1 line compute DISTVERSION with patchlevel.py ................ r67904 | benjamin.peterson | 2008-12-22 14:44:58 -0600 (Mon, 22 Dec 2008) | 1 line less attitude ................ r67905 | benjamin.peterson | 2008-12-22 14:51:15 -0600 (Mon, 22 Dec 2008) | 1 line fix #4720: the format to PyArg_ParseTupleAndKeywords can now start with '|' ................ r67906 | benjamin.peterson | 2008-12-22 14:52:53 -0600 (Mon, 22 Dec 2008) | 1 line add NEWS note ................ r67907 | benjamin.peterson | 2008-12-22 16:12:19 -0600 (Mon, 22 Dec 2008) | 1 line silence compiler warning ................ r67912 | georg.brandl | 2008-12-23 06:37:21 -0600 (Tue, 23 Dec 2008) | 2 lines Fix missing "svn" command. ................ r67918 | georg.brandl | 2008-12-23 09:44:25 -0600 (Tue, 23 Dec 2008) | 2 lines Markup fix. ................ r67920 | benjamin.peterson | 2008-12-23 14:09:28 -0600 (Tue, 23 Dec 2008) | 1 line use a global variable, so the compiler doesn't optimize the assignment out ................ r67921 | benjamin.peterson | 2008-12-23 14:12:33 -0600 (Tue, 23 Dec 2008) | 1 line make global static ................ r67923 | benjamin.peterson | 2008-12-24 09:10:27 -0600 (Wed, 24 Dec 2008) | 1 line #4736 BufferRWPair.closed shouldn't try to call another property as a function ................ r67924 | benjamin.peterson | 2008-12-24 10:10:05 -0600 (Wed, 24 Dec 2008) | 1 line pretend exceptions don't exist a while longer ................ r67926 | tarek.ziade | 2008-12-24 13:10:05 -0600 (Wed, 24 Dec 2008) | 1 line fixed #4400 : distutils .pypirc default generated file was broken. ................ r67927 | benjamin.peterson | 2008-12-26 17:26:30 -0600 (Fri, 26 Dec 2008) | 1 line python version is included in file name now ................ r67930 | hirokazu.yamamoto | 2008-12-26 22:19:48 -0600 (Fri, 26 Dec 2008) | 2 lines Issue #4740: Use HIGHEST_PROTOCOL in pickle test. (There is no behavior difference in 2.x because HIGHEST_PROTOCOL == 2) ................ r67943 | alexandre.vassalotti | 2008-12-27 04:02:59 -0600 (Sat, 27 Dec 2008) | 2 lines Fix bogus unicode tests in pickletester. ................