summaryrefslogtreecommitdiffstats
path: root/Doc/tutorial/errors.rst
Commit message (Collapse)AuthorAgeFilesLines
* gh-130080: implement PEP 765 (#130087)Irit Katriel2025-03-171-2/+6
|
* gh-116666: Add "token" glossary term (GH-130888)Petr Viktorin2025-03-171-5/+6
| | | | | | | | | Add glossary entry for `token`, and link to it. Avoid talking about tokens in the SyntaxError intro (errors.rst); at this point tokenization is too much of a technical detail. (Even to an advanced reader, the fact that a *single* token is highlighted isn't too relevant. Also, we don't need to guarantee that it's a single token.) Co-authored-by: Adam Turner <9087854+AA-Turner@users.noreply.github.com>
* gh-127265: Remove single quotes from 'arrow's in tutorial/errors.rst (GH-127267)funkyrailroad2024-11-251-1/+1
|
* Fix a typo in ``Doc/tutorial/errors.rst`` exception output (#126001)Bogdana Vereha2024-10-261-1/+1
|
* Update to 3.13 the output of exceptions raised (#123888)Rafael Fontenelle2024-09-131-3/+42
|
* gh-117597: Clarify exception handling in the tutorial (#117681)Nice Zombies2024-04-091-3/+3
|
* gh-116563: Update tutorial error example (#116569)Terry Jan Reedy2024-03-111-4/+4
| | | | | There now may be multiple carets pointing at a token rather than just a character. Fix the sentence about possible causes.
* gh-110383: Explained which error message is generated when there is an ↵Unique-Usman2023-11-191-2/+1
| | | | | | unhandled exception (#111574) Co-authored-by: Hugo van Kemenade <hugovk@users.noreply.github.com>
* gh-101100: Sphinx warnings: pick the low hanging fruits (GH-107386)Serhiy Storchaka2023-07-291-2/+2
|
* Reformat code block to make it easier to read (#106965)Joe Kaufeld2023-07-221-5/+14
|
* Doc: Add missing ref labels to exception groups/notes sections (#106465)C.A.M. Gerlach2023-07-061-0/+2
|
* [doc] Fix error in tutorial example: type(exc) is the type rather than the ↵Jens-Hilmar Bradt2023-03-221-1/+1
| | | | instance (#102751)
* [doc] fix typo (GH-99143)Doj2022-11-051-1/+1
|
* gh-97654: Add auto exception chaining example to tutorial (#97703)Shahriar Heidrich2022-10-051-5/+23
| | | Add auto exception chaining example to tutorial
* gh-89770: [PEP-678] add exception notes to tutorial (GH-30441)Irit Katriel2022-04-201-0/+64
|
* gh-90449: Improve accuracy and readability of exceptions tutorial (GH-31899)Irit Katriel2022-04-131-46/+54
|
* bpo-46328: Add sys.exception() (GH-30514)Irit Katriel2022-01-131-1/+1
|
* 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-44966: Fix out-of-date traceback message (GH-27867)Raymond Hettinger2021-08-211-1/+1
|
* bpo-41576: document BaseException in favor of bare except (GH-21917)Thomas Grainger2021-08-061-8/+9
|
* 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-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.
* 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.
* 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-42179: Doc/tutorial: Remove mention of __cause__ (GH-23162)Inada Naoki2020-11-061-9/+10
|
* Change 'exception happened' to 'exception occurred' in two places (#19767)Noah Doersing2020-05-011-1/+1
|
* bpo-39534: Doc: Clarify return in finally (GH-18324)Julien Palard2020-02-061-9/+27
|
* bpo-38130: Fix error in explaining when an exception is re-raised (GH-16016)Mohammad Dehghan2019-09-261-1/+1
| | | | Co-Authored-By: Ashwin Ramaswami <aramaswamis@gmail.com>
* Doc: Corrected syntax for return annotation (GH-16265)Jason Plurad2019-09-191-1/+1
| | | Signed-off-by: Jason Plurad <pluradj@us.ibm.com>
* Improve clarity of try-return-finally-return (GH-15677)toonarmycaptain2019-09-111-9/+22
| | | Clarify execution in try-return-finally-return case.
* bpo-37826: Document exception chaining in Python tutorial for errors. (GH-15243)Abhilash Raj2019-08-141-0/+47
| | | https://bugs.python.org/issue37826
* bpo-35506: Remove redundant and incorrect links from keywords. (GH-11174)Serhiy Storchaka2018-12-191-10/+10
|
* Fix a typo about a comma. (GH-10306)İsmail Arılık2018-11-031-1/+1
|
* Closes #28713 uses OSError in the tutorialKushal Das2016-11-161-1/+1
|
* Issue #21864: Remove outdated section about exceptions from the tutorialBerker Peksag2016-11-061-1/+31
| | | | | Move the still relevant parts of it to the previous chapter, "Errors and Exceptions".
* Issue #28815: Change '?' to '<module>' in some doc examples.Terry Jan Reedy2016-09-301-8/+8
| | | | Patch by Mariatta Wijaya.
* Issue #28306: Update exception message of ZeroDivisionErrorBerker Peksag2016-09-281-1/+1
|
* Issue 27719: Remove a doc example that is not applicable in Python 3Raymond Hettinger2016-08-121-23/+1
|
* Issue #23921: Standardized documentation whitespace formatting.Serhiy Storchaka2016-05-101-8/+8
| | | | Original patch by James Edwards.
* Issue #25523: Correct "a" article to "an" articleMartin Panter2015-11-021-1/+1
| | | | | | This changes the main documentation, doc strings, source code comments, and a couple error messages in the test suite. In some cases the word was removed or edited some other way to fix the grammar.
* Get rid of deprecated IOError in the docAndrew Svetlov2014-03-311-2/+2
|
* Fix ZeroDivisionError message (reported by Pavel Fedotov on docs@)Georg Brandl2013-10-061-1/+1
|
* Drop double newlines printed in some file iteration examples.Andrew Svetlov2012-12-081-2/+2
| | | | Patch by Steven Kryskalla.
* Merged revisions 74817-74820,74822-74824 via svnmerge fromGeorg Brandl2009-09-161-3/+4
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | svn+ssh://pythondev@svn.python.org/python/trunk ........ r74817 | georg.brandl | 2009-09-16 11:05:11 +0200 (Mi, 16 Sep 2009) | 1 line Make deprecation notices as visible as warnings are right now. ........ r74818 | georg.brandl | 2009-09-16 11:23:04 +0200 (Mi, 16 Sep 2009) | 1 line #6880: add reference to classes section in exceptions section, which comes earlier. ........ r74819 | georg.brandl | 2009-09-16 11:24:57 +0200 (Mi, 16 Sep 2009) | 1 line #6876: fix base class constructor invocation in example. ........ r74820 | georg.brandl | 2009-09-16 11:30:48 +0200 (Mi, 16 Sep 2009) | 1 line #6891: comment out dead link to Unicode article. ........ r74822 | georg.brandl | 2009-09-16 12:12:06 +0200 (Mi, 16 Sep 2009) | 1 line #5621: refactor description of how class/instance attributes interact on a.x=a.x+1 or augassign. ........ r74823 | georg.brandl | 2009-09-16 15:06:22 +0200 (Mi, 16 Sep 2009) | 1 line Remove strange trailing commas. ........ r74824 | georg.brandl | 2009-09-16 15:11:06 +0200 (Mi, 16 Sep 2009) | 1 line #6892: fix optparse example involving help option. ........
* #4144: fix output of console sessions.Georg Brandl2009-05-171-2/+2
|
* Remove trailing whitespace.Georg Brandl2009-01-031-9/+9
|
* Merged revisions 66457-66459,66465-66468,66483-66485,66487-66491 via ↵Benjamin Peterson2008-09-171-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | svnmerge from svn+ssh://pythondev@svn.python.org/python/trunk ........ r66457 | antoine.pitrou | 2008-09-13 15:30:30 -0500 (Sat, 13 Sep 2008) | 5 lines Issue #3850: Misc/find_recursionlimit.py was broken. Reviewed by A.M. Kuchling. ........ r66458 | benjamin.peterson | 2008-09-13 17:54:43 -0500 (Sat, 13 Sep 2008) | 1 line fix a name issue; note all doc files should be encoded in utf8 ........ r66459 | benjamin.peterson | 2008-09-14 11:02:22 -0500 (Sun, 14 Sep 2008) | 1 line clarify that radix for int is not 'guessed' ........ r66465 | skip.montanaro | 2008-09-14 21:03:05 -0500 (Sun, 14 Sep 2008) | 3 lines Review usage. Fix a mistake in the new-style class definition. Add a couple new definitions (CPython and virtual machine). ........ r66466 | skip.montanaro | 2008-09-14 21:19:53 -0500 (Sun, 14 Sep 2008) | 2 lines Pick up a few more definitions from the glossary on the wiki. ........ r66467 | benjamin.peterson | 2008-09-14 21:53:23 -0500 (Sun, 14 Sep 2008) | 1 line mention that object.__init__ no longer takes arbitrary args and kwargs ........ r66468 | andrew.kuchling | 2008-09-15 08:08:32 -0500 (Mon, 15 Sep 2008) | 1 line Rewrite item a bit ........ r66483 | georg.brandl | 2008-09-16 05:17:45 -0500 (Tue, 16 Sep 2008) | 2 lines Fix typo. ........ r66484 | benjamin.peterson | 2008-09-16 16:20:28 -0500 (Tue, 16 Sep 2008) | 2 lines be less wordy ........ r66485 | georg.brandl | 2008-09-17 03:45:54 -0500 (Wed, 17 Sep 2008) | 2 lines #3888: add some deprecated modules in whatsnew. ........ r66487 | skip.montanaro | 2008-09-17 06:50:36 -0500 (Wed, 17 Sep 2008) | 2 lines usage ........ r66488 | andrew.kuchling | 2008-09-17 07:57:04 -0500 (Wed, 17 Sep 2008) | 1 line Markup fixes ........ r66489 | andrew.kuchling | 2008-09-17 07:58:22 -0500 (Wed, 17 Sep 2008) | 2 lines Remove comment about improvement: pystone is about the same, and the improvements seem to be difficult to quantify ........ r66490 | andrew.kuchling | 2008-09-17 08:04:53 -0500 (Wed, 17 Sep 2008) | 1 line Note sqlite3 version; move item ........ r66491 | benjamin.peterson | 2008-09-17 16:54:56 -0500 (Wed, 17 Sep 2008) | 1 line document compileall command flags ........
* #3525: 3.0 exception changes in tutorial.Georg Brandl2008-08-081-19/+15
|