Skip to content

Commit be37777

Browse files
Update README.md
Grammatical fix
1 parent fe9ed47 commit be37777

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -619,7 +619,7 @@ True
619619
* When `id` was called, Python created a `WTF` class object and passed it to the `id` function. The `id` function takes its `id` (its memory location), and throws away the object. The object is destroyed.
620620
* When we do this twice in succession, Python allocates the same memory location to this second object as well. Since (in CPython) `id` uses the memory location as the object id, the id of the two objects is the same.
621621
* So, the object's id is unique only for the lifetime of the object. After the object is destroyed, or before it is created, something else can have the same id.
622-
* But why did the `is` operator evaluated to `False`? Let's see with this snippet.
622+
* But why did the `is` operator evaluate to `False`? Let's see with this snippet.
623623
```py
624624
class WTF(object):
625625
def __init__(self): print("I")

0 commit comments

Comments
 (0)