vendredi 22 février 2019

`assert 1,2 == (2,3)` does not raise an AssertionError in python3

As mentioned in the title

I expect

assert 1,2 == (2,3)

to raise an AssertionError but it does not.

neither does

assert 1,2 == 2

Does anyone know why?

Aucun commentaire:

Enregistrer un commentaire