Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
C
cpython
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
cpython
Commits
25be1931
Commit
25be1931
authored
Jan 16, 2001
by
Fred Drake
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix a few small markup/consistency nits.
parent
b11bd036
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
6 deletions
+8
-6
Doc/lib/libshlex.tex
Doc/lib/libshlex.tex
+8
-6
No files found.
Doc/lib/libshlex.tex
View file @
25be1931
...
...
@@ -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).
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment