print b does not call __repr__().  It calls __str__().