[issue15309] buffer/memoryview slice assignment uses only memcpy

2012-07-10 Thread Stefan Krah
Stefan Krah stefan-use...@bytereef.org added the comment: Could you please state the Python version and line numbers in memoryobject.c? -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue15309

[issue15309] buffer/memoryview slice assignment uses only memcpy

2012-07-10 Thread Stefan Krah
Stefan Krah stefan-use...@bytereef.org added the comment: I see nothing wrong in memory_ass_sub(). In 2.7: if (destbuf + bytelen srcbuf || srcbuf + bytelen destbuf) /* No overlapping */ memcpy(destbuf, srcbuf, bytelen); else memmove(destbuf, srcbuf, bytelen);

[issue15309] buffer/memoryview slice assignment uses only memcpy

2012-07-09 Thread Ronny Pfannschmidt
New submission from Ronny Pfannschmidt ronny.pfannschm...@gmail.com: thats broken for assigning overlaping regions, the memcpy docs explicitly state that memmove should be used in overlap cases -- messages: 165127 nosy: Ronny.Pfannschmidt priority: normal severity: normal status: open

[issue15309] buffer/memoryview slice assignment uses only memcpy

2012-07-09 Thread Antoine Pitrou
Changes by Antoine Pitrou pit...@free.fr: -- nosy: +skrah ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue15309 ___ ___ Python-bugs-list mailing