|
From: Frank W. <fwi...@gm...> - 2005-04-19 02:23:14
|
I'm working on implementing some Python 2.3 list behaviors in PyList and I've come to deleting a slice with a step value greater than one.=20 Thinking about the problem, it will be a little annoying to do this by creating a new array and copying the diffed array in (this is essentially how the slice deleting works now). It occurred to me that this would be *much* easier to implement if PyList was backed by an ArrayList (just remove() the elements). In fact much of PyList would become simpler, at least with respect to readability and maintainability. Does anyone have any objections to replacing the internal array in PyList with an ArrayList, especially given that we are dropping Java 1.1 support? Thanks, Frank Wierzbicki |