This is an automated email from the ASF dual-hosted git repository.

uros-b pushed a commit to branch branch-4.x
in repository https://gitbox.apache.org/repos/asf/spark.git


The following commit(s) were added to refs/heads/branch-4.x by this push:
     new dc04ad10d785 [SPARK-58586][DOC] Use a supported Python version in the 
RDD guide PYSPARK_PYTHON example
dc04ad10d785 is described below

commit dc04ad10d785219a6d99d9a8b89abad7c0ae4fcb
Author: Uros Bojanic <[email protected]>
AuthorDate: Thu Aug 6 09:46:53 2026 +0000

    [SPARK-58586][DOC] Use a supported Python version in the RDD guide 
PYSPARK_PYTHON example
    
    ### What changes were proposed in this pull request?
    Updates the `PYSPARK_PYTHON=python3.8` example in 
`docs/rdd-programming-guide.md` to `python3.11`.
    
    ### Why are the changes needed?
    The same page states that Spark works with Python 3.11+ about thirty lines 
above this example, and the build pins `python_requires>=3.11`, so the 
python3.8 example is stale and internally inconsistent.
    
    ### Does this PR introduce _any_ user-facing change?
    No.
    
    ### How was this patch tested?
    Documentation only. No tests needed.
    
    ### Was this patch authored or co-authored using generative AI tooling?
    Generated-by: Claude Code (Opus 4.8)
    
    Closes #57787 from uros-b/doc-rdd-python-version.
    
    Authored-by: Uros Bojanic <[email protected]>
    Signed-off-by: Uros Bojanic <[email protected]>
    (cherry picked from commit 28a85adf09a254e9cfb77786b2a27ad5d97f2a51)
    Signed-off-by: Uros Bojanic <[email protected]>
---
 docs/rdd-programming-guide.md | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/docs/rdd-programming-guide.md b/docs/rdd-programming-guide.md
index deff45ddc852..eb03d418d6b4 100644
--- a/docs/rdd-programming-guide.md
+++ b/docs/rdd-programming-guide.md
@@ -70,7 +70,7 @@ PySpark requires the same minor version of Python in both 
driver and workers. It
 you can specify which version of Python you want to use by `PYSPARK_PYTHON`, 
for example:
 
 {% highlight bash %}
-$ PYSPARK_PYTHON=python3.8 bin/pyspark
+$ PYSPARK_PYTHON=python3.11 bin/pyspark
 {% endhighlight %}
 
 </div>


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to