This is an automated email from the ASF dual-hosted git repository.
uros-b pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/spark.git
The following commit(s) were added to refs/heads/master by this push:
new 28a85adf09a2 [SPARK-58586][DOC] Use a supported Python version in the
RDD guide PYSPARK_PYTHON example
28a85adf09a2 is described below
commit 28a85adf09a254e9cfb77786b2a27ad5d97f2a51
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]>
---
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]