[Python-bugs-list] [ python-Bugs-517684 ] warnings.warn() misdocumented

noreply@sourceforge.net noreply@sourceforge.net
Tue, 12 Mar 2002 11:52:29 -0800


Bugs item #517684, was opened at 2002-02-14 15:17
You can respond by visiting: 
http://sourceforge.net/tracker/?func=detail&atid=105470&aid=517684&group_id=5470

Category: Documentation
Group: Python 2.2
>Status: Closed
>Resolution: Fixed
Priority: 5
Submitted By: Barry Warsaw (bwarsaw)
Assigned to: Fred L. Drake, Jr. (fdrake)
Summary: warnings.warn() misdocumented

Initial Comment:
warnings.warn() on
http://www.python.org/doc/current/lib/warning-functions.html
contains a sample function call.  The argument `level'
is not a valid keyword argument to warnings.warn(). 
The example should probably just be:

def deprecation(message):
    warnings.warn(message, DeprecationWarning, 2)


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

>Comment By: Fred L. Drake, Jr. (fdrake)
Date: 2002-03-12 14:52

Message:
Logged In: YES 
user_id=3066

Fixed in Doc/lib/libwarnings.tex revisions 1.7, 1.6.16.1,
and 1.5.4.1.

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

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