[Python-bugs-list] [ python-Bugs-410207 ] correction to section 2.3: 'apply'
noreply@sourceforge.net
noreply@sourceforge.net
Tue, 20 Mar 2001 21:33:54 -0800
Bugs item #410207, was updated on 2001-03-20 17:10
You can respond by visiting:
http://sourceforge.net/tracker/?func=detail&atid=105470&aid=410207&group_id=5470
Category: Documentation
Group: None
>Status: Closed
Priority: 5
Submitted By: John Cook (johncook)
Assigned to: Fred L. Drake, Jr. (fdrake)
Summary: correction to section 2.3: 'apply'
Initial Comment:
In section 2.3, 'Built-in Functions', I think the
following description for 'apply' is incorrect:
"The function argument must be a callable object (a
user-defined or built-in function or method, or a
class object) and the args argument must be a sequence
(if it is not a tuple, the sequence is first converted
to a tuple). "
I suggest the following:
"The function argument must be a callable object (a
user-defined or built-in function or method, or a
class object) and the args argument must be a tuple
(if it is a sequence, the sequence is first converted
to a tuple)."
I found this in the Release 2.1 beta 1 version of the
Python documentation at:
http://python.sourceforge.net/devel-docs/
----------------------------------------------------------------------
>Comment By: Fred L. Drake, Jr. (fdrake)
Date: 2001-03-20 21:33
Message:
Logged In: YES
user_id=3066
Suggestion declined: because non-tuple sequences are
automatically converted to tuples, it makes no sense to say
that 'args' must be a tuple -- any sequence will do.
----------------------------------------------------------------------
Comment By: John Cook (johncook)
Date: 2001-03-20 17:33
Message:
Logged In: YES
user_id=178427
On further review, this is better:
"The function argument must be a callable object (a
user-defined or built-in function or method, or a
class object) and the args argument must be a tuple or a
sequence (if args is a sequence, apply converts the
sequence to a tuple)."
----------------------------------------------------------------------
You can respond by visiting:
http://sourceforge.net/tracker/?func=detail&atid=105470&aid=410207&group_id=5470