jeudi 28 mai 2020

Is type(obj) always equal to obj.__class__ in python?

As the question says, does

type(obj) == obj.__class__

always hold true?

Or there may be cases in which this is not true?





Aucun commentaire:

Enregistrer un commentaire