bjornjorgensen commented on PR #36547:
URL: https://github.com/apache/spark/pull/36547#issuecomment-1128007756

   Yes, def `all` is a built in function in python. 
   Spark python codebase has no more than 56 of this now, which can be a 
problem.
     
   Sometimes shading python built-in functions is the right way.  And in this 
case, it's right. 
   
   But if you look at the code that pandas are using, they [decorate the 
function](https://github.com/pandas-dev/pandas/blob/v1.4.2/pandas/core/groupby/groupby.py#L1810)
 with `@final` 
   This is [PEP 591 – Adding a final qualifier to 
typing](https://peps.python.org/pep-0591/)   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


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

Reply via email to