@@ -141,7 +141,7 @@ \section{Built-in Functions \label{built-in-funcs}}
141141 If a class method is called for a derived class, the derived class
142142 object is passed as the implied first argument.
143143
144- Class methods are different than C++ or Java static methods.
144+ Class methods are different than \Cpp {} or Java static methods.
145145 If you want those, see \function {staticmethod()} in this section.
146146 \versionadded {2.2}
147147\end {funcdesc }
@@ -446,10 +446,10 @@ \section{Built-in Functions \label{built-in-funcs}}
446446 function is assumed, that is, all elements of \var {list} that are false
447447 (zero or empty) are removed.
448448
449- Note that \code {filter(function, list)} equals
450- \code {[item for item in list if function(item)]} if function is not
451- \code {None} and \code {[item for item in list if item]} if function is
452- None.
449+ Note that \code {filter(function, \var { list} )} is equivalent to
450+ \code {[item for item in \var { list} if function(item)]} if function is
451+ not \code {None} and \code {[item for item in \var { list} if item]} if
452+ function is \code { None} .
453453\end {funcdesc }
454454
455455\begin {funcdesc }{float}{\optional {x}}
@@ -890,7 +890,7 @@ \section{Built-in Functions \label{built-in-funcs}}
890890\begin {funcdesc }{slice}{\optional {start,} stop\optional {, step}}
891891 Return a slice object representing the set of indices specified by
892892 \code {range(\var {start}, \var {stop}, \var {step})}. The \var {start}
893- and \var {step} arguments default to None. Slice objects have
893+ and \var {step} arguments default to \code { None} . Slice objects have
894894 read-only data attributes \member {start}, \member {stop} and
895895 \member {step} which merely return the argument values (or their
896896 default). They have no other explicit functionality; however they
@@ -928,7 +928,8 @@ \section{Built-in Functions \label{built-in-funcs}}
928928 The \var {sequence}'s items are normally numbers, and are not allowed
929929 to be strings. The fast, correct way to concatenate sequence of
930930 strings is by calling \code {''.join(\var {sequence})}.
931- Note that \code {sum(range(n), m)} equals \code {reduce(operator.add, range(n), m)}
931+ Note that \code {sum(range(\var {n}), \var {m})} is equivalent to
932+ \code {reduce(operator.add, range(\var {n}), \var {m})}
932933 \versionadded {2.3}
933934\end {funcdesc }
934935
0 commit comments