not None test in Python

Out of these not None tests.

if val != None:

if not (val is None):

if val is not None:

Which one is preferable, and why?

← Назад к списку