Functionloc paths for the standard library

While Base is correct, standard libraries seem to give the paths of the machine it was built in. Eg for the official 1.0 binaries,

julia> methods(Base.parent)
# 9 methods for generic function "parent":
[1] parent(V::SubArray) in Base at subarray.jl:63
[2] parent(A::Base.ReshapedArray) in Base at reshapedarray.jl:189
[3] parent(a::Base.ReinterpretArray) in Base at reinterpretarray.jl:69
[4] parent(A::PermutedDimsArray) in Base.PermutedDimsArrays at permuteddimsarray.jl:48
[5] parent(A::Union{Adjoint{T,S}, Transpose{T,S}} where S where T) in LinearAlgebra at /buildworker/worker/package_linux64/build/usr/share/julia/stdlib/v1.0/LinearAlgebra/src/adjtrans.jl:152
[6] parent(A::LinearAlgebra.AbstractTriangular) in LinearAlgebra at /buildworker/worker/package_linux64/build/usr/share/julia/stdlib/v1.0/LinearAlgebra/src/triangular.jl:107
[7] parent(A::Union{Hermitian{T,S}, Symmetric{T,S}} where S where T) in LinearAlgebra at /buildworker/worker/package_linux64/build/usr/share/julia/stdlib/v1.0/LinearAlgebra/src/symmetric.jl:252
[8] parent(D::LinearAlgebra.Diagonal) in LinearAlgebra at /buildworker/worker/package_linux64/build/usr/share/julia/stdlib/v1.0/LinearAlgebra/src/diagonal.jl:112
[9] parent(a::AbstractArray) in Base at abstractarray.jl:1061

julia> VERSION
v"1.0.0"

Should I open an issue?

https://github.com/JuliaLang/julia/issues/28052

1 Like