Kaydet (Commit) b062cb22 authored tarafından Fred Drake's avatar Fred Drake

Work around the problem of spaces after a "}" being dropped by LaTeX2HTML if

they were represented by newlines in the document source.
Partially fixes SF bug #493243.
üst e27f8682
...@@ -510,8 +510,8 @@ is equivalent to a call with M+N positional arguments ...@@ -510,8 +510,8 @@ is equivalent to a call with M+N positional arguments
A consequence of this is that although the \samp{*expression} syntax A consequence of this is that although the \samp{*expression} syntax
appears \emph{after} any keyword arguments, it is processed appears \emph{after} any keyword arguments, it is processed
\emph{before} the keyword arguments (and the \samp{**expression} \emph{before} the keyword arguments (and the
argument, if any -- see below). So: \samp{**expression} argument, if any -- see below). So:
\begin{verbatim} \begin{verbatim}
>>> def f(a, b): >>> def f(a, b):
...@@ -527,9 +527,9 @@ TypeError: f() got multiple values for keyword argument 'a' ...@@ -527,9 +527,9 @@ TypeError: f() got multiple values for keyword argument 'a'
1 2 1 2
\end{verbatim} \end{verbatim}
It is unusual for both keyword arguments and the \samp{*expression} It is unusual for both keyword arguments and the
syntax to be used in the same call, so in practice this confusion does \samp{*expression} syntax to be used in the same call, so in practice
not arise. this confusion does not arise.
If the syntax \samp{**expression} appears in the function call, If the syntax \samp{**expression} appears in the function call,
\samp{expression} must evaluate to a (subclass of) dictionary, the \samp{expression} must evaluate to a (subclass of) dictionary, the
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment