[Python-checkins] python/dist/src/Lib pyclbr.py,1.30,1.30.14.1

aleax at users.sourceforge.net aleax at users.sourceforge.net
Sun Nov 2 14:39:16 EST 2003


Update of /cvsroot/python/python/dist/src/Lib
In directory sc8-pr-cvs1:/tmp/cvs-serv8103
Modified Files:
 Tag: release23-maint
	pyclbr.py 
Log Message:
fix comments/docstring problems related to SF bug # 821818
Index: pyclbr.py
===================================================================
RCS file: /cvsroot/python/python/dist/src/Lib/pyclbr.py,v
retrieving revision 1.30
retrieving revision 1.30.14.1
diff -C2 -d -r1.30 -r1.30.14.1
*** pyclbr.py	3 Dec 2002 08:14:35 -0000	1.30
--- pyclbr.py	2 Nov 2003 19:39:14 -0000	1.30.14.1
***************
*** 8,18 ****
 where module is the name of a Python module, and path is an optional
 list of directories where the module is to be searched. If present,
! path is prepended to the system search path sys.path. The return
! value is a dictionary. The keys of the dictionary are the names of
! the classes defined in the module (including classes that are defined
! via the from XXX import YYY construct). The values are class
! instances of the class Class defined here. One special key/value pair
! is present for packages: the key '__path__' has a list as its value
! which contains the package search path.
 
 A class is described by the class Class in this module. Instances
--- 8,24 ----
 where module is the name of a Python module, and path is an optional
 list of directories where the module is to be searched. If present,
! path is prepended to the system search path sys.path. The return value
! is a dictionary. The keys of the dictionary are the names of the
! classes and top-level functions defined in the module (including ones
! that are defined via the from XXX import YYY construct). The values are
! instances of the classes Class and Function defined here. One special
! key/value pair is present for packages: the key '__path__' has as its
! value a list which contains the package search path.
! 
! (For compatibility, a function readmodule is also defined: it works just
! like readmodule_ex, but the dictionary it returns has only key/value
! pairs whose value is an instance of class Class, _not_ ones for which it
! would be an instance of Function. nor the special key/value pair for key
! '__path__' as described in the previous paragraph).
 
 A class is described by the class Class in this module. Instances
***************
*** 35,41 ****
 Instances of this class have the following instance variables:
 module -- the module name
! name -- the name of the class
! file -- the file in which the class was defined
! lineno -- the line in the file on which the class statement occurred
 """
 
--- 41,47 ----
 Instances of this class have the following instance variables:
 module -- the module name
! name -- the name of the function
! file -- the file in which the function was defined
! lineno -- the line in the file on which the def statement occurred
 """
 


More information about the Python-checkins mailing list

AltStyle によって変換されたページ (->オリジナル) /