round(): Mark the second (optional) parameter as optional, since it's

described that way.

setattr():  Clarify that the attribute doesn't need to exist to be set.
This commit is contained in:
Fred Drake 1998-08-24 20:30:07 +00:00
parent c859350fa6
commit 607f802886
1 changed files with 4 additions and 4 deletions

View File

@ -547,7 +547,7 @@ to return a string that would yield an object with the same value
when passed to \function{eval()}. when passed to \function{eval()}.
\end{funcdesc} \end{funcdesc}
\begin{funcdesc}{round}{x, n} \begin{funcdesc}{round}{x\optional{, n}}
Return the floating point value \var{x} rounded to \var{n} digits Return the floating point value \var{x} rounded to \var{n} digits
after the decimal point. If \var{n} is omitted, it defaults to zero. after the decimal point. If \var{n} is omitted, it defaults to zero.
The result is a floating point number. Values are rounded to the The result is a floating point number. Values are rounded to the
@ -558,9 +558,9 @@ when passed to \function{eval()}.
\begin{funcdesc}{setattr}{object, name, value} \begin{funcdesc}{setattr}{object, name, value}
This is the counterpart of \function{getattr()}. The arguments are an This is the counterpart of \function{getattr()}. The arguments are an
object, a string and an arbitrary value. The string must be the name object, a string and an arbitrary value. The string may name an
of one of the object's attributes. The function assigns the value to existing attribute or a new attribute. The function assigns the
the attribute, provided the object allows it. For example, value to the attribute, provided the object allows it. For example,
\code{setattr(\var{x}, '\var{foobar}', 123)} is equivalent to \code{setattr(\var{x}, '\var{foobar}', 123)} is equivalent to
\code{\var{x}.\var{foobar} = 123}. \code{\var{x}.\var{foobar} = 123}.
\end{funcdesc} \end{funcdesc}