]> granicus.if.org Git - python/commitdiff
Add \exception markup
authorGeorge Yoshida <dynkin@gmail.com>
Sat, 13 May 2006 06:53:31 +0000 (06:53 +0000)
committerGeorge Yoshida <dynkin@gmail.com>
Sat, 13 May 2006 06:53:31 +0000 (06:53 +0000)
Doc/lib/libthread.tex
Doc/lib/libtokenize.tex

index 9e0c2025b161f92641dccadcd39dba67be27cfe1..9573ab3fb03674e87f7bbcbbf7d74450a2a6487c 100644 (file)
@@ -44,8 +44,8 @@ then the thread exits (but other threads continue to run).
 \end{funcdesc}
 
 \begin{funcdesc}{interrupt_main}{}
-Raise a KeyboardInterrupt in the main thread.  A subthread can use this
-function to interrupt the main thread.
+Raise a \exception{KeyboardInterrupt} exception in the main thread.  A subthread
+can use this function to interrupt the main thread.
 \versionadded{2.3}
 \end{funcdesc}
 
index cdbb4b8a32097c798ab4d46d727250f972331d84..8c9ad3eb79826fafa00de34aa42c42b7c241b08c 100644 (file)
@@ -47,7 +47,7 @@ An older entry point is retained for backward compatibility:
   call to the function should return one line of input as a string.
   Alternately, \var{readline} may be a callable object that signals
   completion by raising \exception{StopIteration}.
-  \versionchanged[Added StopIteration support]{2.5}
+  \versionchanged[Added \exception{StopIteration} support]{2.5}
 
   The second parameter, \var{tokeneater}, must also be a callable
   object.  It is called once for each token, with five arguments,