Skip to content

Commit

Permalink
feat: add dict.update til
Browse files Browse the repository at this point in the history
  • Loading branch information
jthodge committed Feb 23, 2024
1 parent 939feed commit b3b19ee
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions python/dict-update-return-values.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
# Python `dict.update` method returns `None`

This is obvious in hindsight, but `dict.update` returns `None`, not the dictionary that's been updated in place.

(This brief update brought to you by my attempting to use `dict.update` in a list comprehension after using JS object literal for too long.)

0 comments on commit b3b19ee

Please sign in to comment.