26 lines
870 B
Plaintext
26 lines
870 B
Plaintext
=== deprecates: S1127
|
|
|
|
=== is related to: S4973
|
|
|
|
=== on 14 Apr 2014, 20:39:57 Ann Campbell wrote:
|
|
Note that there is a separate, specific rule for string comparisons. Should this rule ignore strings?
|
|
|
|
=== on 20 May 2014, 15:16:38 Ann Campbell wrote:
|
|
In Python, the "==" operator is supposed to compare values, not identities.
|
|
|
|
http://stackoverflow.com/a/1504742
|
|
|
|
http://www.rafekettler.com/magicmethods.html#operators
|
|
|
|
This rule therefore cannot be applied to Python.
|
|
|
|
=== on 13 Jun 2014, 07:17:29 Nicolas Peru wrote:
|
|
\[~ann.campbell.2] String comparison rule works only for comparison with a String literal. I think that this rule should cover strings and once it is implemented the other one should be deprecated.
|
|
|
|
=== on 2 Feb 2015, 20:40:52 Sébastien Gioria wrote:
|
|
Rule : CERT EXP03-J
|
|
|
|
=== on 3 Feb 2015, 20:31:00 Ann Campbell wrote:
|
|
Thanks [~sebastien.gioria]
|
|
|