You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@spark.apache.org by "Nicholas Chammas (JIRA)" <ji...@apache.org> on 2016/07/28 19:14:20 UTC

[jira] [Created] (SPARK-16782) Use Sphinx autodoc to eliminate duplication of Python docstrings

Nicholas Chammas created SPARK-16782:
----------------------------------------

             Summary: Use Sphinx autodoc to eliminate duplication of Python docstrings
                 Key: SPARK-16782
                 URL: https://issues.apache.org/jira/browse/SPARK-16782
             Project: Spark
          Issue Type: Improvement
          Components: Documentation, PySpark
            Reporter: Nicholas Chammas
            Priority: Minor


In several cases it appears that we duplicate docstrings for methods that are exposed in multiple places.

For example, here are two instances of {{createDataFrame}} with identical docstrings:
* https://github.com/apache/spark/blob/ab6e4aea5f39c429d5ea62a5170c8a1da612b74a/python/pyspark/sql/context.py#L218
* https://github.com/apache/spark/blob/39c836e976fcae51568bed5ebab28e148383b5d4/python/pyspark/sql/session.py#L406

I believe we can eliminate this duplication by using the [Sphinx autodoc extension|http://www.sphinx-doc.org/en/stable/ext/autodoc.html].



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@spark.apache.org
For additional commands, e-mail: issues-help@spark.apache.org