Should copy.deepcopy(mdl) == mdl return true?

I ran:

mdl0 = copy.deepcopy(mdl)
print(mdl == mdl0)

and it prints


I would have expected that the is operator returned false since they aren’t the same object but they are copies, so equality should return true.

Why is this not working as I expected? Is that a bug or do I have a misunderstanding?