Commit 90df06e5 authored by George Yoshida's avatar George Yoshida

Add \exception markup

parent 2b161d90
...@@ -44,8 +44,8 @@ then the thread exits (but other threads continue to run). ...@@ -44,8 +44,8 @@ then the thread exits (but other threads continue to run).
\end{funcdesc} \end{funcdesc}
\begin{funcdesc}{interrupt_main}{} \begin{funcdesc}{interrupt_main}{}
Raise a KeyboardInterrupt in the main thread. A subthread can use this Raise a \exception{KeyboardInterrupt} exception in the main thread. A subthread
function to interrupt the main thread. can use this function to interrupt the main thread.
\versionadded{2.3} \versionadded{2.3}
\end{funcdesc} \end{funcdesc}
......
...@@ -47,7 +47,7 @@ An older entry point is retained for backward compatibility: ...@@ -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. call to the function should return one line of input as a string.
Alternately, \var{readline} may be a callable object that signals Alternately, \var{readline} may be a callable object that signals
completion by raising \exception{StopIteration}. 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 The second parameter, \var{tokeneater}, must also be a callable
object. It is called once for each token, with five arguments, object. It is called once for each token, with five arguments,
......
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