This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author serhiy.storchaka
Recipients JohnLeitch, serhiy.storchaka
Date 2015-07-21.19:28:59
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1437506939.72.0.480666508648.issue24613@psf.upfronthosting.co.za>
In-reply-to
Content
Minimal example:

import array
a = array.array("B")
a.fromstring(b'x'*0x10000)
a.fromstring(a)
a.fromstring(a)

In 3.x it doesn't work. An exception is raised:

Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
BufferError: cannot resize an array that is exporting buffers

I think it would be better to raise an exception in 2.7 too.
History
Date User Action Args
2015-07-21 19:28:59serhiy.storchakasetrecipients: + serhiy.storchaka, JohnLeitch
2015-07-21 19:28:59serhiy.storchakasetmessageid: <1437506939.72.0.480666508648.issue24613@psf.upfronthosting.co.za>
2015-07-21 19:28:59serhiy.storchakalinkissue24613 messages
2015-07-21 19:28:59serhiy.storchakacreate