浏览代码

added to doc strings about watch

Dave Schuyler 20 年之前
父节点
当前提交
22f3e05a42
共有 1 个文件被更改,包括 16 次插入0 次删除
  1. 16 0
      direct/src/showbase/Messenger.py

+ 16 - 0
direct/src/showbase/Messenger.py

@@ -266,6 +266,10 @@ class Messenger:
             """
             """
             return a matching event (needle) if found (in haystack).
             return a matching event (needle) if found (in haystack).
             This is primarily a debugging tool.
             This is primarily a debugging tool.
+            
+            This is intended for debugging use only.
+            This function is not defined if python is ran with -O (optimize).
+            
             See Also: unwatch
             See Also: unwatch
             """
             """
             if not self.watching.get(needle):
             if not self.watching.get(needle):
@@ -276,6 +280,10 @@ class Messenger:
             """
             """
             return a matching event (needle) if found (in haystack).
             return a matching event (needle) if found (in haystack).
             This is primarily a debugging tool.
             This is primarily a debugging tool.
+            
+            This is intended for debugging use only.
+            This function is not defined if python is ran with -O (optimize).
+            
             See Also: watch
             See Also: watch
             """
             """
             if self.watching.get(needle):
             if self.watching.get(needle):
@@ -287,6 +295,10 @@ class Messenger:
             When verbose mode is on, don't spam the output with messages
             When verbose mode is on, don't spam the output with messages
             marked as quiet.
             marked as quiet.
             This is primarily a debugging tool.
             This is primarily a debugging tool.
+            
+            This is intended for debugging use only.
+            This function is not defined if python is ran with -O (optimize).
+            
             See Also: unquiet
             See Also: unquiet
             """
             """
             if not self.quieting.get(message):
             if not self.quieting.get(message):
@@ -297,6 +309,10 @@ class Messenger:
             Remove a message from the list of messages that are not reported
             Remove a message from the list of messages that are not reported
             in verbose mode.
             in verbose mode.
             This is primarily a debugging tool.
             This is primarily a debugging tool.
+            
+            This is intended for debugging use only.
+            This function is not defined if python is ran with -O (optimize).
+            
             See Also: quiet
             See Also: quiet
             """
             """
             if self.quieting.get(message):
             if self.quieting.get(message):