@@ -126,14 +126,14 @@ \section{Built-in Functions}
126126\end {funcdesc }
127127
128128\begin {funcdesc }{dir}{}
129- XXX New functionality takes anything and looks in __dict__,
130- __methods__, __members__.
131-
132129 Without arguments, return the list of names in the current local
133- symbol table. With a module, class or class instance object as
134- argument (or anything else that has a \code {__dict__} attribute),
135- returns the list of names in that object's attribute dictionary.
136- The resulting list is sorted. For example:
130+ symbol table. With an argument, attempts to return a list of valid
131+ attribute for that object. This information is gleaned from the
132+ object's \code {__dict__}, \code {__methods__} and \code {__members__}
133+ attributes, if defined. The list is not necessarily complete; e.g.,
134+ for classes, attributes defined in base classes are not included,
135+ and for class instances, methods are not included.
136+ The resulting list is sorted alphabetically. For example:
137137
138138\bcode \begin {verbatim }
139139>>> import sys
@@ -146,8 +146,8 @@ \section{Built-in Functions}
146146\end {funcdesc }
147147
148148\begin {funcdesc }{divmod}{a\, b}
149- Take two numbers as arguments and return a pair of integers
150- consisting of their integer quotient and remainder. With mixed
149+ Take two numbers as arguments and return a pair of numbers consisting
150+ of their quotient and remainder when using long division . With mixed
151151 operand types, the rules for binary arithmetic operators apply. For
152152 plain and long integers, the result is the same as
153153 \code {(\var {a} / \var {b}, \var {a} \% {} \var {b})}.
@@ -249,7 +249,7 @@ \section{Built-in Functions}
249249
250250\begin {funcdesc }{hash}{object}
251251 Return the hash value of the object (if it has one). Hash values
252- are 32-bit integers. They are used to quickly compare dictionary
252+ are integers. They are used to quickly compare dictionary
253253 keys during a dictionary lookup. Numeric values that compare equal
254254 have the same hash value (even if they are of different types, e.g.
255255 1 and 1.0).
@@ -275,8 +275,8 @@ \section{Built-in Functions}
275275
276276\begin {funcdesc }{input}{\optional {prompt}}
277277 Almost equivalent to \code {eval(raw_input(\var {prompt}))}. Like
278- \code {raw_input()}, the \var {prompt} argument is optional, and GNU
279- readline is used when configured . The difference
278+ \code {raw_input()}, the \var {prompt} argument is optional, and the
279+ \code { readline} module is used when loaded . The difference
280280 is that a long input expression may be broken over multiple lines using
281281 the backslash convention.
282282\end {funcdesc }
@@ -348,7 +348,7 @@ \section{Built-in Functions}
348348 arbitrary size, possibly embedded in whitespace;
349349 this behaves identical to \code {string.atol(\var {x})}.
350350 Otherwise, the argument may be a plain or
351- long integer or a floating point number, and a long interger with
351+ long integer or a floating point number, and a long integer with
352352 the same value is returned. Conversion of floating
353353 point numbers to integers is defined by the C semantics;
354354 see the description of \code {int()}.
@@ -481,7 +481,7 @@ \section{Built-in Functions}
481481>>>
482482\end {verbatim }\ecode
483483
484- If the interpreter was built to use the GNU readline library , then
484+ If the \code {readline} module was loaded , then
485485\code {raw_input()} will use it to provide elaborate
486486line editing and history features.
487487\end {funcdesc }
0 commit comments