(self, margins)
return self.contract([-float(margin) for margin in margins])
Expands the rectangle by the given margins.

        @return: a new L{Rectangle} object.
Expands the rectangle by the given margins.
Expands the rectangle by the given margins .
def expand(self, margins):
        """Expands the rectangle by the given margins.

        @return: a new L{Rectangle} object.
        """
        if isinstance(margins, int) or isinstance(margins, float):
            return self.contract(-float(margins))
        return self.contract([-float(margin) for margin in margins])
def expand ( self , margins ) : if isinstance ( margins , int ) or isinstance ( margins , float ) : return self . contract ( - float ( margins ) ) return self . contract ( [ - float ( margin ) for margin in margins ] )