Closed kevcampb closed 9 years ago
On page 207 on the first edition there is code
@python_2_unicode_compatible def __str__(self): return self.name
This should be applied to the class, rather than to the str method, otherwise, you will get the error:
ValueError: @python_2_unicode_compatible cannot be applied to __str__ because it doesn't define __str__().
On page 207 on the first edition there is code
This should be applied to the class, rather than to the str method, otherwise, you will get the error: