diff options
author | Fred Drake <fdrake@acm.org> | 2001-01-16 20:52:41 (GMT) |
---|---|---|
committer | Fred Drake <fdrake@acm.org> | 2001-01-16 20:52:41 (GMT) |
commit | 25be1931a0323d639daee5aac2c087359bd31c85 (patch) | |
tree | 280a04713c9533ece7dd6e3d861f45d2cf01cc36 /Doc | |
parent | b11bd03626f2c4bb545bac0ba2150d6e168faccd (diff) | |
download | cpython-25be1931a0323d639daee5aac2c087359bd31c85.zip cpython-25be1931a0323d639daee5aac2c087359bd31c85.tar.gz cpython-25be1931a0323d639daee5aac2c087359bd31c85.tar.bz2 |
Fix a few small markup/consistency nits.
Diffstat (limited to 'Doc')
-rw-r--r-- | Doc/lib/libshlex.tex | 14 |
1 files changed, 8 insertions, 6 deletions
diff --git a/Doc/lib/libshlex.tex b/Doc/lib/libshlex.tex index b908937..4ed928c 100644 --- a/Doc/lib/libshlex.tex +++ b/Doc/lib/libshlex.tex @@ -79,26 +79,28 @@ There is no corresponding `close' hook, but a shlex instance will call the \method{close()} method of the sourced input stream when it returns \EOF. -For more explicit control of source stacking, use the next two -methods. +For more explicit control of source stacking, use the +\method{push_source()} and \method{pop_source()} methods. \end{methoddesc} \begin{methoddesc}{push_source}{stream\optional{, filename}} Push an input source stream onto the input stack. If the filename argument is specified it will later be available for use in error messages. This is the same method used internally by the -\method{sourcehook} method. (New in 2.1) +\method{sourcehook} method. +\versionadded{2.1} \end{methoddesc} -\begin{methoddesc}{pop_source}{}} +\begin{methoddesc}{pop_source}{} Pop the last-pushed input source from the input stack. This is the same method used internally when the lexer reaches -\EOF on a stacked input stream. (New in 2.1) +\EOF on a stacked input stream. +\versionadded{2.1} \end{methoddesc} \begin{methoddesc}{error_leader}{\optional{file\optional{, line}}} This method generates an error message leader in the format of a -\UNIX{} C compiler error label; the format is '"\%s", line \%d: ', +\UNIX{} C compiler error label; the format is \code{'"\%s", line \%d: '}, where the \samp{\%s} is replaced with the name of the current source file and the \samp{\%d} with the current input line number (the optional arguments can be used to override these). |