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

Xiangrui Meng updated SPARK-24454:
----------------------------------
    Description: ml/image.py doesn't have __all__ explicitly defined. It will 
import all global names by default (only ImageSchema for now), which is not a 
good practice. We should add __all__ to image.py.  (was: {code:java}
from pyspark import ml
ml.image{code}

The ml.image line will fail because we don't have __all__ defined there. )

> ml.image doesn't have __all__ explicitly defined
> ------------------------------------------------
>
>                 Key: SPARK-24454
>                 URL: https://issues.apache.org/jira/browse/SPARK-24454
>             Project: Spark
>          Issue Type: Bug
>          Components: ML, PySpark
>    Affects Versions: 2.3.0
>            Reporter: Xiangrui Meng
>            Priority: Major
>
> ml/image.py doesn't have __all__ explicitly defined. It will import all 
> global names by default (only ImageSchema for now), which is not a good 
> practice. We should add __all__ to image.py.



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)

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

Reply via email to