Next / Previous / Contents / Shipman's homepage

28.2. Box.__str__()

This function is provided for debugging purposes.

fosox.py
# - - -   B o x . _ _ s t r _ _

    def __str__(self):
        return ("<Box(w={0},h={1})>".format(
            self.wide, self.high))