Message5657
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 |
|
Date |
User |
Action |
Args |
2010-04-11 02:43:36 | pjenvey | set | messageid: <1270953816.78.0.35402383527.issue1543@psf.upfronthosting.co.za> |
2010-04-11 02:43:36 | pjenvey | set | recipients:
+ pjenvey, kwatford |
2010-04-11 02:43:36 | pjenvey | link | issue1543 messages |
2010-04-11 02:43:36 | pjenvey | create | |
|