[all-commits] [llvm/llvm-project] b605da: [Polly] Use "is" instead of "==" to check for None...

Eisuke Kawashima via All-commits all-commits at lists.llvm.org
Mon Jan 13 04:00:56 PST 2025


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: b605dab7a8352158ee0d399b8c3433f9a8b495a3
      https://github.com/llvm/llvm-project/commit/b605dab7a8352158ee0d399b8c3433f9a8b495a3
  Author: Eisuke Kawashima <e.kawaschima+github at gmail.com>
  Date:   2025-01-13 (Mon, 13 Jan 2025)

  Changed paths:
    M polly/lib/External/isl/interface/python.cc
    M polly/lib/External/isl/libisl-gdb.py
    M polly/lib/External/isl/python/isl.py.top
    M polly/test/lit.site.cfg.in
    M polly/utils/pyscop/isl.py

  Log Message:
  -----------
  [Polly] Use "is" instead of "==" to check for None (#94021)

>From PEP8
(https://peps.python.org/pep-0008/#programming-recommendations):

> Comparisons to singletons like None should always be done with is or
is not, never the equality operators.



To unsubscribe from these emails, change your notification settings at https://github.com/llvm/llvm-project/settings/notifications


More information about the All-commits mailing list