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

2016-05-10 Thread Vincent Legoll
Hello, I suggested having a look at rpython's list implementation rpython/rtyper/rlist.py:ll_arraycopy() which uses: rpython/rlib/rgc/rgc.py:ll_arraycopy() I hope that was a useful hint... -- Vincent Legoll ___ pypy-dev mailing list pypy-dev@python

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

2016-05-08 Thread Omer Katz
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