please icon indicating copy to clipboard operation
please copied to clipboard

Add `pop` method to dict built-in type

Open chrisnovakovic opened this issue 1 year ago • 1 comments

dict.pop(key[, default])

This method removes the given key from the dictionary and returns its value if it existed, or the given default if it didn't. The semantics are similar to Python's and Starlark's in that dict.pop(key) causes an error to be raised when key does not exist, similarly to dict[key].

chrisnovakovic avatar Jul 30 '23 22:07 chrisnovakovic

This issue has been automatically marked as stale because it has not had any recent activity in the past 90 days. It will be closed if no further activity occurs. If you require additional support, please reply to this message. Thank you for your contributions.

stale[bot] avatar Dec 15 '23 07:12 stale[bot]