This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

classification
Title: correction to section 2.3: 'apply'
Type: Stage:
Components: Documentation Versions:
process
Status: closed Resolution: rejected
Dependencies: Superseder:
Assigned To: fdrake Nosy List: fdrake, johncook
Priority: normal Keywords:

Created on 2001-03-21 01:10 by johncook, last changed 2022-04-10 16:03 by admin. This issue is now closed.

Messages (3)
msg3984 - (view) Author: John Cook (johncook) Date: 2001-03-21 01:10
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/
msg3985 - (view) Author: John Cook (johncook) Date: 2001-03-21 01:33
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)."
msg3986 - (view) Author: Fred Drake (fdrake) (Python committer) Date: 2001-03-21 05:33
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.
History
Date User Action Args
2022-04-10 16:03:53adminsetgithub: 34204
2001-03-21 01:10:42johncookcreate