summaryrefslogtreecommitdiffstats
path: root/Doc/tutorial/controlflow.rst
Commit message (Collapse)AuthorAgeFilesLines
* gh-142411: Change documentation to reflect the new docstring adjustments in ↵decorator-factory2025-12-131-13/+10
| | | | 3.13 (#142413)
* GH-101100: Remove some entries from ``nitpick_ignore`` (#138464)Adam Turner2025-09-081-1/+1
|
* GH-138465: Improve documentation for common sequence methods (#138474)Adam Turner2025-09-051-1/+1
| | | | Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
* gh-138307: Update the Ellipsis documentation (#138306)Adorilson Bezerra2025-09-031-0/+7
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * Doc: Change Ellipsis doc at library/constants * Doc: Change Ellipsis doc at library/stdtypes * Doc: Add NumPy reference into Ellipsis doc at library/stdtypes * Doc: Add Ellipsis reference into the pass statement section at tutorial * Doc: Update Ellipsis doc concerns assignments at library/constants * Update Doc/library/stdtypes.rst Co-authored-by: Stan Ulbrych <89152624+StanFromIreland@users.noreply.github.com> * Doc: Fix grammar on Ellipsis docs (library/constants.rst) Co-authored-by: Éric <merwok@netwok.org> * Doc: Fix grammar on Ellipsis docs (library/stdtypes.rst) Co-authored-by: Éric <merwok@netwok.org> * Doc: Fix grammar on Ellipsis docs (library/stdtypes.rst) Co-authored-by: Éric <merwok@netwok.org> * Doc: Remove pretty printers reference from Ellipsis doc at library/stdtypes * Doc: Update index concerns Ellipsis object and pass statement * Doc: Improve Ellipsis doc at library/constants * Doc: Improve Ellipsis doc at library/stdtypes * Doc: Change the "..." glossary entry to mention the Ellipsis object * Doc: Some improvements concern ellipsis into typing doc * Minor update Doc/tutorial/controlflow.rst Co-authored-by: Ned Batchelder <ned@nedbatchelder.com> * Update Doc/library/constants.rst Co-authored-by: Ned Batchelder <ned@nedbatchelder.com> * Update Doc/library/stdtypes.rst Co-authored-by: Ned Batchelder <ned@nedbatchelder.com> --------- Co-authored-by: Stan Ulbrych <89152624+StanFromIreland@users.noreply.github.com> Co-authored-by: Éric <merwok@netwok.org> Co-authored-by: Ned Batchelder <ned@nedbatchelder.com>
* fix indent in `controlflow.rst` docs (#134008)Yongzi Li2025-05-181-1/+1
|
* gh-133881: add forward reference to `list.sort()` in lambda expression ↵Oleg Burnaev2025-05-171-1/+2
| | | | tutorial (#133910)
* GH-130153: Reword the wildcard matching part of the tutorial (GH-129954)Tshepang Mbambo2025-03-051-2/+3
|
* docs: restore an anchor to for/else (#126154)Ned Batchelder2024-10-301-0/+1
|
* gh-125383: Update `fib` function comment for accuracy (#125386)Wulian2024-10-131-2/+2
| | | `Doc/tutorial/controlflow.rst`: fix comment for `fib` function
* Doc: Fix a typo in "Function Examples" in the control-flow tutorial (#125338)Rafael Fontenelle2024-10-121-1/+1
|
* Docs: for for/else clarify that return or raise also skip the else (#124591)Ned Batchelder2024-09-271-2/+4
| | | Co-authored-by: Jelle Zijlstra <jelle.zijlstra@gmail.com>
* For-else deserves its own section in the tutorial (#123946)Ned Batchelder2024-09-251-31/+54
| | | | | | | | | | | | | * For-else deserves its own section in the tutorial * remove mention of unrolling the loop * Update Doc/tutorial/controlflow.rst Co-authored-by: Jelle Zijlstra <jelle.zijlstra@gmail.com> --------- Co-authored-by: Jelle Zijlstra <jelle.zijlstra@gmail.com>
* gh-122944: Fix incorrect prompt strings in the Python Tutorial (#122949)Damien2024-08-121-2/+2
| | | | In the REPL, top level comments are followed by a primary, not secondary prompt. Fix the places in the in the tutorial that use the latter.
* gh-113113: doc: use less ambiguously named variable (gh-113114)jeremy-dolan2023-12-141-3/+3
|
* gh-101100: Fix Sphinx warnings in `tutorial/controlflow.rst` (#109424)Maciej Olko2023-09-291-2/+2
| | | | Co-authored-by: Adam Turner <9087854+AA-Turner@users.noreply.github.com>
* Improve references in the tutorial (GH-108069)Serhiy Storchaka2023-08-211-1/+1
| | | | | * Use full qualified names for references (even if they do not work now, they will work in future). * Silence references to examples.
* gh-107017: removed mention that C does it the same way (#107020)Jakub Červinka2023-07-231-8/+15
|
* gh-106780: Add __match_args__ to tutorial example (#106784)Terry Jan Reedy2023-07-171-1/+7
| | | | | Add Point definition with this attribute before example that needs it.
* gh-106625 : Add missing code to tutorial 4.6 example (#106623)RustyNail2023-07-111-2/+3
| | | | | | | | | | | | | | | * Added missing import statement. * Update Doc/tutorial/controlflow.rst * Update Doc/tutorial/controlflow.rst * Update controlflow.rst * Make point regular class with __init__. --------- Co-authored-by: Terry Jan Reedy <tjreedy@udel.edu>
* GH-97950: Use new-style index directive ('statement') (#104162)Adam Turner2023-05-041-1/+1
|
* Missing PS1 prompt in tutorial example (GH-98921)Manuel Kaufmann2022-11-011-2/+3
|
* Tutorial: specify match cases don't fall through (GH-93615)max2022-06-211-2/+4
|
* docs: Don't use code formatting for emphasis (GH-30519)William Andrea2022-03-081-1/+1
|
* docs: Link `match` statement in tutorial (GH-31396)William Andrea2022-02-181-1/+1
| | | | | | | | | Add a link to the `match` statement from its section in the tutorial. This should be backported to 3.10. [Initially submitted as #31395 but against the wrong branch. Thanks @Mariatta] Automerge-Triggered-By: GH:Mariatta
* bpo-46059: Clarify pattern-matching example in "control flow" docs (GH-30079)Alex Waygood2021-12-141-3/+5
| | | | | The "Color" example in the pattern-matching section of the "control flow" documentation is not immediately runnable, leading to confusion. Co-authored-by: Ken Jin <28750310+Fidget-Spinner@users.noreply.github.com>
* Closes bpo-45712: Add missing word in control flow tutorial (GH-29460)1809092021-11-081-1/+1
|
* bpo-44907: Update error messages in tutorial examples (GH-27755)meowmeowmeowcat2021-08-131-3/+3
|
* bpo-44740: Lowercase "internet" and "web" where appropriate. (#27378)Mariusz Felisiak2021-07-261-1/+1
| | | Co-authored-by: Łukasz Langa <lukasz@langa.pl>
* bpo-40620: Clarify tutorial controlflow.rst ``range`` examples (GH-26919)jdevries31332021-06-271-14/+8
|
* bpo-40640: doc -- add missing ... in example of Continue (#26055)Irit Katriel2021-05-121-0/+1
| | | Co-authored-by: Chas Belov <59780179+ChasBelov@users.noreply.github.com>
* bpo-39231: correct tutorial annotations section (GH-25029)Irit Katriel2021-03-271-1/+1
|
* 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
|