Message5657

Author pjenvey
Recipients kwatford, pjenvey
Date 2010-04-11.02:43:36
SpamBayes Score 1.46354e-05
Marked as misclassified No
Message-id <1270953816.78.0.35402383527.issue1543@psf.upfronthosting.co.za>
In-reply-to
Content
The problem here is the underlying array x does indeed get resized to a size of 7 when appended to, because the capacity increases of arrays always double the size of the array first (I'm not sure why, or if that's really desirable for the array type in the first place)

This is exposed in y because extending an array with an iterable apparently calls Py.tojava() on all the items of the iterable. That turns the x array into a real java array, then back to a Python array again, but without the precise size information it originally had
History
Date User Action Args
2010-04-11 02:43:36pjenveysetmessageid: <1270953816.78.0.35402383527.issue1543@psf.upfronthosting.co.za>
2010-04-11 02:43:36pjenveysetrecipients: + pjenvey, kwatford
2010-04-11 02:43:36pjenveylinkissue1543 messages
2010-04-11 02:43:36pjenveycreate