From 194117a066fa0af6cbe712223195e4ff02037298 Mon Sep 17 00:00:00 2001 From: Paul Sokolovsky Date: Mon, 9 Feb 2015 12:11:49 +0800 Subject: objstr: Fix bytes creation from array of long ints. --- tests/basics/bytes_construct.py | 3 +++ 1 file changed, 3 insertions(+) (limited to 'tests/basics/bytes_construct.py') diff --git a/tests/basics/bytes_construct.py b/tests/basics/bytes_construct.py index 793d5115e..de6b5d954 100644 --- a/tests/basics/bytes_construct.py +++ b/tests/basics/bytes_construct.py @@ -11,3 +11,6 @@ print(bytes(bytearray(4))) print(bytes(array('b', [1, 2]))) print(bytes(array('h', [1, 2]))) print(bytes(array('I', [1, 2]))) + +# long ints +print(ord(bytes([14953042807679334000 & 0xff]))) -- cgit v1.2.3