parameters: (self, function, name=None)
docstring: Adds the specified function as a method of this construction
          environment with the specified name.  If the name is omitted,
          the default name is the name of the function itself.
docstring_summary: Adds the specified function as a method of this construction
          environment with the specified name.  If the name is omitted,
          the default name is the name of the function itself.
docstring_tokens: Adds the specified function as a method of this construction environment with the specified name . If the name is omitted the default name is the name of the function itself .
function: def AddMethod(self, function, name=None):
          """
          Adds the specified function as a method of this construction
          environment with the specified name.  If the name is omitted,
          the default name is the name of the function itself.
          """
          method = MethodWrapper(self, function, name)
          self.added_methods.append(method)
function_tokens: def AddMethod ( self , function , name = None ) : method = MethodWrapper ( self , function , name ) self . added_methods . append ( method )