Github user MechCoder commented on the issue:

    https://github.com/apache/spark/pull/12983
  
    In sklearn, we use `sklearn.six.moves` which makes `range` and `xrange` to 
be used interchangeably. In Python3, both `range` and `xrange` would return a 
`range` instance and in Py2, both `xrange` and `range` would return a `xrange` 
instance. Something like
    
    ```python
    if sys.version[0] == '3':
        xrange = range
    if sys.version[0] == '2':
        range = xrange
    ```
    
    That being said, I'm ok with this PR being merged as it is since as a Py3 
user, it is more natural for me to use `range`. (But only as a Py3 user). 
Anyway I believe, we should be consistent in usage.


---
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 [email protected] or file a JIRA ticket
with INFRA.
---

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

Reply via email to