[Numpy-discussion] copy4bytes: access beyond buffer

Todd Miller jmiller at stsci.edu
Mon Feb 23 05:50:20 CST 2004


On Sun, 2004-02-22 at 18:51, Simon Burton wrote:
> On Mon, 23 Feb 2004 10:27:53 +1100
> Simon Burton <simon at arrowtheory.com> wrote:
> 
> > I posted this bug to the sf bugs page, but it seems to have disappeared.
> > The bug remains. I've been using the CVS version. Is there anything I'm doing wrong?
> > 
> 
> OK, i think i see it now. shape=(2048,0) should be shape=(2048,). I have been using the C-API 
> aswell, and got confused.
> 
> Maybe there is a better exception to raise? Is it ever useful to have a shape=(2048,0) ?

IMHO, it's an edge case which might come up occasionally on arrays which
are intended to be resized.  Eventually I intend to fix it, but making
it work immediately isn't a priority.

> 
> Simon.
-- 
Todd Miller <jmiller at stsci.edu>





More information about the Numpy-discussion mailing list