1. 27 Oct, 2023 1 commit
    • Kirill Smelkov's avatar
      *: Compare strings by == or != instead of by `is` or `is not` · b1c4c044
      Kirill Smelkov authored
      In python `is` checks object identity, not content:
      
          In [1]: a = 'hello'
      
          In [2]: a += ' world'
      
          In [3]: b = 'hello world'
      
          In [4]: id(a)
          Out[4]: 139735676540976
      
          In [5]: id(b)
          Out[5]: 139735675829040
      
          In [6]: a is b              <-- NOTE
          Out[6]: False
      
          In [7]: a == b              <-- NOTE
          Out[7]: True
      
      So comparing strings by is is generally incorrect.
      
      -> Fix strings comparision to use == / != everywhere (at least in found
      places where string is compared wrt string literal)
      
      We already had similar fix in a8526f4e, but seems the story continues
      again.
      
      /cc @alain.takoudjou, @Just1, @lu.xu, @jhuge, @tomo
      /reviewed-by @jerome
      /reviewed-on !122
      b1c4c044
  2. 12 Oct, 2023 2 commits
  3. 11 Oct, 2023 4 commits
  4. 22 Sep, 2023 2 commits
  5. 21 Sep, 2023 4 commits
  6. 07 Aug, 2023 1 commit
  7. 15 Jun, 2023 1 commit
  8. 08 Jun, 2023 1 commit
  9. 16 May, 2023 3 commits
  10. 15 May, 2023 1 commit
  11. 31 Mar, 2023 1 commit
  12. 20 Mar, 2023 2 commits
  13. 09 Mar, 2023 13 commits
  14. 07 Mar, 2023 1 commit
  15. 06 Mar, 2023 1 commit
  16. 03 Mar, 2023 1 commit
  17. 01 Mar, 2023 1 commit