[issue23908] Check path arguments of os functions for null character

2016-07-03 Thread Roundup Robot
Roundup Robot added the comment: New changeset b0e8a2e7c361 by Serhiy Storchaka in branch '2.7': Fixed a test for issue23908 with C locale. https://hg.python.org/cpython/rev/b0e8a2e7c361 -- ___ Python tracker _

[issue23908] Check path arguments of os functions for null character

2016-07-03 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Thank you for noticing this. -- ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscri

[issue27442] expose Android API level in sys.implementation

2016-07-03 Thread Xavier de Gaye
Xavier de Gaye added the comment: @Ned The information that the interpreter is an Android built, is needed in issue 16353 [1][2]. In msg266135, the corresponding patch adds the 'is_android' attribute to the already bloated sys module. I had thought then about using sysconfig.get_config_var() a

[issue27442] expose Android API level in sys.implementation

2016-07-03 Thread Xavier de Gaye
Xavier de Gaye added the comment: Well, issue 16353 has been entered upon attempting to fix issue 16255 (see msg173477). So an alternative exists. Issue 16353 could be closed as 'wont't fix'. The list of locations where '/bin/sh' is hard coded in the standard library in msg266084 shows that

[issue26765] Factor out common bytes and bytearray implementation

2016-07-03 Thread Roundup Robot
Roundup Robot added the comment: New changeset 0638047c0c36 by Serhiy Storchaka in branch 'default': Issue #26765: Fixed parsing Py_ssize_t arguments on 32-bit Windows. https://hg.python.org/cpython/rev/0638047c0c36 -- ___ Python tracker

[issue26765] Factor out common bytes and bytearray implementation

2016-07-03 Thread Roundup Robot
Roundup Robot added the comment: New changeset 6c4c0a23fabb by Serhiy Storchaka in branch 'default': Backed out changeset b0087e17cd5e (issue #26765) https://hg.python.org/cpython/rev/6c4c0a23fabb -- ___ Python tracker

[issue26765] Factor out common bytes and bytearray implementation

2016-07-03 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: I don't know what is wrong with this patch. Backed out just for the case. -- resolution: fixed -> stage: resolved -> patch review status: closed -> open ___ Python tracker _

[issue27443] __length_hint__() of bytearray iterator can return negative integer

2016-07-03 Thread Roundup Robot
Roundup Robot added the comment: New changeset 6b084bb6c38b by Serhiy Storchaka in branch '3.5': Issue #27443: __length_hint__() of bytearray itearator no longer return https://hg.python.org/cpython/rev/6b084bb6c38b New changeset 03192909160d by Serhiy Storchaka in branch 'default': Issue #27443

[issue27444] Python doesn't build due to test_float.py broken on non-IEEE machines

2016-07-03 Thread Greg Stark
Greg Stark added the comment: I can easily grant you access to mine. It's a bit slow but you can quickly poke around with the state in the backtrace which honestly looks to me like it should be enough to spot the problem. There are other options. There's a good emulator at http://simh.trailin

[issue27429] xml.sax.saxutils.escape doesn't escape multiple characters safely

2016-07-03 Thread Xiang Zhang
Xiang Zhang added the comment: I think this a bug. There should be no override when escape or unescape. Upload a patch to fix this. -- keywords: +patch nosy: +martin.panter, serhiy.storchaka Added file: http://bugs.python.org/file43616/issue27429.patch _

[issue27443] __length_hint__() of bytearray iterator can return negative integer

2016-07-03 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Thanks Raymond. -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker ___ ___

[issue24960] Can't use pip or easy_install with embeddable zip file.

2016-07-03 Thread fourplusone
fourplusone added the comment: The problem is indeed that lib2to3 fails to load the Grammar.txt file if it is located inside a .zip archive. I think one way to fix it is using of the "get_data" function of the loader https://docs.python.org/3/library/importlib.html#importlib.abc.ResourceLoade

[issue27429] xml.sax.saxutils.escape doesn't escape multiple characters safely

2016-07-03 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: The purpose of xml.sax.saxutils.escape() is escaping characters, that can't be used directly in XML: "&", "<", etc. Quotes are escaped in attributes. It shouldn't be used for replacing ";", because this character itself is used in escapes. There is no a bug

[issue27429] xml.sax.saxutils.escape doesn't escape multiple characters safely

2016-07-03 Thread Xiang Zhang
Xiang Zhang added the comment: I thought of that too. But the doc doesn't tell you that you can not put any characters in the entities, so I think we should make the implementation right when some unexpected characters are passed in. If you don't like the implementation to be changed, I think

[issue27429] xml.sax.saxutils.escape doesn't escape multiple characters safely

2016-07-03 Thread Serhiy Storchaka
Changes by Serhiy Storchaka : -- assignee: -> docs@python components: +Documentation nosy: +docs@python type: behavior -> enhancement ___ Python tracker ___

[issue27429] xml.sax.saxutils.escape doesn't escape multiple characters safely

2016-07-03 Thread Xiang Zhang
Xiang Zhang added the comment: Put a not in escape's doc. -- Added file: http://bugs.python.org/file43617/sax_escape_doc.patch ___ Python tracker ___

[issue27444] Python doesn't build due to test_float.py broken on non-IEEE machines

2016-07-03 Thread R. David Murray
R. David Murray added the comment: I don't have time to tackle it myself; maybe Mark will be interested, but he probably doesn't have time either. Also, he's been known to say he'd like to drop support for non-IEEE architectures ;) I suspect it will be up to someone with an investment in the

[issue27446] struct: allow per-item byte order

2016-07-03 Thread Zack Weinberg
New submission from Zack Weinberg: Occasionally one encounters binary formats which do not stick to one byte order throughout. For example, I have a C program that reads and writes arrays of this struct: ``` struct conn_data { uint32_t ipv4_addr; /* read - network byte order - target IPv4

[issue23034] Dynamically control debugging output

2016-07-03 Thread Roundup Robot
Roundup Robot added the comment: New changeset cd911e06bf6c by Serhiy Storchaka in branch 'default': Issue #23034: The output of a special Python build with defined COUNT_ALLOCS, https://hg.python.org/cpython/rev/cd911e06bf6c -- nosy: +python-dev ___

[issue19527] Test failures with COUNT_ALLOCS

2016-07-03 Thread Roundup Robot
Roundup Robot added the comment: New changeset 5abf6cdcac4d by Serhiy Storchaka in branch '3.5': Issue #19527: Fixed tests with defined COUNT_ALLOCS. https://hg.python.org/cpython/rev/5abf6cdcac4d New changeset e7d84ecdd37d by Serhiy Storchaka in branch 'default': Issue #19527: Fixed tests with

[issue26081] Implement asyncio Future in C to improve performance

2016-07-03 Thread Giampaolo Rodola'
Changes by Giampaolo Rodola' : -- nosy: +giampaolo.rodola ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https

[issue26081] Implement asyncio Future in C to improve performance

2016-07-03 Thread Guido van Rossum
Guido van Rossum added the comment: We should really try to get this into 3.6. --Guido (mobile) -- ___ Python tracker ___ ___ Python-

[issue27380] IDLE: add base Query dialog with ttk widgets

2016-07-03 Thread Terry J. Reedy
Terry J. Reedy added the comment: Added tests for ModuleName. Will recheck and push. -- Added file: http://bugs.python.org/file43618/query4.diff ___ Python tracker ___ _

[issue27437] IDLE tests must be able to set user configuration values.

2016-07-03 Thread Roundup Robot
Roundup Robot added the comment: New changeset 78a3d3700233 by Terry Jan Reedy in branch 'default': Issue 27437: Add query.ModuleName and use it for file => Load Module. https://hg.python.org/cpython/rev/78a3d3700233 -- nosy: +python-dev ___ Python tr

[issue27437] IDLE tests must be able to set user configuration values.

2016-07-03 Thread Terry J. Reedy
Changes by Terry J. Reedy : -- Removed message: http://bugs.python.org/msg269775 ___ Python tracker ___ ___ Python-bugs-list mailing l

[issue27437] IDLE tests must be able to set user configuration values.

2016-07-03 Thread Terry J. Reedy
Terry J. Reedy added the comment: Message for #27380 deleted and copied there. -- ___ Python tracker ___ ___ Python-bugs-list mailing

[issue27380] IDLE: add base Query dialog with ttk widgets

2016-07-03 Thread Terry J. Reedy
Terry J. Reedy added the comment: (Misdirected notice copied here) New changeset 78a3d3700233 by Terry Jan Reedy in branch 'default': Issue 27437: Add query.ModuleName and use it for file => Load Module. https://hg.python.org/cpython/rev/78a3d3700233 -- _

[issue27437] IDLE tests must be able to set user configuration values.

2016-07-03 Thread Terry J. Reedy
Terry J. Reedy added the comment: I believe this is enough to test the new Unix keys patch #27173. Will backport the test file and StringIO import and the additions to IdleUserConfParser in config to support backporting tests for 27173. -- keywords: +patch stage: needs patch -> commit

[issue24960] Can't use lib2to3 with embeddable zip file.

2016-07-03 Thread Nick Coghlan
Nick Coghlan added the comment: (issue title updated to indicate this appears to be lib2to3 related and added Benjamin Peterson to the nosy list) The build process already generates a _sysconfigdata.py file in order to pass along build time details to the sysconfig module in a way that isn't d