1
0
mirror of https://github.com/satwikkansal/wtfpython synced 2024-11-25 20:44:24 +01:00

Fix incorrect output in "Mysterious key type conversion" example

Fixes https://github.com/satwikkansal/wtfpython/issues/84
This commit is contained in:
Satwik Kansal 2018-06-15 00:48:50 +05:30
parent d2507c2ff3
commit 5484680721

2
README.md vendored
View File

@ -1148,7 +1148,7 @@ str
>>> s = SomeClass('s')
>>> some_dict[s] = 40
>>> some_dict
{'s': 40}
{'s': 40, 's': 42}
>>> keys = list(some_dict.keys())
>>> type(keys[0]), type(keys[1])
(__main__.SomeClass, str)