[ 
https://issues.apache.org/jira/browse/SPARK-13240?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15138544#comment-15138544
 ] 

Sean Owen commented on SPARK-13240:
-----------------------------------

Is this a problem in Spark, or are you just stating something that happens in 
Python in general?
It sounds like it is just something you can/can't do based on how Python works, 
not a Spark issue.

> Having print in assigments (Python 3) causes SyntaxError
> --------------------------------------------------------
>
>                 Key: SPARK-13240
>                 URL: https://issues.apache.org/jira/browse/SPARK-13240
>             Project: Spark
>          Issue Type: Bug
>          Components: PySpark
>    Affects Versions: 1.6.0
>         Environment: Ubuntu 14.04 LTS
> Python 3.5.1 |Continuum Analytics, Inc.| (default, Dec  7 2015, 11:16:01)
>            Reporter: Sándor Kazi
>            Priority: Minor
>
> f = print
> It is syntactically OK to include this line of code in Python 3.5.1, but it 
> raises a runtime SyntaxError when used with the Spark Python API.
> This behaviour is possibly connected to the fact that print is a statement in 
> Python 2 but not in Python 3... so it might as well impact other things as it 
> is a parsing problem of the print statement (?).



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

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

Reply via email to