File tree Expand file tree Collapse file tree 1 file changed +5
-6
lines changed Expand file tree Collapse file tree 1 file changed +5
-6
lines changed Original file line number Diff line number Diff line change @@ -473,12 +473,11 @@ example:
473
473
Note that the syntax in ``except `` is to list all the exceptions that
474
474
are caught as a tuple, followed by an error message.
475
475
476
- If you are writing new code to Sage, you soon face the problem of choosing an
477
- exception most suitable for an errorneous situation. This is often a tricky
478
- business. The following aims to guide you in choosing from the most relevant
479
- exceptions to Sage developers. A method (or a function) accepts input described
480
- in the ``INPUT `` block of :ref: `the docstring <section-docstring-function >` and
481
- returns output. You may raise
476
+ A method or a function accepts input described in the ``INPUT `` block of
477
+ :ref: `the docstring <section-docstring-function >` and returns output. If the
478
+ input cannot be handled by the code, then it may raise an exception. The
479
+ following aims to guide you in choosing from the most relevant exceptions to
480
+ Sage:
482
481
483
482
- `TypeError <https://docs.python.org/3/library/exceptions.html#TypeError >`_:
484
483
if the input belongs to a class of objects that are not supported by the
You can’t perform that action at this time.
0 commit comments