documented writelines()
This commit is contained in:
parent
a84ec51965
commit
8b605eb06a
@ -294,9 +294,12 @@ operator (modulo) with a string left argument interprets this string
|
|||||||
as a C sprintf format string to be applied to the right argument, and
|
as a C sprintf format string to be applied to the right argument, and
|
||||||
returns the string resulting from this formatting operation.
|
returns the string resulting from this formatting operation.
|
||||||
|
|
||||||
Unless the format string requires exactly one argument, the right
|
The right argument should be a tuple with one item for each argument
|
||||||
argument should be a tuple of the correct size. The following format
|
required by the format string; if the string requires a single
|
||||||
characters are understood: \%, c, s, i, d, u, o, x, X, e, E, f, g, G.
|
argument, the right argument may also be a single non-tuple object.%
|
||||||
|
\footnote{A tuple object in this case should be a singleton.}
|
||||||
|
The following format characters are understood:
|
||||||
|
\%, c, s, i, d, u, o, x, X, e, E, f, g, G.
|
||||||
Width and precision may be a * to specify that an integer argument
|
Width and precision may be a * to specify that an integer argument
|
||||||
specifies the actual width or precision. The flag characters -, +,
|
specifies the actual width or precision. The flag characters -, +,
|
||||||
blank, \# and 0 are understood. The size specifiers h, l or L may be
|
blank, \# and 0 are understood. The size specifiers h, l or L may be
|
||||||
@ -605,6 +608,12 @@ Files have the following methods:
|
|||||||
Write a string to the file. There is no return value.
|
Write a string to the file. There is no return value.
|
||||||
\end{funcdesc}
|
\end{funcdesc}
|
||||||
|
|
||||||
|
\begin{funcdesc}{writelines}{list}
|
||||||
|
Write a list of strings to the file. There is no return value.
|
||||||
|
(The name is intended to match \code{readlines}; \code{writelines}
|
||||||
|
does not add line separators.)
|
||||||
|
\end{funcdesc}
|
||||||
|
|
||||||
\subsubsection{Internal Objects.}
|
\subsubsection{Internal Objects.}
|
||||||
|
|
||||||
(See the Python Reference Manual for these.)
|
(See the Python Reference Manual for these.)
|
||||||
|
@ -294,9 +294,12 @@ operator (modulo) with a string left argument interprets this string
|
|||||||
as a C sprintf format string to be applied to the right argument, and
|
as a C sprintf format string to be applied to the right argument, and
|
||||||
returns the string resulting from this formatting operation.
|
returns the string resulting from this formatting operation.
|
||||||
|
|
||||||
Unless the format string requires exactly one argument, the right
|
The right argument should be a tuple with one item for each argument
|
||||||
argument should be a tuple of the correct size. The following format
|
required by the format string; if the string requires a single
|
||||||
characters are understood: \%, c, s, i, d, u, o, x, X, e, E, f, g, G.
|
argument, the right argument may also be a single non-tuple object.%
|
||||||
|
\footnote{A tuple object in this case should be a singleton.}
|
||||||
|
The following format characters are understood:
|
||||||
|
\%, c, s, i, d, u, o, x, X, e, E, f, g, G.
|
||||||
Width and precision may be a * to specify that an integer argument
|
Width and precision may be a * to specify that an integer argument
|
||||||
specifies the actual width or precision. The flag characters -, +,
|
specifies the actual width or precision. The flag characters -, +,
|
||||||
blank, \# and 0 are understood. The size specifiers h, l or L may be
|
blank, \# and 0 are understood. The size specifiers h, l or L may be
|
||||||
@ -605,6 +608,12 @@ Files have the following methods:
|
|||||||
Write a string to the file. There is no return value.
|
Write a string to the file. There is no return value.
|
||||||
\end{funcdesc}
|
\end{funcdesc}
|
||||||
|
|
||||||
|
\begin{funcdesc}{writelines}{list}
|
||||||
|
Write a list of strings to the file. There is no return value.
|
||||||
|
(The name is intended to match \code{readlines}; \code{writelines}
|
||||||
|
does not add line separators.)
|
||||||
|
\end{funcdesc}
|
||||||
|
|
||||||
\subsubsection{Internal Objects.}
|
\subsubsection{Internal Objects.}
|
||||||
|
|
||||||
(See the Python Reference Manual for these.)
|
(See the Python Reference Manual for these.)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user