We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
System.Array ordering comparisons are raising a SystemError.
SystemError
For example:
import System assert System.Array[System.Int32]([0]) < System.Array[System.Int32]([1])
currently raises
SystemError: Compare
Note that this used to work in 2.7. At the very least it, if we don't want to support it, it should be raising a TypeError.
TypeError
Also, trying to compare arrays of different lengths we get a ValueError:
ValueError
import System System.Array[System.Int32]([0]) < System.Array[System.Int32]([1,2])
ValueError: Object is not a array with the same number of elements as the array to compare it to. Parameter name: other
I'm guessing this error comes from the .NET comparison? Probably preferable to not throw if we're going to be supporting ordering comparisons.
#1821
The text was updated successfully, but these errors were encountered:
No branches or pull requests
System.Array ordering comparisons are raising a
SystemError
.For example:
currently raises
Note that this used to work in 2.7. At the very least it, if we don't want to support it, it should be raising a
TypeError
.Also, trying to compare arrays of different lengths we get a
ValueError
:I'm guessing this error comes from the .NET comparison? Probably preferable to not throw if we're going to be supporting ordering comparisons.
#1821
The text was updated successfully, but these errors were encountered: