Github user mateiz commented on a diff in the pull request:
https://github.com/apache/spark/pull/97#discussion_r11193299
--- Diff: python/pyspark/rdd.py ---
@@ -91,6 +92,58 @@ def __exit__(self, type, value, tb):
if _spark_stack_depth == 0:
self._context._jsc.setCallSite(None)
+class MaxHeapQ(object):
+ """
+ An implementation of MaxHeap.
+
+ """
--- End diff --
Add a doctest to this class too, just here in this doc string. For example
see
http://stackoverflow.com/questions/2708178/python-using-doctests-for-classes.
---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at [email protected] or file a JIRA ticket
with INFRA.
---