-
-
Notifications
You must be signed in to change notification settings - Fork 5.5k
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
1.2: SparseArrays commits type piracy in override of copy #32213
Comments
Note it is impacting BlockBandedMatrices.jl Julia v1.2 compatibility, though this can be fixed by modifying |
Agree, there is an unfortunate collateral damage. This variant of A fixed definition of copy could look like:
It falls back to the
You are referring to the definition of
In spite of the unconventional style, the use of
that would obsolete the current solution. (See PR #31563, triage for 1.3 or later). |
The type restricted |
@dlfivefifty, you mean the change for I would also like to see your case, where the change of |
https://travis-ci.org/JuliaMatrices/BlockBandedMatrices.jl/jobs/540770283 It’s because BlockArrays has custom indexing types |
This stack seems to indicate, that |
Regardless of the failure mode in BlockBandedMatrices, this method needs to be further restricted for 1.2. Even if every matrix were convertable to I know it's unsatisfactory, but the temporary fix here is likely to just use a union of the most common cases. It won't be able to catch everything, but that's ok for now. |
If #32249 is enough to fix the most urgent breakage, triage thinks we should merge that while we keep thinking about the design here. |
Fixed by #32266. |
The following is an instance of type-piracy:
julia/stdlib/SparseArrays/src/sparseconvert.jl
Line 80 in 7b18a30
It was introduced by @KlausC in 7a75d6b
The text was updated successfully, but these errors were encountered: