original_docstring:  Returns the index (or indexes as an array) of the provided node.
          This works on identity, not equality
          
docstring: Returns the index (or indexes as an array) of the provided node.
  This works on identity, not equality
docstring_tokens: Returns the index ( or indexes as an array ) of the provided node . This works on identity not equality
code: def find_child(self, node):
          ''' Returns the index (or indexes as an array) of the provided node.
          This works on identity, not equality
          '''
  
          results = filter(lambda v: v[1] is node, [ (i, x) for i, x in enumerate(self.children) ])
  
          length = len(results)
          if length == 0: return None
          if length == 1: return results[0][0]
          else:           return [ x[0] for x in results ]
code_tokens: def find_child ( self , node ) : results = filter ( lambda v : v [ 1 ] is node , [ ( i , x ) for i , x in enumerate ( self . children ) ] ) length = len ( results ) if length == 0 : return None if length == 1 : return results [ 0 ] [ 0 ] else : return [ x [ 0 ] for x in results ]
short_docstring: Returns the index (or indexes as an array) of the provided node.
short_docstring_tokens: Returns the index ( or indexes as an array ) of the provided node .
comment: ''' Returns the index (or indexes as an array) of the provided node.
          This works on identity, not equality
          '''