mirror of https://github.com/python/cpython
Fixed spacing and unbalanced brackets or parenthesis.
This commit is contained in:
parent
71e0033200
commit
52136a8bea
|
@ -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}
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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),
|
||||
|
|
|
@ -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.
|
||||
|
||||
|
|
Loading…
Reference in New Issue