By adding Status.NEW
to a empty string (print("" + Status.NEW)
), it is converted to a string with it's __str__
, which will be NEW
.
When you just use print(Status.NEW)
, python using the __repr__
method instead, which will be Status.NEW
, instead of NEW