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

ASF GitHub Bot updated SPARK-52785:
-----------------------------------
    Labels: pull-request-available  (was: )

> Migrate from legacy super(Class, cls) to super() globally (for python 3)
> ------------------------------------------------------------------------
>
>                 Key: SPARK-52785
>                 URL: https://issues.apache.org/jira/browse/SPARK-52785
>             Project: Spark
>          Issue Type: Improvement
>          Components: PySpark
>    Affects Versions: 4.0.0
>            Reporter: kyungjunlee
>            Priority: Minor
>              Labels: pull-request-available
>
> Apache Spark has dropped support for Python 2 and now requires Python 3. 
> However, some parts of the codebase still use the legacy `super(Class, cls)` 
> syntax, which was originally used for compatibility with Python 2.
> ```
>     super(MyClass, cls).setUpClass()
> ```
> This can now be simplified to the modern Python 3 style:
> ```    
>     super().setUpClass()
> ```
> This change has no functional impact, but it helps improve readability and 
> modernize the codebase.
> I would like to work on replacing these legacy patterns throughout the 
> codebase as my first contribution to Apache Spark.



--
This message was sent by Atlassian Jira
(v8.20.10#820010)

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

Reply via email to