You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@spark.apache.org by "Davies Liu (JIRA)" <ji...@apache.org> on 2015/09/09 16:46:45 UTC

[jira] [Closed] (SPARK-10512) Fix @since when a function doesn't have doc

     [ https://issues.apache.org/jira/browse/SPARK-10512?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Davies Liu closed SPARK-10512.
------------------------------
    Resolution: Won't Fix

> Fix @since when a function doesn't have doc
> -------------------------------------------
>
>                 Key: SPARK-10512
>                 URL: https://issues.apache.org/jira/browse/SPARK-10512
>             Project: Spark
>          Issue Type: Improvement
>          Components: PySpark
>    Affects Versions: 1.6.0
>            Reporter: Yu Ishikawa
>
> When I tried to add @since to a function which doesn't have doc, @since didn't go well. It seems that {{___doc___}} is {{None}} under {{since}} decorator.
> {noformat}
> Traceback (most recent call last):
>   File "/Users/01004981/.pyenv/versions/2.6.8/lib/python2.6/runpy.py", line 122, in _run_module_as_main
>     "__main__", fname, loader, pkg_name)
>   File "/Users/01004981/.pyenv/versions/2.6.8/lib/python2.6/runpy.py", line 34, in _run_code
>     exec code in run_globals
>   File "/Users/01004981/local/src/spark/myspark3/python/pyspark/mllib/recommendation.py", line 46, in <module>
>     class MatrixFactorizationModel(JavaModelWrapper, JavaSaveable, JavaLoader):
>   File "/Users/01004981/local/src/spark/myspark3/python/pyspark/mllib/recommendation.py", line 166, in MatrixFactorizationModel
>     @since("1.3.1")
>   File "/Users/01004981/local/src/spark/myspark3/python/pyspark/__init__.py", line 63, in deco
>     indents = indent_p.findall(f.__doc__)
> TypeError: expected string or buffer
> {noformat}



--
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