summaryrefslogtreecommitdiffstats
path: root/Doc/tutorial
Commit message (Collapse)AuthorAgeFilesLines
* bpo-31582: Created a new documentation section describing sys.path ↵Russel Webber2022-03-231-0/+2
| | | | initialization (GH-31082)
* 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
* [doc] Enhance readability by avoiding big blocks for small numbers. (GH-31157)Julien Palard2022-02-061-9/+3
| | | | | | Initially reported by Gregory Jacob on the docs@ mailing list: https://mail.python.org/archives/list/docs@python.org/thread/VPSFGLOZOHSPF7TGPOI65AOH25TCPSVR/
* bpo-46328: Add sys.exception() (GH-30514)Irit Katriel2022-01-131-1/+1
|
* bpo-46270: Describe the `in` and `not in` operators as membership tests. ↵Raymond Hettinger2022-01-101-4/+6
| | | | (GH-30504)
* bpo-45292: [PEP-654] exception groups and except* documentation (GH-30158)Irit Katriel2022-01-061-0/+89
|
* bpo-34538: Remove Exception subclassing from tutorial (GH-30361)Hugo van Kemenade2022-01-031-35/+1
| | | | | | | Remove the bit about subclassing exceptions. Documentation PR can skip the NEWS label. Automerge-Triggered-By: GH:iritkatriel
* bpo-46079: Replace external link that is down for maintenance. (GH-30315)Raymond Hettinger2022-01-011-6/+6
|
* Fix the output of built-in iter() function example in Iterators (Section ↵Vivek Vashist2021-12-161-1/+1
| | | | | 9.8) of The Python Tutorial (GH-30110) Updated the output for it=iter(s) from <iterator object at 0x00A1DB50> to <str_iterator object at 0x10c90e650>
* 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>
* bpo-45916: Use HTTPS link for The Perils of Floating Point (GH-29896)Zachary Ware2021-12-021-1/+1
|
* Closes bpo-45712: Add missing word in control flow tutorial (GH-29460)1809092021-11-081-1/+1
|
* bpo-34451: Document prompt and output toggle feature in html tutorial (GH-27105)Thomas2021-10-211-0/+7
|
* bpo-45442: Add deactivate step to venv tutorial. (GH-28981)srinivasan2021-10-151-0/+5
| | | | | | | @vsajip Sorry for the trouble—made a [fairly significant] git error in the previous PR. Have edited the patch as you had said in #28959. Automerge-Triggered-By: GH:vsajip
* bpo-38623: Add note about site module (site-packages) (GH-16974)Peter Bittner2021-09-231-1/+2
|
* bpo-41203: Replace Mac OS X and OS X with macOS (GH-28515)Serhiy Storchaka2021-09-221-1/+1
| | | | | | | Replace old names when they refer to actual versions of macOS. Keep historical names in references to older versions. Co-authored-by: Patrick Reader <_@pxeger.com>
* bpo-39452: Rewrite and expand __main__.rst (#26883)Jack DeVries2021-08-241-0/+2
| | | | | | | Broadened scope of the document to explicitly discuss and differentiate between ``__main__.py`` in packages versus the ``__name__ == '__main__'`` expression (and the idioms that surround it), as well as ``import __main__``. Co-authored-by: Géry Ogam <gery.ogam@gmail.com> Co-authored-by: Éric Araujo <merwok@netwok.org> Co-authored-by: Łukasz Langa <lukasz@langa.pl>
* bpo-44966: Fix out-of-date traceback message (GH-27867)Raymond Hettinger2021-08-211-1/+1
|
* introduce omitted index default before using it (GH-27775)Jefferson Oliveira2021-08-171-8/+8
|
* bpo-44907: Update error messages in tutorial examples (GH-27755)meowmeowmeowcat2021-08-131-3/+3
|
* bpo-41576: document BaseException in favor of bare except (GH-21917)Thomas Grainger2021-08-061-8/+9
|
* bpo-44740: Lowercase "internet" and "web" where appropriate. (#27378)Mariusz Felisiak2021-07-263-4/+4
| | | Co-authored-by: Łukasz Langa <lukasz@langa.pl>
* bpo-40620: Clarify tutorial controlflow.rst ``range`` examples (GH-26919)jdevries31332021-06-271-14/+8
|
* bpo-43927: Change 'IOError' to 'OSError' (GH-26289)Terry Jan Reedy2021-05-211-1/+1
| | | This is the last remaining instance, at least for this chapter, in 3.10 & 3.11.
* bpo-35765: Clarify references to "object x" in the JSON tutorial (GH-22411)Zackery Spytz2021-05-181-1/+2
|
* bpo-43729: Clarify comment in tutorial example (GH-25191)Erlend Egeberg Aasland2021-05-141-1/+1
|
* 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-32822: Add finally with return/break/continue to the tutorial (#25600)Roberto Hueso2021-05-041-0/+4
| | | | | This documents in the tutorial docs the behavior of a finally clause in case it should re-raise an exception but contains a return/break/continue statement.
* Python 3.11.0a0Pablo Galindo2021-05-033-8/+8
|
* bpo-42589: Change URL for 'from' link when used in a raised exception (GH-23872)sblondon2021-04-291-1/+1
| | | | | Links for 'raise Exception from x' target to 'The raise statement' (7.8) section instead of 'The import statement' (7.11) section. There are more modified links than in the bug report because I searched some other ones which can get the same improvement.
* bpo-43777: Drop description of "pip search" command from tutorial (GH-25287)Bob Kline2021-04-141-13/+2
|
* bpo-43325: Add FAQ entry for identity tests (GH-25168)Raymond Hettinger2021-04-041-3/+2
|
* bpo-39231: correct tutorial annotations section (GH-25029)Irit Katriel2021-03-271-1/+1
|
* bpo-43319: Fixed the tutorial on venv about standard library (GH-24740)cmhzc2021-03-071-1/+1
| | | | | | | | | In the [official tutorial on virtual environment](https://docs.python.org/3/tutorial/venv.html#creating-virtual-environments) > This will create the tutorial-env directory if it doesn’t exist, and also create directories inside it containing a copy of the Python interpreter, **the standard library**, and various supporting files. According to the actual behavior of `venv` and [PEP 405](https://www.python.org/dev/peps/pep-0405/#id15)'s description about virtual environment, no standard library file is included in the virtual environment's directory. Automerge-Triggered-By: GH:vsajip
* 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.
* Doc: errors tutorial improvements (GH-16269)Adorilson Bezerra2021-01-311-21/+21
| | | | | | | | | | | Improvements: - Improvements in how try clause works section This suggestion is because the execution continues after *except*, not after *try* but before *except*. I guess this form more clear. - Surrounding some keywords with \*...\* For uniformity the highlighted terms - Adjust the number of chars per line to 80
* bpo-42179: Clarify exception chaining (GH-23160)Vladimir2020-12-161-4/+4
| | | | | | | | | | | | | | | | | * Update errors.rst Clarify exception chaining behaviour and give a reference to the library documentation. * Update errors.rst Wording * Update errors.rst Spelling * Update errors.rst Remove mentioning of special attributes as folks think it's too much for beginners.
* bpo-42489: Fix the signature for list.sort() in the tutorial (GH-23538)Zackery Spytz2020-11-281-1/+1
|
* bpo-17852: Doc: Fix the tutorial about closing files (GH-23135)Volker-Weissmann2020-11-271-5/+10
| | | Co-authored-by: Inada Naoki <songofacandy@gmail.com>
* bpo-42179: Doc/tutorial: Remove mention of __cause__ (GH-23162)Inada Naoki2020-11-061-9/+10
|
* [doc] Update references to NumPy (GH-22458)Andre Delfino2020-10-011-1/+1
| | | Numeric(al) Python to NumPy. It seems the old name hasn't been used for some time.
* Revert "Fix all Python Cookbook links (#22205)" (GH-22424)Andre Delfino2020-09-271-1/+1
| | | This commit reverts commit ac0333e1e117b7f61ed7ef1dbcdb6e515ada603b as the original links are working again and they provide extended features such as comments and alternative versions.
* Fix all Python Cookbook links (#22205)Andre Delfino2020-09-151-1/+1
|
* 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-40204: Fix reference to terms in the doc (GH-21865)Victor Stinner2020-08-141-1/+1
| | | | | | | | Sphinx 3 requires to refer to terms with the exact case. For example, fix the Sphinx 3 warning: Doc/library/pkgutil.rst:71: WARNING: term Loader not found in case sensitive match.made a reference to loader instead.
* Fix repeated words in Classes tutorial (GH-21455)Paul McMillan2020-07-141-2/+2
| | | | | The phrase "At any time during execution," was repeated twice. Automerge-Triggered-By: @Mariatta
* 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>