[jira] [Assigned] (SPARK-23522) pyspark should always use sys.exit rather than exit

2018-02-26 Thread Apache Spark (JIRA)

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

Apache Spark reassigned SPARK-23522:


Assignee: (was: Apache Spark)

> pyspark should always use sys.exit rather than exit
> ---
>
> Key: SPARK-23522
> URL: https://issues.apache.org/jira/browse/SPARK-23522
> Project: Spark
>  Issue Type: Bug
>  Components: PySpark
>Affects Versions: 2.2.1
>Reporter: Benjamin Peterson
>Priority: Major
>
> pyspark uses the builtin exit() function a lot. In certain Python 
> environments exit is not is not defined as a builtin. E.g.,
> {code:shell}
> $ python -c "exit(4)"
> $ python -S -c "exit(4)"
> Traceback (most recent call last):
>   File "", line 1, in 
> NameError: name 'exit' is not defined
> {code}
> exit() as a builtin is really only intended for interactive use. Real code 
> should always use sys.exit.



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



[jira] [Assigned] (SPARK-23522) pyspark should always use sys.exit rather than exit

2018-02-26 Thread Apache Spark (JIRA)

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

Apache Spark reassigned SPARK-23522:


Assignee: Apache Spark

> pyspark should always use sys.exit rather than exit
> ---
>
> Key: SPARK-23522
> URL: https://issues.apache.org/jira/browse/SPARK-23522
> Project: Spark
>  Issue Type: Bug
>  Components: PySpark
>Affects Versions: 2.2.1
>Reporter: Benjamin Peterson
>Assignee: Apache Spark
>Priority: Major
>
> pyspark uses the builtin exit() function a lot. In certain Python 
> environments exit is not is not defined as a builtin. E.g.,
> {code:shell}
> $ python -c "exit(4)"
> $ python -S -c "exit(4)"
> Traceback (most recent call last):
>   File "", line 1, in 
> NameError: name 'exit' is not defined
> {code}
> exit() as a builtin is really only intended for interactive use. Real code 
> should always use sys.exit.



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



[jira] [Assigned] (SPARK-23522) pyspark should always use sys.exit rather than exit

2018-03-08 Thread Hyukjin Kwon (JIRA)

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

Hyukjin Kwon reassigned SPARK-23522:


Assignee: Benjamin Peterson

> pyspark should always use sys.exit rather than exit
> ---
>
> Key: SPARK-23522
> URL: https://issues.apache.org/jira/browse/SPARK-23522
> Project: Spark
>  Issue Type: Bug
>  Components: PySpark
>Affects Versions: 2.2.1
>Reporter: Benjamin Peterson
>Assignee: Benjamin Peterson
>Priority: Major
> Fix For: 2.4.0
>
>
> pyspark uses the builtin exit() function a lot. In certain Python 
> environments exit is not is not defined as a builtin. E.g.,
> {code}
> $ python -c "exit(4)"
> $ python -S -c "exit(4)"
> Traceback (most recent call last):
>   File "", line 1, in 
> NameError: name 'exit' is not defined
> {code}
> exit() as a builtin is really only intended for interactive use. Real code 
> should always use sys.exit.



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