[New-bugs-announce] [issue2668] apply() documentation is slightly incorrect

Alexander Belopolsky report at bugs.python.org
Tue Apr 22 18:49:05 CEST 2008

New submission from Alexander Belopolsky <belopolsky at users.sourceforge.net>:

Current Doc/library/functions.rst says "The use of apply() is exactly
equivalent to function(*args, **keywords)." which is no longer correct
because f(*args, **keywords) notation allows use of an arbitrary mapping
as keywords in 2.6, but apply(f, args, keywords) does not.

I don't think changing the code to allow arbitrary mapping in apply is
worth the trouble and even mentioning this difference explicitly in the
apply() docs is probably not justified.

My recommendation is to just s/exactly equivalent/equivalent/ in the
sentence quote above.

assignee: georg.brandl
components: Documentation
messages: 65675
nosy: belopolsky, georg.brandl
severity: normal
status: open
title: apply() documentation is slightly incorrect
versions: Python 2.6

Tracker <report at bugs.python.org>

More information about the New-bugs-announce mailing list