New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
xsrange is not an iterator when called with Python ints or longs #18538
Comments
Commit: |
Branch pushed to git repo; I updated commit sha1. New commits:
|
This comment has been minimized.
This comment has been minimized.
Branch pushed to git repo; I updated commit sha1. New commits:
|
Author: Thierry Monteil |
comment:7
Please replace |
Branch pushed to git repo; I updated commit sha1. New commits:
|
comment:10
Hello, Why
I think that we should keep compatibility between Vincent |
comment:11
I also think it's better to use |
comment:12
This:
should be replaced by
But even then, I find it a bit confusing that you talk about a |
comment:13
Fixed by #20094 instead (which removes the special cases for Python |
Changed author from Thierry Monteil to none |
Reviewer: Jeroen Demeyer |
As reported in this ask question, there is a problem with
ellipsis_iter
:This is due to the fact that, while
xsrange
claims to return an iterator, it does not provide a.next()
method when called with Python ints or longs:This is because in those cases, it returns an
xrange
object (which is only an iterable).Component: misc
Branch/Commit: u/tmonteil/xsrange_is_not_an_iterator_when_called_with_python_ints_or_longs @
9101119
Reviewer: Jeroen Demeyer
Issue created by migration from https://trac.sagemath.org/ticket/18538
The text was updated successfully, but these errors were encountered: