[ python-Bugs-1039092 ] apply.__doc__ says "Deprecated since release 2.3"

SourceForge.net noreply at sourceforge.net
Sun Oct 3 00:33:44 CEST 2004


Bugs item #1039092, was opened at 2004-10-02 13:12
Message generated for change (Comment added) made by rhettinger
You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=105470&aid=1039092&group_id=5470

Category: Documentation
Group: Python 2.4
>Status: Closed
>Resolution: Wont Fix
Priority: 5
Submitted By: Jp Calderone (kuran)
Assigned to: Nobody/Anonymous (nobody)
Summary: apply.__doc__ says "Deprecated since release 2.3"

Initial Comment:
This is confusing, since using apply does not log a
DeprecationWarning, nor a PendingDeprecationWarning,
even in Python 2.4.  I think "Deprecated since release
2.3" should be removed or replaced with text indicating
that apply() is simply not preferred by all people.


----------------------------------------------------------------------

>Comment By: Raymond Hettinger (rhettinger)
Date: 2004-10-02 17:33

Message:
Logged In: YES 
user_id=80475

The function is in-fact deprecated (albiet at a glacial rate
waiting for Py3.0).  Rather that being "not preferred", it
should not be used at all.  The f(*args, **kwds) approach is
now the one way to do it.

In the docs, apply() was moved to a section for "things you
don't need to learn about but are still there."  We removed
the warning in Py2.4 because it was doing more harm than
good.  IOW, we can deprecate it without making people's
lives miserable.

----------------------------------------------------------------------

You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=105470&aid=1039092&group_id=5470


More information about the Python-bugs-list mailing list