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 lebigot
Recipients lebigot
Date 2015-07-18.02:59:27
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1437188368.42.0.0977367912313.issue24658@psf.upfronthosting.co.za>
In-reply-to
Content
On OS X, the Homebrew and MacPorts versions of Python 3.4.3 raise an exception when writing a 4 GB bytearray:

>>> open('/dev/null', 'wb').write(bytearray(2**31-1))
2147483647

>>> open('/dev/null', 'wb').write(bytearray(2**31))
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
OSError: [Errno 22] Invalid argument

This has an impact on pickle, in particular (https://stackoverflow.com/questions/31468117/python-3-can-pickle-handle-byte-objects-larger-than-4gb).
History
Date User Action Args
2015-07-18 02:59:28lebigotsetrecipients: + lebigot
2015-07-18 02:59:28lebigotsetmessageid: <1437188368.42.0.0977367912313.issue24658@psf.upfronthosting.co.za>
2015-07-18 02:59:28lebigotlinkissue24658 messages
2015-07-18 02:59:27lebigotcreate