dimanche 5 décembre 2021

Python best practices, use of None in comparison [duplicate]

What is wrong with this statement in Python? I am talking about the part where the comparison is done.

if object.result() != None:
    OtherObject.dosomething()

Aucun commentaire:

Enregistrer un commentaire