]> granicus.if.org Git - python/commit
PyBuffer_New(): Raise ValueError if size is negative (the other
authorFred Drake <fdrake@acm.org>
Wed, 4 Aug 1999 13:08:19 +0000 (13:08 +0000)
committerFred Drake <fdrake@acm.org>
Wed, 4 Aug 1999 13:08:19 +0000 (13:08 +0000)
commit4574f23115e2c0b35a2e1a4cac0aa7c855144639
treed8a2dd3a779b17185a556865306270ef596400a0
parent493aa4809b787bf6677b241a2e8e2c023b6a0710
PyBuffer_New():  Raise ValueError if size is negative (the other
 constructors didn't miss this).

 Raise MemoryError if malloc() fails, instead of just
 returning NULL.
Objects/bufferobject.c