[issue27606] Android cross-built for armv5te with clang and '-mthumb' crashes with SIGSEGV or SIGILL

2016-07-24 Thread Xavier de Gaye
Changes by Xavier de Gaye : Added file: http://bugs.python.org/file43860/strace-pydebug.txt ___ Python tracker ___

[issue1621] Do not assume signed integer overflow behavior

2016-07-24 Thread Martin Panter
Martin Panter added the comment: unicode.patch avoids an overflow in PyUnicode_Join(): >>> size = int(sys.maxsize**0.5) + 1 >>> "".join(("A" * size,) * size) Objects/unicodeobject.c:9927:12: runtime error: signed integer overflow: 46341 + 2147441940 cannot be represented in type 'int'

[issue27605] Inconsistent calls to __eq__ from built-in __contains__

2016-07-24 Thread Vasiliy Faronov
New submission from Vasiliy Faronov: Consider the attached example program. I expect it to run successfully, because the Python 3 language reference says [1]: > For container types such as list, tuple, set, frozenset, dict, or > collections.deque, the expression `x in y` is equivalent to

[issue1621] Do not assume signed integer overflow behavior

2016-07-24 Thread Martin Panter
Martin Panter added the comment: Xiang: I don’t think we need to make the tests do anything special. Just make sure they exercise the code that handles overflows. I have been running the test suite without any -j0 option, and I can look over the output and see the error messages. Or if we get

[issue15303] Minor revision to the method in Tkinter

2016-07-24 Thread Serhiy Storchaka
Changes by Serhiy Storchaka : -- assignee: -> serhiy.storchaka type: behavior -> enhancement versions: +Python 3.6 -Python 3.4 ___ Python tracker

[issue27226] distutils: unable to compile both .opt-1.pyc and .opt2.pyc simultaneously

2016-07-24 Thread Chris Mayo
Changes by Chris Mayo : -- nosy: +cjmayo ___ Python tracker ___ ___ Python-bugs-list

[issue25170] 3.4.4, 3.4.5, 3.5.0, 3.5.1, 3.5.2 documentation archives missing

2016-07-24 Thread Chris Mayo
Changes by Chris Mayo : -- nosy: +cjmayo ___ Python tracker ___ ___ Python-bugs-list

[issue27604] More details about `-O` flag

2016-07-24 Thread Ram Rachum
New submission from Ram Rachum: I wanted to ensure that the `-O` flag doesn't really do anything more than remove assert statement and make `__debug__` equal `False`. But the documentation for `-O` doesn't cover it: https://docs.python.org/3/using/cmdline.html#cmdoption-O

[issue27366] PEP487: Simpler customization of class creation

2016-07-24 Thread Martin Teichmann
Martin Teichmann added the comment: Thanks for the nice review! I made the proposed changes, see attached patch. I am still waiting for a decision whether type.__setattr__ should call __set_name__ from python-dev, once that's sorted out I'll implement and test the one or the other behavior.

[issue26823] Shrink recursive tracebacks

2016-07-24 Thread Nick Coghlan
Nick Coghlan added the comment: Thanks Emanuel, and sorry for the long delay in getting a review! My main substantive comment is that the approach of hardcoding the recursion count won't work cross platform, as the default recursion limit is set differently depending on how the platform's C

[issue26823] Shrink recursive tracebacks

2016-07-24 Thread Nick Coghlan
Changes by Nick Coghlan : -- assignee: ebarry -> ncoghlan stage: patch review -> commit review ___ Python tracker ___

[issue26152] A non-breaking space in a source

2016-07-24 Thread Nick Coghlan
Nick Coghlan added the comment: http://bugs.python.org/issue27582 is a later mention of the same problem that attracted patches before Adam noticed it was a repeat of this issue. Marking this as the duplicate, since the problem applies to more than just Unicode whitespace, and the problems

[issue26152] A non-breaking space in a source

2016-07-24 Thread Nick Coghlan
Changes by Nick Coghlan : -- resolution: -> duplicate status: open -> closed ___ Python tracker ___

[issue27582] Mispositioned SyntaxError caret for unknown code points

2016-07-24 Thread Nick Coghlan
Nick Coghlan added the comment: Drekin, agreed, that looks like the same problem. Since this one has draft patches attached, I'll mark the other one as a duplicate. -- ___ Python tracker

[issue27366] PEP487: Simpler customization of class creation

2016-07-24 Thread Nick Coghlan
Nick Coghlan added the comment: Martin's current implementation basically looks good to me - I've mainly suggested some changes to the documentation and additional test cases that help stress test some of the more complex inheritance hierarchies described above, although there are a few other

[issue18181] PEP447: Add type.__getdescriptor__

2016-07-24 Thread Ronald Oussoren
Changes by Ronald Oussoren : Added file: http://bugs.python.org/file43853/pep447-2015-07-26.txt ___ Python tracker ___

[issue1621] Do not assume signed integer overflow behavior

2016-07-24 Thread Xiang Zhang
Xiang Zhang added the comment: It's cool, but I get one problem when writing tests. support.captured_stderr cannot capture the runtime error message. So we have nothing to do with the assertion and the test will always succeed even when overflow does happen (the message will be output). To

[issue27570] Avoid memcpy(. . ., NULL, 0) etc calls

2016-07-24 Thread Martin Panter
Martin Panter added the comment: V2 patch adds another fix, uncovered by recent datetime tests: >>> a = array("B") >>> a[:] = a /media/disk/home/proj/python/cpython/Modules/arraymodule.c:748:5: runtime error: null pointer passed as argument 1, which is declared to never be null

[issue7063] Memory errors in array.array

2016-07-24 Thread Martin Panter
Martin Panter added the comment: The patch looks good to me (assuming it still applies). Should also remove the “b” macro. -- components: +Extension Modules -Library (Lib), Tests nosy: +martin.panter stage: patch review -> commit review ___ Python

[issue27581] Fix overflow check in PySequence_Tuple

2016-07-24 Thread Martin Panter
Martin Panter added the comment: I don’t accept that the bltinmodule.c code is similar to your patch. It gets a size_t from calling strlen() on a string that potentially comes from outside Python, so it is definitely valid to check for PY_SSIZE_T_MAX. However I did find PyByteArray_Resize()

<    1   2