Github user FlytxtRnD commented on the pull request:

    https://github.com/apache/spark/pull/4023#issuecomment-70038625
  
    @davies Could you please explain why the second clause of this condition is 
added?
           
            ```elif isinstance(obj, list) and (obj or isinstance(obj[0], 
JavaObject)):
                   obj = ListConverter().convert(obj, 
sc._gateway._gateway_client)```
    
    obj or isinstance(obj[0], JavaObject)) returns false only in 2 cases if obj 
is boolean False or obj is an empty list. Is there any other significance?


---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at infrastruct...@apache.org or file a JIRA ticket
with INFRA.
---

---------------------------------------------------------------------
To unsubscribe, e-mail: reviews-unsubscr...@spark.apache.org
For additional commands, e-mail: reviews-h...@spark.apache.org

Reply via email to