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
52136a8b
Commit
52136a8b
authored
May 10, 2003
by
Raymond Hettinger
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fixed spacing and unbalanced brackets or parenthesis.
parent
71e00332
Changes
5
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
7 additions
and
6 deletions
+7
-6
Doc/lib/libarray.tex
Doc/lib/libarray.tex
+1
-1
Doc/lib/libftplib.tex
Doc/lib/libftplib.tex
+2
-2
Doc/lib/liboptparse.tex
Doc/lib/liboptparse.tex
+1
-0
Doc/lib/libos.tex
Doc/lib/libos.tex
+2
-2
Doc/lib/libtimeit.tex
Doc/lib/libtimeit.tex
+1
-1
No files found.
Doc/lib/libarray.tex
View file @
52136a8b
...
...
@@ -229,5 +229,5 @@ array('d', [1.0, 2.0, 3.14])
\url
{
http://numpy.sourceforge.net/
}
for further information
about Numerical Python. (A PDF version of the NumPy manual
is available at
\url
{
http://numpy.sourceforge.net/numdoc/numdoc.pdf
}
.
}
\url
{
http://numpy.sourceforge.net/numdoc/numdoc.pdf
}
)
.
}
\end{seealso}
Doc/lib/libftplib.tex
View file @
52136a8b
...
...
@@ -160,7 +160,7 @@ same thing as in the \method{transfercmd()} method.
\begin{methoddesc}
{
retrlines
}{
command
\optional
{
, callback
}}
Retrieve a file or directory listing in
\ASCII
{}
transfer mode.
\var
{
command
}
should be an appropriate
\samp
{
RETR
}
command (see
\method
{
retrbinary()
}
or a
\samp
{
LIST
}
command (usually just the string
\method
{
retrbinary()
}
)
or a
\samp
{
LIST
}
command (usually just the string
\code
{
'LIST'
}
). The
\var
{
callback
}
function is called for each line,
with the trailing CRLF stripped. The default
\var
{
callback
}
prints
the line to
\code
{
sys.stdout
}
.
...
...
@@ -280,7 +280,7 @@ calls (see below).
\begin{methoddesc}
{
close
}{}
Close the connection unilaterally. This should not be applied to an
already closed connection
(
such as after a successful call to
already closed connection such as after a successful call to
\method
{
quit()
}
. After this call the
\class
{
FTP
}
instance should not
be used any more (after a call to
\method
{
close()
}
or
\method
{
quit()
}
you cannot reopen the connection by issuing another
...
...
Doc/lib/liboptparse.tex
View file @
52136a8b
...
...
@@ -962,6 +962,7 @@ parser = OptionParser(usage, option_list=[
make
_
option
(
"
--
file", dest
=
"filename",
help
=
"Input file to read data from"
)
,
make
_
option
(
"
--
secret", help
=
SUPPRESS
_
HELP
)
])
\end
{
verbatim
}
If
\module
{
optparse
}
sees either
\programopt
{
-
h
}
or
...
...
Doc/lib/libos.tex
View file @
52136a8b
...
...
@@ -453,7 +453,7 @@ this calls the native \cfunction{fsync()} function; on Windows, the
MS
\cfunction
{_
commit()
}
function.
If you're starting with a Python file object
\var
{
f
}
, first do
\code
{
\var
{
f
}
.flush()
}
, and then do
\code
{
os.fsync(
\var
{
f
}
.fileno()
}
,
\code
{
\var
{
f
}
.flush()
}
, and then do
\code
{
os.fsync(
\var
{
f
}
.fileno()
)
}
,
to ensure that all internal buffers associated with
\var
{
f
}
are written
to disk.
Availability:
\UNIX
, and Windows starting in 2.2.3.
...
...
@@ -884,7 +884,7 @@ the \ctype{stat} structure, namely:
\member
{
st
_
mode
}
(protection bits),
\member
{
st
_
ino
}
(inode number),
\member
{
st
_
dev
}
(device),
\member
{
st
_
nlink
}
(number of hard links,
\member
{
st
_
nlink
}
(number of hard links
)
,
\member
{
st
_
uid
}
(user ID of owner),
\member
{
st
_
gid
}
(group ID of owner),
\member
{
st
_
size
}
(size of file, in bytes),
...
...
Doc/lib/libtimeit.tex
View file @
52136a8b
...
...
@@ -52,7 +52,7 @@ The optional \var{file} argument directs where the traceback is sent;
it defaults to
\code
{
sys.stderr
}
.
\end{methoddesc}
\begin{methoddesc}
{
repeat
}{
\optional
{
repeat
\code
{
=3
}
\optional
{
,
\begin{methoddesc}
{
repeat
}{
\optional
{
repeat
\code
{
=3
}
\optional
{
,
number
\code
{
=1000000
}}}}
Call
\method
{
timeit()
}
a few times.
...
...
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