[Zope3-checkins] SVN: Zope3/trunk/src/zope/interface/interfaces.py Enhanced the documentation of a method, which removes an XXX.

Stephan Richter srichter at cosmos.phy.tufts.edu
Tue Jul 13 12:46:03 EDT 2004


Log message for revision 26463:
  Enhanced the documentation of a method, which removes an XXX.
  


Changed:
  U   Zope3/trunk/src/zope/interface/interfaces.py


-=-
Modified: Zope3/trunk/src/zope/interface/interfaces.py
===================================================================
--- Zope3/trunk/src/zope/interface/interfaces.py	2004-07-13 16:44:02 UTC (rev 26462)
+++ Zope3/trunk/src/zope/interface/interfaces.py	2004-07-13 16:46:02 UTC (rev 26463)
@@ -52,10 +52,29 @@
 class IMethod(IAttribute):
     """Method attributes
     """
-    # XXX What the heck should methods provide? Grrrr
 
+    def getSignatureInfo():
+        """Returns the signature information.
+
+        This method returns a dictionary with the following keys:
+
+        o `positional` - All positional arguments.
+
+        o `required` - A list of all required arguments.
+
+        o `optional` - A list of all optional arguments.
+
+        o `varargs' - The name of the varargs argument.
+
+        o `kwargs` - The name of the kwargs argument.
+        """
+
     def getSignatureString():
         """Return a signature string suitable for inclusion in documentation.
+
+        This method returns the function signature string. For example, if you
+        have `func(a, b, c=1, d='f')`, then the signature string is `(a, b,
+        c=1, d='f')`.
         """
 
 class ISpecification(Interface):



More information about the Zope3-Checkins mailing list