|
|
@@ -1,8 +1,15 @@
|
|
|
"""Inspectors allow you to visually browse through the members of
|
|
|
-various python objects. To open an inspector, import this module, and
|
|
|
-execute inspector.inspect(anObject) I start IDLE with this command
|
|
|
-line: idle.py -c "from inspector import inspect"
|
|
|
-so that I can just type: inspect(anObject) any time."""
|
|
|
+various Python objects. To open an inspector, import this module, and
|
|
|
+execute ``inspector.inspect(anObject)``.
|
|
|
+
|
|
|
+I start IDLE with this command line::
|
|
|
+
|
|
|
+ idle.py -c "from inspector import inspect"
|
|
|
+
|
|
|
+so that I can just type: ``inspect(anObject)`` any time.
|
|
|
+
|
|
|
+See :ref:`inspection-utilities` for more information.
|
|
|
+"""
|
|
|
|
|
|
|
|
|
__all__ = ['inspect', 'inspectorFor', 'Inspector', 'ModuleInspector', 'ClassInspector', 'InstanceInspector', 'FunctionInspector', 'InstanceMethodInspector', 'CodeInspector', 'ComplexInspector', 'DictionaryInspector', 'SequenceInspector', 'SliceInspector', 'InspectorWindow']
|
|
|
@@ -13,6 +20,9 @@ import Pmw
|
|
|
### public API
|
|
|
|
|
|
def inspect(anObject):
|
|
|
+ """Opens up a window for visually inspecting the details of a given Python
|
|
|
+ object. See :ref:`inspection-utilities`.
|
|
|
+ """
|
|
|
inspector = inspectorFor(anObject)
|
|
|
inspectorWindow = InspectorWindow(inspector)
|
|
|
inspectorWindow.open()
|
|
|
@@ -437,7 +447,3 @@ class InspectorWindow:
|
|
|
label = item,
|
|
|
command = lambda p = part, f = func: f(p))
|
|
|
return popupMenu
|
|
|
-
|
|
|
-
|
|
|
-
|
|
|
-
|