summaryrefslogtreecommitdiffstats
path: root/Doc/whatsnew
diff options
context:
space:
mode:
authorGeorg Brandl <georg@python.org>2008-12-15 09:16:15 (GMT)
committerGeorg Brandl <georg@python.org>2008-12-15 09:16:15 (GMT)
commit8f9cd6a9358f217a5ce4ae8d12fde82443125d93 (patch)
tree668c83a442e32601028bd5cee2a5423684e7eefe /Doc/whatsnew
parent861ac1fbaf17d076cf78a60b90e59c957a732637 (diff)
downloadcpython-8f9cd6a9358f217a5ce4ae8d12fde82443125d93.zip
cpython-8f9cd6a9358f217a5ce4ae8d12fde82443125d93.tar.gz
cpython-8f9cd6a9358f217a5ce4ae8d12fde82443125d93.tar.bz2
Use :samp: role.
Diffstat (limited to 'Doc/whatsnew')
-rw-r--r--Doc/whatsnew/3.0.rst8
1 files changed, 4 insertions, 4 deletions
diff --git a/Doc/whatsnew/3.0.rst b/Doc/whatsnew/3.0.rst
index f2d9362..678ad80 100644
--- a/Doc/whatsnew/3.0.rst
+++ b/Doc/whatsnew/3.0.rst
@@ -696,15 +696,15 @@ new powerful features added:
* Exceptions no longer behave as sequences. Use the :attr:`args`
attribute instead.
-* :pep:`3109`: Raising exceptions. You must now use :keyword:`raise`
- *Exception*(*args*) instead of :keyword:`raise` *Exception*, *args*.
+* :pep:`3109`: Raising exceptions. You must now use :samp:`raise
+ {Exception}({args})` instead of :samp:`raise {Exception}, {args}`.
Additionally, you can no longer explicitly specify a traceback;
instead, if you *have* to do this, you can assign directly to the
:attr:`__traceback__` attribute (see below).
* :pep:`3110`: Catching exceptions. You must now use
- :keyword:`except` *SomeException* :keyword:`as` *variable* instead
- of :keyword:`except` *SomeException*, *variable*. Moreover, the
+ :samp:`except {SomeException} as {variable}` instead
+ of :samp:`except {SomeException}, {variable}`. Moreover, the
*variable* is explicitly deleted when the :keyword:`except` block
is left.