You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@spark.apache.org by "Krishna Kalyan (JIRA)" <ji...@apache.org> on 2016/06/13 16:44:21 UTC
[jira] [Commented] (SPARK-15902) Add a deprecation warning for
Python 2.6
[ https://issues.apache.org/jira/browse/SPARK-15902?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15327723#comment-15327723 ]
Krishna Kalyan commented on SPARK-15902:
----------------------------------------
Hi [~holdenk],
I have some questions, where do I add this warning? [here below](https://github.com/apache/spark/blob/master/python/pyspark/context.py)
I need to add something like
{code}
if sys.version < 2.6:
warnings.warn("Deprecated in 2.1.0. Use Python 2.7+ instead", DeprecationWarning)
{code}
Thanks
> Add a deprecation warning for Python 2.6
> ----------------------------------------
>
> Key: SPARK-15902
> URL: https://issues.apache.org/jira/browse/SPARK-15902
> Project: Spark
> Issue Type: Sub-task
> Components: PySpark
> Reporter: holdenk
> Priority: Minor
>
> As we move to Python 2.7+ in Spark 2.1+ it would be good to add a deprecation warning if we detect we are running in Python 2.6.
--
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