Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 8f9cd6a

Browse files
committed
Use :samp: role.
1 parent 861ac1f commit 8f9cd6a

1 file changed

Lines changed: 4 additions & 4 deletions

File tree

Doc/whatsnew/3.0.rst

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -696,15 +696,15 @@ new powerful features added:
696696
* Exceptions no longer behave as sequences. Use the :attr:`args`
697697
attribute instead.
698698

699-
* :pep:`3109`: Raising exceptions. You must now use :keyword:`raise`
700-
*Exception*(*args*) instead of :keyword:`raise` *Exception*, *args*.
699+
* :pep:`3109`: Raising exceptions. You must now use :samp:`raise
700+
{Exception}({args})` instead of :samp:`raise {Exception}, {args}`.
701701
Additionally, you can no longer explicitly specify a traceback;
702702
instead, if you *have* to do this, you can assign directly to the
703703
:attr:`__traceback__` attribute (see below).
704704

705705
* :pep:`3110`: Catching exceptions. You must now use
706-
:keyword:`except` *SomeException* :keyword:`as` *variable* instead
707-
of :keyword:`except` *SomeException*, *variable*. Moreover, the
706+
:samp:`except {SomeException} as {variable}` instead
707+
of :samp:`except {SomeException}, {variable}`. Moreover, the
708708
*variable* is explicitly deleted when the :keyword:`except` block
709709
is left.
710710

0 commit comments

Comments
 (0)