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
Is there a way do pop or remove elements from lists?
Say I have a dotty like dot["foo.bar.0"] = 1, I'd like to pop that element. Something like dot.pop("foo.bar.0") doesn't work. My only idea at this point is to split the path and pop it like dot["foo.bar"].pop(0).
Is there a way do pop or remove elements from lists?
Say I have a
dotty
likedot["foo.bar.0"] = 1
, I'd like to pop that element. Something likedot.pop("foo.bar.0")
doesn't work. My only idea at this point is to split the path and pop it likedot["foo.bar"].pop(0)
.The text was updated successfully, but these errors were encountered: