Skip to content

Commit ed6692f

Browse files
s19110myteron
andauthored
Update docs/Secure-Coding-Guide-for-Python/CWE-697/CWE-595/README.md
Co-authored-by: myteron <[email protected]> Signed-off-by: Hubert Daniszewski <[email protected]>
1 parent 4c0c915 commit ed6692f

File tree

1 file changed

+1
-1
lines changed
  • docs/Secure-Coding-Guide-for-Python/CWE-697/CWE-595

1 file changed

+1
-1
lines changed

docs/Secure-Coding-Guide-for-Python/CWE-697/CWE-595/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@ The first set of print statements illustrates string interning. While `a` and `b
6060

6161
The `noncompliant01.py` code demonstrates potentially unexpected outcomes when using different comparisons.
6262

63-
* The `==` operator using `__eq__`, checks value equality for most build-in types, checks for reference equality if the `__eq__` is missing in a custom class. So 12 == 12 is True and Integer(12) == Integer(12) is False.
63+
* The `==` operator using `__eq__`, checks value equality for most build-in types, checks for reference equality if the `__eq__` is missing in a custom class. So `12 == 12` is `True` and `Integer(12) == Integer(12)` is `False`.
6464
* The `==` comparing lists of objects, that also applies to other types of collections.
6565
* The `in` operator also depends on the behavior of the `__eq__` method
6666
* The `is` operator that checks the references point to the same object regardless of the stored value.

0 commit comments

Comments
 (0)