[issue28125] identify cross builds by a more generic environment setting.

2016-09-13 Thread Matthias Klose
Matthias Klose added the comment: On 13.09.2016 23:43, Xavier de Gaye wrote: > > Xavier de Gaye added the comment: > > You do not answer my questions and resort to sarcasm instead: "How did you > make it more difficult?". I understand that you may be upset because issue > 23968 has been disma

[issue28055] pyhash's siphash24 assumes alignment of the data pointer

2016-09-13 Thread Matthias Klose
Matthias Klose added the comment: if the only concern is 32bit sparc, then please let's drop this in 3.6. Looking at #28027 the new way to obsoleting things seems to be decreeing them (sorry about the sarcasm). If I interpret your concerns correctly you care about platforms, which you are not

[issue28055] pyhash's siphash24 assumes alignment of the data pointer

2016-09-13 Thread Matthias Klose
Changes by Matthias Klose : -- nosy: +gvanrossum, ned.deily ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: htt

[issue28137] Windows sys.path file should be renamed

2016-09-13 Thread Steve Dower
Steve Dower added the comment: Part of the reason it was so cute is that it directly specifies the contents of sys.path. But I like __syspath__.path (I'm scared of making it a ".ini" because I don't want to parse a more complex format). -- ___ Pytho

[issue23591] enum: Add Flags and IntFlags

2016-09-13 Thread Vedran Čačić
Vedran Čačić added the comment: About drama: I don't know how to approach the problem. I tell you about various concerns of mine, you seem to agree, and still you do exactly what I was warning you about. It could be that you just consider me a boring nag, but then saying so would be more usefu

[issue28055] pyhash's siphash24 assumes alignment of the data pointer

2016-09-13 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: > IMO, though, we should just require alignment for the argument to > _PyHash_Bytes. It's private after all. And what to do with memoryview? Memoryview data can be not aligned. > If I understand it correctly, the hash value differs depending on the kernel >

[issue27778] PEP 524: Add os.getrandom()

2016-09-13 Thread Martin Panter
Martin Panter added the comment: I understand it’s already implemented, and Victor just reopened it for more documentation. -- ___ Python tracker ___ ___

[issue28125] identify cross builds by a more generic environment setting.

2016-09-13 Thread Xavier de Gaye
Xavier de Gaye added the comment: What do you mean ? When cross-compiling, _PYTHON_HOST_PLATFORM is defined as $MACHDEP-$_host_cpu, but _PYTHON_SYSCONFIGDATA_NAME is suffixed with $(MACHDEP)_$(MULTIARCH) instead. -- ___ Python tracker

[issue23591] enum: Add Flags and IntFlags

2016-09-13 Thread Ethan Furman
Ethan Furman added the comment: I'll respond to the bulk of your comment later. For now let me assure you your feedback has been invaluable. -- ___ Python tracker ___ _

[issue28131] assert statements missed when loaded by zipimporter

2016-09-13 Thread Gregory P. Smith
Gregory P. Smith added the comment: This shouldn't be happening and makes no sense. It looks like the assert statement was removed at import code compilation time given the pdb trace with it from a zip file vs with it outside of a zip file: >>> pdb.run('mod.test(False)') > (1)() (Pdb) n Fals

[issue28131] assert statements missed when loaded by zipimporter

2016-09-13 Thread Gregory P. Smith
Gregory P. Smith added the comment: from the zip: >>> dis.dis(mod.test) 3 0 LOAD_GLOBAL 0 (print) 2 LOAD_FAST0 (val) 4 CALL_FUNCTION1 6 POP_TOP 8 LOAD_CONST 0 (None)

[issue28125] identify cross builds by a more generic environment setting.

2016-09-13 Thread Xavier de Gaye
Xavier de Gaye added the comment: > but not having the existing cross build infrastructure being replaced by some > new android concepts. Running 'hg log' on configure.ac and Makefile.pre.in shows that there is not a single change in the cross build infrastructure done for some new android co

[issue26219] implement per-opcode cache in ceval

2016-09-13 Thread Ryan May
Changes by Ryan May : -- nosy: +Ryan May ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.or

[issue26110] Speedup method calls 1.2x

2016-09-13 Thread Ryan May
Changes by Ryan May : -- nosy: +Ryan May ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.or

[issue26647] ceval: use Wordcode, 16-bit bytecode

2016-09-13 Thread Ryan May
Changes by Ryan May : -- nosy: +Ryan May ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.or

[issue28055] pyhash's siphash24 assumes alignment of the data pointer

2016-09-13 Thread Guido van Rossum
Changes by Guido van Rossum : -- nosy: -gvanrossum ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mai

[issue28136] RegEx documentation error

2016-09-13 Thread triuan
triuan added the comment: thanks! -- ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/ma

[issue28134] socket.socket(fileno=fd) does not work as documented

2016-09-13 Thread Martin Panter
Martin Panter added the comment: The documentation says that the family, type and proto attributes correspond to the constructor arguments. Although it is unfortunate and quirky, I think your behaviour does match the documentation. Do the mismatched settings cause any serious problems with soc

[issue28128] Improve the warning message for invalid escape sequences

2016-09-13 Thread Martin Panter
Martin Panter added the comment: See also Issue 28028. Serhiy suggested translating warnings to SyntaxWarning in general. Looks like that may help narrowing down the location of escaping problems. -- ___ Python tracker

[issue25235] EmailMessage.add_attachment() creates parts with spurious MIME-Version header.

2016-09-13 Thread R. David Murray
R. David Murray added the comment: Here's patch that only puts the MIME-Version in the output stream and doesn't modify the message (permanently, at least). I like this better. This patch is against 3.5 (the previous one was against 3.6). Since this stuff is provisional in 3.5, I'm thinking

[issue25868] test_eintr.test_sigwaitinfo() hangs on "AMD64 FreeBSD CURRENT 3.x" buildbot

2016-09-13 Thread Martin Panter
Martin Panter added the comment: Happened again: http://buildbot.python.org/all/builders/AMD64%20FreeBSD%209.x%203.x/builds/4990/steps/test/logs/stdio Timeout (0:10:00)! Thread 0x000801807400 (most recent call first): File "/usr/home/buildbot/python/3.x.koobs-freebsd9/build/Lib/test/eintrd

[issue28139] Misleading Indentation

2016-09-13 Thread Francisco Couzo
New submission from Francisco Couzo: Fixed the warnings that appear when compiling 2.7 with -Wmisleading-indentation (Included in -Wall since GCC 6). Kinda related, though I don't think there would be too much interest in fixing it (all the tabs in Python's C source): $ find . -name '*.c' -pri

[issue28139] Misleading Indentation in C source code

2016-09-13 Thread ppperry
Changes by ppperry : -- title: Misleading Indentation -> Misleading Indentation in C source code ___ Python tracker ___ ___ Python-bug

[issue28118] type-limits warning in PyMem_New() _ssl_locks_count

2016-09-13 Thread Martin Panter
Martin Panter added the comment: Thanks that works well Christian -- ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscr

[issue28131] assert statements missed when loaded by zipimporter

2016-09-13 Thread Xiang Zhang
Xiang Zhang added the comment: This is introduced in 663a62bcf9c9. The compile optimize flag is opened in the change. -- nosy: +steve.dower, xiang.zhang ___ Python tracker ___ _

[issue27482] heap-buffer-overflow on address 0x6250000078ff

2016-09-13 Thread Duane Griffin
Duane Griffin added the comment: There are a couple of places where the tokenizer code is not correctly handling \0 characters occurring at the start of the buffer. Patch attached. -- keywords: +patch nosy: +duaneg Added file: http://bugs.python.org/file44646/0001-Issue-27482-handle-nu

[issue28131] assert statements missed when loaded by zipimporter

2016-09-13 Thread Steve Dower
Steve Dower added the comment: Bah, that's meant to be a -1 in that change, not 1. I must have typo'd when moving from the default branch to put it in 3.5. Anyone's welcome to fix it, or I'll get it when I have time for CPython work. -- ___ Python t

[issue28131] assert statements missed when loaded by zipimporter

2016-09-13 Thread Steve Dower
Changes by Steve Dower : -- nosy: +larry versions: +Python 3.5 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue28131] assert statements missed when loaded by zipimporter

2016-09-13 Thread Berker Peksag
Berker Peksag added the comment: Here is a patch with a test case. -- keywords: +patch nosy: +berker.peksag stage: -> patch review type: -> behavior Added file: http://bugs.python.org/file44647/issue28131.diff ___ Python tracker

[issue28140] Attempt to give better errors for shell commands typed into the REPL

2016-09-13 Thread Nick Coghlan
New submission from Nick Coghlan: A problem we're starting to see on distutils-sig is folks trying to type pip commands into the Python REPL rather than their system shell, and getting cryptic syntax errors back: >>> pip install requests File "", line 1 pip install requests

[issue28055] pyhash's siphash24 assumes alignment of the data pointer

2016-09-13 Thread Benjamin Peterson
Benjamin Peterson added the comment: Here's a patch that requires 8-byte alignment. It almost completely works except that on ABIs with 32-bit pointers, unicode objects can have their data pointers aligned at only 4-bytes. Perhaps we can get away with requiring only 4-byte alignment on 32-bit

[issue28139] Misleading Indentation in C source code

2016-09-13 Thread Roundup Robot
Roundup Robot added the comment: New changeset 4d91f5c2ef99 by Benjamin Peterson in branch '2.7': fix misleading indentation (closes #28139) https://hg.python.org/cpython/rev/4d91f5c2ef99 -- nosy: +python-dev resolution: -> fixed stage: -> resolved status: open -> closed _

[issue28131] assert statements missed when loaded by zipimporter

2016-09-13 Thread Benjamin Peterson
Benjamin Peterson added the comment: lgtm -- nosy: +benjamin.peterson ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubsc

[issue28131] assert statements missed when loaded by zipimporter

2016-09-13 Thread Roundup Robot
Roundup Robot added the comment: New changeset 7bec326972f5 by Berker Peksag in branch '3.5': Issue #28131: Fix a regression in zipimport's compile_source() https://hg.python.org/cpython/rev/7bec326972f5 New changeset 7a6c0c4e6072 by Berker Peksag in branch '3.6': Issue #28131: Merge from 3.5 ht

[issue28131] assert statements missed when loaded by zipimporter

2016-09-13 Thread Berker Peksag
Berker Peksag added the comment: Thanks for the report and for the reviews! -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker ___

[issue25895] urllib.parse.urljoin does not handle WebSocket URLs

2016-09-13 Thread Markus Holtermann
Markus Holtermann added the comment: Thanks for your input. I remove the versionchanged block. -- Added file: http://bugs.python.org/file44649/0001-Enable-WebSocket-URL-schemes-in-urllib.parse.urljoin.patch ___ Python tracker

[issue26171] heap overflow in zipimporter module

2016-09-13 Thread Roundup Robot
Roundup Robot added the comment: New changeset 5ae8756a1ae0 by Berker Peksag in branch '3.3': Issue #26171: Prevent buffer overflow in get_data https://hg.python.org/cpython/rev/5ae8756a1ae0 New changeset fa006d671f41 by Berker Peksag in branch '3.4': Issue #26171: Null merge https://hg.python.o

[issue26171] heap overflow in zipimporter module

2016-09-13 Thread Berker Peksag
Berker Peksag added the comment: Thanks! -- nosy: +berker.peksag resolution: -> fixed stage: needs patch -> resolved status: open -> closed ___ Python tracker ___ __

[issue27482] heap-buffer-overflow on address 0x6250000078ff

2016-09-13 Thread Serhiy Storchaka
Changes by Serhiy Storchaka : -- assignee: -> serhiy.storchaka nosy: +serhiy.storchaka stage: -> patch review ___ Python tracker ___ ___

[issue28119] Explicit null dereferenced in formatter_unicode.c

2016-09-13 Thread Roundup Robot
Roundup Robot added the comment: New changeset a27cb132e140 by Benjamin Peterson in branch '3.5': improve type-safe of and prevent double-frees in get_locale_info (#28119) https://hg.python.org/cpython/rev/a27cb132e140 New changeset 5ab61df1ca96 by Benjamin Peterson in branch '3.6': merge 3.5 (#

[issue28119] Explicit null dereferenced in formatter_unicode.c

2016-09-13 Thread Benjamin Peterson
Benjamin Peterson added the comment: I think that should take care of it (and also possible double-frees I noticed)? -- nosy: +benjamin.peterson ___ Python tracker ___ __

[issue28081] [Patch] timemodule: Complete Autoconf bits for clock_*() functions: make clock_getres() and clock_settime() optional

2016-09-13 Thread Roundup Robot
Roundup Robot added the comment: New changeset 0ea088671bc2 by Benjamin Peterson in branch '3.6': more granular configure checks for clock_* functions (closes #28081) https://hg.python.org/cpython/rev/0ea088671bc2 New changeset 3ce29b2452f0 by Benjamin Peterson in branch 'default': merge 3.6 (#2

[issue28141] shutil.copystat utime lookup fails on certain Android file systems

2016-09-13 Thread Jerry A
New submission from Jerry A: shutil.copystat fails on certain Android filesystems when trying lookup("utime") (line 194 of https://hg.python.org/cpython/file/3.5/Lib/shutil.py) Using Python 2.7 and Python 3.5 on Android 6.0.1., when I am on the "typical" user file system, and I run a script t

[issue27778] PEP 524: Add os.getrandom()

2016-09-13 Thread Nick Coghlan
Nick Coghlan added the comment: Right, the only missing piece now is documentation of the ENOSYS case, which end users may encounter if a Python 3.6 binary that supports os.getrandom() is run against an older kernel. That's pretty easy to trigger via containers, as getrandom() was added in Lin

[issue28142] windows installer not adding PYTHONHOME

2016-09-13 Thread Memo
New submission from Memo: Hi, when i run python from elevated CMD it is failed to start and give error system codecs not found... The problem is python installer for windows "python-3.5.2-amd64.exe" is not adding the PYTHONHOME environment variable. When I manually added it problem solved.

<    1   2   3