[issue27572] Support bytes-like objects when base is given to int()

2016-07-22 Thread Martin Panter
Martin Panter added the comment: I am torn on this. On one hand, it would be good to be consistent with the single-argument behaviour. But on the other hand, APIs normally accept arbitrary bytes-like objects (like memoryview) to minimise unnecessary copying, whereas this case has to make a

[issue27572] Support bytes-like objects when base is given to int()

2016-07-22 Thread Xiang Zhang
Xiang Zhang added the comment: Thanks for the reviews Martin. Change the doc and test. -- Added file: http://bugs.python.org/file43825/bytes_like_support_to_int_v2.patch ___ Python tracker

[issue27130] zlib: OverflowError while trying to compress 2^32 bytes or more

2016-07-22 Thread Xiang Zhang
Xiang Zhang added the comment: All tests passed now. :) I think it's OK. Also upload the v10 version restore the statement to avoid the crash you mentioned in comments. [1/1] test_zlib test_abcdefghijklmnop (test.test_zlib.ChecksumTestCase) test issue1202 compliance: signed crc32, adler32 in

<    1   2