1. 7

  2. 1

    Notably, you wouldn’t even get the performance improvement for using is as is suggested in the last paragraph, since CPython checks if the objects compared are the same object for most inbuilt objects(I only checked str and int, but I’m quite sure it’s the same for all of comparable builtins (maybe except float)).