PathDict
PathDict copied to clipboard
Pop or Delete method
Hey! Great work here! Read the source and noticed pop wasn't implemented as a python dictionary's pop method. Any idea of a work around here? Essentially trying to rename a key, given a pre-existing path
@jmgamboa It exists, and behaves just like a regular dict pop. It does not accept paths, but you can always get the nested pathdict, and use the pop method there, eg pd["u1", "friends"].pop("u2")