[Patches] [ python-Patches-830858 ] update docs for inspect module

SourceForge.net noreply at sourceforge.net
Fri Oct 31 10:37:00 EST 2003


Patches item #830858, was opened at 2003-10-27 10:22
Message generated for change (Comment added) made by loewis
You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=305470&aid=830858&group_id=5470

Category: Documentation
Group: Python 2.2.x
>Status: Closed
>Resolution: Accepted
Priority: 5
Submitted By: George Yoshida (quiver)
Assigned to: Nobody/Anonymous (nobody)
Summary: update docs for inspect module

Initial Comment:
The docs of inspect module says that,
"The nine functions whose names begin with ``is''"
but there are more functions like that.

www.python.org/doc/2.3.2/lib/inspect-types.html

After inspect module was introduced in 2.1,
ismethoddescriptor was added in 2.2 and 
isdatadescriptor was added in 2.3.

So for Python 2.2 the number is 10, and for Python 
2.3 the number is 11.

>>> import sys, inspect
>>> print sys.version
2.3.2 (#1, Oct  9 2003, 12:03:29)
[GCC 3.3.1 (cygming special)]
>>> filter(lambda x:x.startswith('is'), dir(inspect))
['isbuiltin', 'isclass', 'iscode', 'isdatadescriptor', 'isfra
me', 'isfunction', 'ismethod', 'ismethoddescriptor', 'is
module', 'isroutine', 'istraceback']
>>> len(_)
11


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

>Comment By: Martin v. Löwis (loewis)
Date: 2003-10-31 16:37

Message:
Logged In: YES 
user_id=21627

Thanks for the patch. Applied as

libinspect.tex 1.10.6.2, 1.13.10.1, and 1.14
test_inspect.py 1.12.8.1 and 1.13


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

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



More information about the Patches mailing list