[issue1621] Do not assume signed integer overflow behavior

2016-07-22 Thread Martin Panter
Martin Panter added the comment: Perhaps we should add a test for the __length_hint__() overflow to tuple_and_list.patch: >>> a = [1,2,3,4] >>> import sys >>> class B: ... def __iter__(s): return s ... def __next__(s): raise StopIteration() ... def __length_hint__(s): return sys.maxsize ...

[issue1621] Do not assume signed integer overflow behavior

2016-07-22 Thread Martin Panter
Changes by Martin Panter : Added file: http://bugs.python.org/file43839/array-size.patch ___ Python tracker ___ ___ Python-bugs-list mailing li

[issue13849] Add tests for NUL checking in certain strs

2016-07-22 Thread Martin Panter
Martin Panter added the comment: http://buildbot.python.org/all/builders/AMD64%20Windows7%20SP1%203.5/builds/1072/steps/test/logs/stdio == FAIL: test_null_bytes (test.test_genericpath.TestGenericTest) (attr='getsize') ---

[issue27539] negative Fraction ** negative int not normalized

2016-07-22 Thread Vedran Čačić
Vedran Čačić added the comment: The .diff format of patch for fractions.py is at http://bugs.python.org/file43786/TwCVpiFp.diff The line numbers in it are the newest I could get (from https://hg.python.org/cpython/file/default/Lib/fractions.py). I would also add the test I was talking about (

[issue13849] Add tests for NUL checking in certain strs

2016-07-22 Thread Roundup Robot
Roundup Robot added the comment: New changeset 9e997c8f4876 by Berker Peksag in branch '3.5': Issue #13849: Fix test_null_bytes under Windows https://hg.python.org/cpython/rev/9e997c8f4876 New changeset a28abe83cf5c by Berker Peksag in branch 'default': Issue #13849: Merge from 3.5 https://hg.py

[issue27581] Fix overflow check in PySequence_Tuple

2016-07-22 Thread Martin Panter
Martin Panter added the comment: Hmm maybe this patch is okay. We are assuming size_t will fit more than PY_SSIZE_T_MAX. The alternatives I can think of would be equally ugly: /* Risks loss of precision, e.g. 64 bit integer from floating point */ if (n < (Py_ssize_t)(PY_SSIZE_T_MAX / 1.25) - 1

[issue24773] Implement PEP 495 (Local Time Disambiguation)

2016-07-22 Thread Martin Panter
Martin Panter added the comment: FYI, other failures that may be different problems: http://buildbot.python.org/all/builders/AMD64%20Snow%20Leop%203.x/builds/4930/steps/test/logs/stdio Timeout (0:15:00)! Thread 0x7fff71296cc0 (most recent call first): File "/Users/buildbot/buildarea/3.x.m

<    1   2