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

SourceForge.net noreply at sourceforge.net
Mon Oct 27 04:22:15 EST 2003


Patches item #830858, was opened at 2003-10-27 18:22
Message generated for change (Tracker Item Submitted) made by Item Submitter
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: Open
Resolution: None
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


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

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