You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
there might be an issue in how OrderedDicts are handled by deepcopy:
julia> d1 =OrderedDict([("hi", 1)])
OrderedDict{ASCIIString,Int64} with 1 entry:"hi"=>1
julia> d2 =deepcopy(d1)
OrderedDict{ASCIIString,Int64} with 1 entry:"hi"=>1
julia> d2["hi"] =22
julia> d1
OrderedDict{ASCIIString,Int64} with 1 entry:"hi"=>2
I would expect a behaviour similar as this one:
julia> d1 =Dict([("hi", 1)])
Dict{ASCIIString,Int64} with 1 entry:"hi"=>1
julia> d2 =deepcopy(d1)
Dict{ASCIIString,Int64} with 1 entry:"hi"=>1
julia> d2["hi"] =22
julia> d1
Dict{ASCIIString,Int64} with 1 entry:"hi"=>1
I am using Julia 0.3.5 and DataStructures 0.3.5.
Let me know if you have an idea where the problem is or if you have an idea for a workaround. Thanks in advance!
Best,
Philipp.
Edit: Added formatting (kms)
The text was updated successfully, but these errors were encountered:
This was fixed on Julia 0.4 by JuliaLang/julia#8560, but that was never backported to Julia v0.3. That should happen (I believe) with the next point release of v0.3.
Dear all,
there might be an issue in how OrderedDicts are handled by deepcopy:
I am using Julia 0.3.5 and DataStructures 0.3.5.
Let me know if you have an idea where the problem is or if you have an idea for a workaround. Thanks in advance!
Best,
Philipp.
Edit: Added formatting (kms)
The text was updated successfully, but these errors were encountered: