summaryrefslogtreecommitdiff
path: root/Doc/tutorial/errors.rst
AgeCommit message (Collapse)AuthorLines
2020-02-06bpo-39534: Doc: Clarify return in finally (GH-18324)Miss Islington (bot)-5/+23
(cherry picked from commit 446463f8dbce0556be8020914f37089b63bb8ab6) Co-authored-by: Julien Palard <julien@palard.fr>
2019-09-26bpo-38130: Fix error in explaining when an exception is re-raised (GH-16016) ↵Miss Islington (bot)-1/+1
(GH-16415) Co-Authored-By: Ashwin Ramaswami <aramaswamis@gmail.com> (cherry picked from commit 1ad7be2f16cc9955f271f57a5089602bb41eee85) Co-authored-by: Mohammad Dehghan <md.unicorn@gmail.com>
2019-09-19[3.8] bpo-38218: Doc: Corrected syntax for return annotation (GH-16265) ↵Miss Islington (bot)-1/+1
(GH-16274) Signed-off-by: Jason Plurad <pluradj@us.ibm.com> (cherry picked from commit 9ab6038fe843e1193d795eb58fd5931b44be5a96) Co-authored-by: Jason Plurad <pluradj@us.ibm.com>
2019-09-11Improve clarity of try-return-finally-return (GH-15677) (GH-15981)Miss Islington (bot)-9/+22
Clarify execution in try-return-finally-return case. (cherry picked from commit 0cc27417f2cd399c432d7dda9aeca1d81af76936) Co-authored-by: toonarmycaptain <toonarmycaptain@hotmail.com>
2018-12-19bpo-35506: Remove redundant and incorrect links from keywords. (GH-11174)Serhiy Storchaka-10/+10
2018-11-03Fix a typo about a comma. (GH-10306)İsmail Arılık-1/+1
2016-11-16Closes #28713 uses OSError in the tutorialKushal Das-1/+1
2016-11-06Issue #21864: Remove outdated section about exceptions from the tutorialBerker Peksag-1/+31
Move the still relevant parts of it to the previous chapter, "Errors and Exceptions".
2016-09-30Issue #28815: Change '?' to '<module>' in some doc examples.Terry Jan Reedy-8/+8
Patch by Mariatta Wijaya.
2016-09-28Issue #28306: Update exception message of ZeroDivisionErrorBerker Peksag-1/+1
2016-08-12Issue 27719: Remove a doc example that is not applicable in Python 3Raymond Hettinger-23/+1
2016-05-10Issue #23921: Standardized documentation whitespace formatting.Serhiy Storchaka-8/+8
Original patch by James Edwards.
2015-11-02Issue #25523: Correct "a" article to "an" articleMartin Panter-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.
2014-04-01Get rid of deprecated IOError in the docAndrew Svetlov-2/+2
2013-10-06Fix ZeroDivisionError message (reported by Pavel Fedotov on docs@)Georg Brandl-1/+1
2012-12-08Drop double newlines printed in some file iteration examples.Andrew Svetlov-2/+2
Patch by Steven Kryskalla.
2009-09-16Merged revisions 74817-74820,74822-74824 via svnmerge fromGeorg Brandl-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. ........
2009-05-17#4144: fix output of console sessions.Georg Brandl-2/+2
2009-01-03Remove trailing whitespace.Georg Brandl-9/+9
2008-09-17Merged revisions 66457-66459,66465-66468,66483-66485,66487-66491 via ↵Benjamin Peterson-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 ........
2008-08-08#3525: 3.0 exception changes in tutorial.Georg Brandl-19/+15
2008-05-26Merged revisions 63655 via svnmerge fromBenjamin Peterson-1/+1
svn+ssh://pythondev@svn.python.org/python/trunk ........ r63655 | benjamin.peterson | 2008-05-25 19:54:22 -0500 (Sun, 25 May 2008) | 2 lines update the tutorial to use str.format ........
2008-05-13Convert a lot of print statements to print functions in docstrings,Neal Norwitz-1/+1
documentation, and unused/rarely used functions.
2008-05-12Remove many "versionchanged" items that didn't use the official markup,Georg Brandl-2/+1
but just some text embedded in the docs. Also remove paragraph about implicit relative imports from tutorial.
2008-04-07Bug #2565: The repr() of type objects now calls them 'class',Martin v. Löwis-1/+1
not 'type' - whether they are builtin types or not.
2008-01-30Merged revisions 60408-60440 via svnmerge fromChristian Heimes-2/+2
svn+ssh://pythondev@svn.python.org/python/trunk ........ r60425 | raymond.hettinger | 2008-01-29 20:52:09 +0100 (Tue, 29 Jan 2008) | 1 line CallMethod is faster with a NULL third-argument than with an empty format string. ........ r60431 | raymond.hettinger | 2008-01-30 01:01:07 +0100 (Wed, 30 Jan 2008) | 1 line Add isdisjoint() to the Set/MutableSet ABCs. ........ r60432 | raymond.hettinger | 2008-01-30 01:08:31 +0100 (Wed, 30 Jan 2008) | 1 line MutableSets support a remove() method. ........ r60433 | raymond.hettinger | 2008-01-30 01:51:58 +0100 (Wed, 30 Jan 2008) | 1 line Demonstrate new except/as syntax. ........ r60440 | christian.heimes | 2008-01-30 12:32:37 +0100 (Wed, 30 Jan 2008) | 1 line Patch #1970 by Antoine Pitrou: Speedup unicode whitespace and linebreak detection. The speedup is about 25% for split() (571 / 457 usec) and 35% (175 / 127 usec )for splitlines() ........
2007-09-27Revert r58075 (incorrect docs patch).Collin Winter-2/+2
2007-09-10Fix more raise statments in the docs.Collin Winter-1/+1
2007-09-10More two-argument raise cleanup in the tutorial.Collin Winter-4/+3
2007-09-10Fix docs that imply that tuples in except clauses must be parenthesized.Collin Winter-2/+2
2007-09-10Fix more two-arg raise statements.Collin Winter-2/+2
2007-09-04Convert all print statements in the docs.Georg Brandl-4/+4
2007-08-31Tutorial update for 3.0 by Paul Dubois.Guido van Rossum-29/+28
I had to fix a few markup issues in controlflow.rst and modules.rst. There's a unicode issue on line 448 in introduction.rst that someone else needs to fix.
2007-08-17No need to define raw_input(), input() does the same.Georg Brandl-7/+1
2007-08-15Move the 3k reST doc tree in place.Georg Brandl-0/+418