2021-06-03 09:05:38 +02:00
=== deprecates: S1127
2021-06-02 20:44:38 +02:00
2021-06-03 09:05:38 +02:00
=== is related to: S4973
2021-06-02 20:44:38 +02:00
2021-06-03 09:05:38 +02:00
=== on 14 Apr 2014, 20:39:57 Ann Campbell wrote:
2021-06-02 20:44:38 +02:00
Note that there is a separate, specific rule for string comparisons. Should this rule ignore strings?
2021-06-03 09:05:38 +02:00
=== on 20 May 2014, 15:16:38 Ann Campbell wrote:
2021-06-02 20:44:38 +02:00
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.
2021-06-03 09:05:38 +02:00
=== on 13 Jun 2014, 07:17:29 Nicolas Peru wrote:
2021-06-02 20:44:38 +02:00
\[~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.
2021-06-03 09:05:38 +02:00
=== on 2 Feb 2015, 20:40:52 Sébastien Gioria wrote:
2021-06-02 20:44:38 +02:00
Rule : CERT EXP03-J
2021-06-03 09:05:38 +02:00
=== on 3 Feb 2015, 20:31:00 Ann Campbell wrote:
2021-06-02 20:44:38 +02:00
Thanks [~sebastien.gioria]