File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff 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
You can’t perform that action at this time.
0 commit comments