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 serhiy.storchaka
Date 2017-11-12.18:54:35
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1510512876.05.0.213398074469.issue32011@psf.upfronthosting.co.za>
In-reply-to
Content
Example:

$ python2 -c 'import sys, marshal; marshal.dump(1234567890, sys.stdout)' | python3 -c 'import sys, marshal; print(marshal.load(sys.stdin.buffer))'
1234567890

$ python2 -c 'import sys, marshal; marshal.dump(123456789012345, sys.stdout)' | python3 -c 'import sys, marshal; print(marshal.load(sys.stdin.buffer))'
Traceback (most recent call last):
  File "<string>", line 1, in <module>
ValueError: bad marshal data (unknown type code)

 python2 -c 'import sys, marshal; marshal.dump(12345678901234567890, sys.stdout)' | python3 -c 'import sys, marshal; print(marshal.load(sys.stdin.buffer))'
12345678901234567890

PR 4381 reverts this change and simplifies the restored code.
History
Date User Action Args
2017-11-12 18:54:36serhiy.storchakasetrecipients: + serhiy.storchaka
2017-11-12 18:54:36serhiy.storchakasetmessageid: <1510512876.05.0.213398074469.issue32011@psf.upfronthosting.co.za>
2017-11-12 18:54:36serhiy.storchakalinkissue32011 messages
2017-11-12 18:54:35serhiy.storchakacreate