Re: Virtual Slicing

2005-08-29 Thread Bryan Olson
Sybren Stuvel wrote: > Bryan Olson enlightened us with: > >>I recently wrote a module supporting value-shared slicing. > > Maybe I'm dumb, but could you explain this concept? Why would someone > whant this? My original motivation was reduce the amount of copying in some tools that parse nest

Re: Virtual Slicing

2005-08-27 Thread Oren Tirosh
Bryan Olson wrote: > I recently wrote a module supporting value-shared slicing. I > don't know if this functionality already existed somewhere, In the Numarray module slices are a view into the underlying array rather than a copy. http://www.stsci.edu/resources/software_hardware/numarray -- htt

Re: Virtual Slicing

2005-08-27 Thread Sybren Stuvel
Bryan Olson enlightened us with: > I recently wrote a module supporting value-shared slicing. Maybe I'm dumb, but could you explain this concept? Why would someone whant this? Sybren -- The problem with the world is stupidity. Not saying there should be a capital punishment for stupidity, but wh

Virtual Slicing

2005-08-27 Thread Bryan Olson
are and may be modified and/or distributed under the same terms as Python itself. Virtual Slicing differs from normal Python slicing in that that the cells in the given sequence are not copied; they are shared between the underlying sequence and the VSlice. VSlices are th