Commit 8f9cd6a9 authored by Georg Brandl's avatar Georg Brandl

Use :samp: role.

parent 861ac1fb
...@@ -696,15 +696,15 @@ new powerful features added: ...@@ -696,15 +696,15 @@ new powerful features added:
* Exceptions no longer behave as sequences. Use the :attr:`args` * Exceptions no longer behave as sequences. Use the :attr:`args`
attribute instead. attribute instead.
* :pep:`3109`: Raising exceptions. You must now use :keyword:`raise` * :pep:`3109`: Raising exceptions. You must now use :samp:`raise
*Exception*(*args*) instead of :keyword:`raise` *Exception*, *args*. {Exception}({args})` instead of :samp:`raise {Exception}, {args}`.
Additionally, you can no longer explicitly specify a traceback; Additionally, you can no longer explicitly specify a traceback;
instead, if you *have* to do this, you can assign directly to the instead, if you *have* to do this, you can assign directly to the
:attr:`__traceback__` attribute (see below). :attr:`__traceback__` attribute (see below).
* :pep:`3110`: Catching exceptions. You must now use * :pep:`3110`: Catching exceptions. You must now use
:keyword:`except` *SomeException* :keyword:`as` *variable* instead :samp:`except {SomeException} as {variable}` instead
of :keyword:`except` *SomeException*, *variable*. Moreover, the of :samp:`except {SomeException}, {variable}`. Moreover, the
*variable* is explicitly deleted when the :keyword:`except` block *variable* is explicitly deleted when the :keyword:`except` block
is left. is left.
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment