mirror of
https://github.com/satwikkansal/wtfpython
synced 2024-11-29 14:34:21 +01:00
Fixed input-output of 4th example explanation code (#92)
Ref. example: Deep down, we're all the same
This commit is contained in:
parent
2fb04501f7
commit
ac379c9c03
12
README.md
vendored
12
README.md
vendored
@ -303,9 +303,17 @@ True
|
|||||||
**Output:**
|
**Output:**
|
||||||
```py
|
```py
|
||||||
>>> WTF() is WTF()
|
>>> WTF() is WTF()
|
||||||
I I D D
|
I
|
||||||
|
I
|
||||||
|
D
|
||||||
|
D
|
||||||
|
False
|
||||||
>>> id(WTF()) == id(WTF())
|
>>> id(WTF()) == id(WTF())
|
||||||
I D I D
|
I
|
||||||
|
D
|
||||||
|
I
|
||||||
|
D
|
||||||
|
True
|
||||||
```
|
```
|
||||||
As you may observe, the order in which the objects are destroyed is what made all the difference here.
|
As you may observe, the order in which the objects are destroyed is what made all the difference here.
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user