mirror of
https://github.com/satwikkansal/wtfpython
synced 2025-07-04 20:38:06 +02:00
Fix incorrect output in "Mysterious key type conversion" example
Fixes https://github.com/satwikkansal/wtfpython/issues/84
This commit is contained in:
parent
d2507c2ff3
commit
5484680721
1 changed files with 1 additions and 1 deletions
2
README.md
vendored
2
README.md
vendored
|
@ -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)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue