python/pyspark/rdd.py
def collect(self):
        """
        Return a list that contains all of the elements in this RDD.
        """
        with _JavaStackTrace(self.context) as st:
          bytesInJava = self._jrdd.collect().iterator()
        return list(self._collect_iterator_through_file(bytesInJava))

        Return a list that contains all of the elements in this RDD.
        
Return a list that contains all of the elements in this RDD.
Return a list that contains all of the elements in this RDD .
def collect(self):
        with _JavaStackTrace(self.context) as st:
          bytesInJava = self._jrdd.collect().iterator()
        return list(self._collect_iterator_through_file(bytesInJava))
def collect ( self ) : with _JavaStackTrace ( self . context ) as st : bytesInJava = self . _jrdd . collect ( ) . iterator ( ) return list ( self . _collect_iterator_through_file ( bytesInJava ) )
Return a list that contains all of the elements in this RDD.
Return a list that contains all of the elements in this RDD .
"""
        Return a list that contains all of the elements in this RDD.
        """
self