[issue15309] buffer/memoryview slice assignment uses only memcpy

2012-07-10 Thread Stefan Krah
Stefan Krah 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); Other versions use simil

[issue15309] buffer/memoryview slice assignment uses only memcpy

2012-07-10 Thread Stefan Krah
Stefan Krah added the comment: Could you please state the Python version and line numbers in memoryobject.c? -- ___ Python tracker ___ __

[issue15309] buffer/memoryview slice assignment uses only memcpy

2012-07-09 Thread Antoine Pitrou
Changes by Antoine Pitrou : -- nosy: +skrah ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.

[issue15309] buffer/memoryview slice assignment uses only memcpy

2012-07-09 Thread Ronny Pfannschmidt
New submission from Ronny Pfannschmidt : 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 title: buffer/memoryview slic