Yu Ishikawa created SPARK-10512:
-----------------------------------
Summary: 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.
```
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
```
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]