On Aug 1, 8:08 am, Paul McGuire <[EMAIL PROTECTED]> wrote:
>
>     def add(self,other):
>         if len(self.contents) < self.capacity:
>             self.contents.append( other )
>         else:
>             raise ValueError("can't add any more to this Box")
>

I guess that really should raise an OverflowError...

-- Paul

-- 
http://mail.python.org/mailman/listinfo/python-list

Reply via email to