[issue22113] memoryview and struct.pack_into

2015-02-21 Thread Serhiy Storchaka
Changes by Serhiy Storchaka : -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker ___ _

[issue22113] memoryview and struct.pack_into

2015-02-21 Thread Roundup Robot
Roundup Robot added the comment: New changeset 4d8e37e54a7d by Serhiy Storchaka in branch '2.7': Issue #22113: struct.pack_into() now supports new buffer protocol (in https://hg.python.org/cpython/rev/4d8e37e54a7d -- nosy: +python-dev ___ Python track

[issue22113] memoryview and struct.pack_into

2015-02-21 Thread Benjamin Peterson
Benjamin Peterson added the comment: I suppose this is okay. -- ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue22113] memoryview and struct.pack_into

2015-02-20 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Benjamin, what are your thoughts as RM? > Something similar should be applied to 3.x because PyObject_AsWriteBuffer() > is deprecated and not safe. Done in issue22896. -- nosy: +benjamin.peterson ___ Python track

[issue22113] memoryview and struct.pack_into

2014-12-19 Thread Kristján Valur Jónsson
Kristján Valur Jónsson added the comment: lgtm :) -- ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://ma

[issue22113] memoryview and struct.pack_into

2014-12-18 Thread Arfrever Frehtes Taifersar Arahesis
Changes by Arfrever Frehtes Taifersar Arahesis : -- nosy: +Arfrever ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscri

[issue22113] memoryview and struct.pack_into

2014-12-18 Thread Serhiy Storchaka
Changes by Serhiy Storchaka : -- keywords: +needs review ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https:

[issue22113] memoryview and struct.pack_into

2014-11-18 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Oh, sorry. Here is it. -- keywords: +patch Added file: http://bugs.python.org/file37222/struct_pack_into_memoryview.patch ___ Python tracker _

[issue22113] memoryview and struct.pack_into

2014-11-18 Thread Antoine Pitrou
Antoine Pitrou added the comment: I think you forgot to upload your patch. -- ___ Python tracker ___ ___ Python-bugs-list mailing list

[issue22113] memoryview and struct.pack_into

2014-11-18 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: This issue is similar to issue10212. Here is a patch which makes struct.pack_into() support new buffer protocol. Something similar should be applied to 3.x because PyObject_AsWriteBuffer() is deprecated and not safe. -- assignee: -> serhiy.storchak

[issue22113] memoryview and struct.pack_into

2014-10-14 Thread Stefan Krah
Changes by Stefan Krah : -- nosy: -skrah ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.o

[issue22113] memoryview and struct.pack_into

2014-07-31 Thread Stefan Krah
Stefan Krah added the comment: This works in Python 3.3+. It is a bug in 2.7, so we have to wait for someone motivated enough to work on an outdated Python version. -- components: +Interpreter Core nosy: +skrah stage: -> needs patch ___ Python tracke

[issue22113] memoryview and struct.pack_into

2014-07-31 Thread Clayton Stangeland
New submission from Clayton Stangeland: I expect struct.pack_into to work for a memoryview. Currently struct.pack_into throws an exception. >>> import struct >>> buf = bytearray(10) >>> struct.pack_into(">> buf[0] 99 >>> view = memoryview(buf) >>> view.readonly False >>> struct.pack_into("", li