mirror of
https://github.com/panda3d/panda3d.git
synced 2025-10-02 09:52:27 -04:00
*** empty log message ***
This commit is contained in:
parent
0f8878b268
commit
0a6c464275
@ -21,8 +21,17 @@ def indent(stream, numIndents, str):
|
|||||||
indentString = ' '
|
indentString = ' '
|
||||||
stream.write(indentString * numIndents + str)
|
stream.write(indentString * numIndents + str)
|
||||||
|
|
||||||
|
def pdir(obj, *args):
|
||||||
|
"""
|
||||||
|
Print out a formatted list of members and methods of an instance or class
|
||||||
|
"""
|
||||||
|
apply(apropos, (obj,) + args)
|
||||||
|
|
||||||
def apropos(obj, str = None, fOverloaded = 0, width = None,
|
def apropos(obj, str = None, fOverloaded = 0, width = None,
|
||||||
fTruncate = 1, lineWidth = 75):
|
fTruncate = 1, lineWidth = 75):
|
||||||
|
"""
|
||||||
|
Print out a formatted list of members and methods of an instance or class
|
||||||
|
"""
|
||||||
if type(obj) == types.InstanceType:
|
if type(obj) == types.InstanceType:
|
||||||
print "***************************INSTANCE INFO*****************************"
|
print "***************************INSTANCE INFO*****************************"
|
||||||
if type(obj) == types.DictionaryType:
|
if type(obj) == types.DictionaryType:
|
||||||
@ -81,8 +90,11 @@ def apropos(obj, str = None, fOverloaded = 0, width = None,
|
|||||||
apropos(obj.__class__, str = str )
|
apropos(obj.__class__, str = str )
|
||||||
|
|
||||||
def aproposAll(obj):
|
def aproposAll(obj):
|
||||||
|
"""
|
||||||
|
Print out a list of all members and methods (including overloaded methods)
|
||||||
|
of an instance or class
|
||||||
|
"""
|
||||||
apropos(obj, fOverloaded = 1, fTruncate = 0)
|
apropos(obj, fOverloaded = 1, fTruncate = 0)
|
||||||
|
|
||||||
|
|
||||||
def doc(obj):
|
def doc(obj):
|
||||||
if (isinstance(obj, types.MethodType)) or \
|
if (isinstance(obj, types.MethodType)) or \
|
||||||
|
Loading…
x
Reference in New Issue
Block a user