[pypy-dev] Copying a slice of a list in RPython

Omer Katz omer.drow at gmail.com
Mon May 9 01:56:57 EDT 2016


Hi guys,
While implementing the BList strategy I found a need to be able to
efficiently copy part of a list to another list (and sometimes to the same
list).
I'd rather avoid implementing something like
https://github.com/DanielStutzbach/blist/blob/master/blist/_blist.c#L189 if
it already exists in RPython.
Someone on IRC mentioned that there is a function in the rgc module
called ll_arraycopy
but I'm unsure how to use it.
I could implement it myself but I don't think it should live under
objspace/listobject.py. Is there a utility module for objspace I should put
those functions in?

Thanks,
Omer Katz.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/pypy-dev/attachments/20160509/ebb45702/attachment.html>


More information about the pypy-dev mailing list