[issue9377] socket, PEP 383: Mishandling of non-ASCII bytes in host/domain names

2016-01-27 Thread STINNER Victor
STINNER Victor added the comment: FYI I created the issue #26227 to change the encoding used to decode hostnames on Windows. UTF-8 doesn't seem to be the right encoding, it fails on non-ASCII hostnames. I propose to use the ANSI code page. Sorry, I didn't read this issue, but it looks like IDN

[issue26226] Various test suite failures on Windows

2016-01-27 Thread STINNER Victor
STINNER Victor added the comment: I'm surprised by the test_codecencodings_iso2022 failures. Example: == FAIL: test_incrementaldecoder (test.test_codecencodings_iso2022.Test_ISO2022_KR) --

[issue26173] test_ssl.bad_cert_test() exception handling

2016-01-27 Thread Martin Panter
Martin Panter added the comment: There are more mistakes in the history of test_nonexisting_cert(). In revision 8a281bfc058d (Python 2.6), the method was added as testWrongCert(), with an existing but non-matching certificate file. But when this was ported to Python 3 in r66311, the wrongcert.

[issue26225] New misleading wording in execution model documenation

2016-01-27 Thread Eryk Sun
Eryk Sun added the comment: The class example defines "i" as a local variable, which means the CPython operation used for unoptimized code (class or module/exec) is LOAD_NAME, which searches locals, globals, and builtins. The result differs from the exec example because a class is executed wit

[issue26194] Undefined behavior for deque.insert() when len(d) == maxlen

2016-01-27 Thread Raymond Hettinger
Changes by Raymond Hettinger : Added file: http://bugs.python.org/file41732/full_deque2.diff ___ Python tracker ___ ___ Python-bugs-list maili

[issue26173] test_ssl.bad_cert_test() exception handling

2016-01-27 Thread Martin Panter
Martin Panter added the comment: wrong-cert-py3.patch is similar but also adds the wrongcert.pem file from Python 2. -- keywords: -buildbot stage: needs patch -> patch review Added file: http://bugs.python.org/file41736/wrong-cert-py3.patch ___ Pyth

[issue26181] argparse can't handle positional argument after list (help message is wrong)

2016-01-27 Thread paul j3
paul j3 added the comment: There are 2 issues parsing - how to reserve one or more arguments for use by following 'positionals'. Fixes have been proposed in other bug/issues, but aren't trivial. usage formatting - the stock formatter displays all optionals first, followed by all positionals

[issue26226] Various test suite failures on Windows

2016-01-27 Thread Emanuel Barry
New submission from Emanuel Barry: Compiled latest master and ran test suite (Py_DEBUG build). A few failures here and there, and some tests skipped. I haven't yet looked into getting the proper libraries to make some of the skipped tests execute, I'm trying to make the whole test suite pass f

[issue26226] Various test suite failures on Windows

2016-01-27 Thread Emanuel Barry
Emanuel Barry added the comment: Well, it has a non-ASCII character in it, so I wouldn't be surprised if this was the issue :) Latest master (3.6): >>> import socket >>> socket.gethostname() 'Émanuel-PC' >>> socket.gethostbyaddr(socket.gethostname()) Traceback (most recent call last): File "

[issue26226] Various test suite failures on Windows

2016-01-27 Thread STINNER Victor
STINNER Victor added the comment: Python 2.7.11: >>> import socket >>> socket.gethostname() '\xc9manuel-PC' This one works on Python 3 because the Python function is implemented with a call to the Windows native API. >>> socket.gethostbyaddr(socket.gethostname()) ('\xc9manuel-PC.home', [], ['

[issue17394] Add slicing support to collections.deque

2016-01-27 Thread Raymond Hettinger
Raymond Hettinger added the comment: Returning a deque is preferred. For this stage, I just want to review the code and make sure it algorithmically correct (slicing is complicated and has a lot of cases). -- ___ Python tracker

[issue26228] pty.spawn hangs on FreeBSD 9.3, 10.x

2016-01-27 Thread Chris Torek
New submission from Chris Torek: The pty.spawn() code assumes that when the process on the slave side of the pty quits, the master side starts raising OSError when read-from or written-to. That used to be true in FBSD, but then someone fixed (?) it, and now the master side simply returns EOF w

[issue26227] Windows: socket.gethostbyaddr(name) fails for non-ASCII hostname

2016-01-27 Thread Steve Dower
Steve Dower added the comment: Might be nice to switch the socket APIs to the Unicode ones universally. That would also clear up a range of deprecation warnings on build. -- ___ Python tracker

[issue20120] Percent-signs (%) in .pypirc should not be interpolated

2016-01-27 Thread Jason R. Coombs
Jason R. Coombs added the comment: I also expect very close to zero, given the still heavy adoption of Python 2 and the fact that .pypirc is not Python specific. -- ___ Python tracker _

[issue26226] Various test suite failures on Windows

2016-01-27 Thread Zachary Ware
Changes by Zachary Ware : -- components: +Windows nosy: +paul.moore, steve.dower, tim.golden, zach.ware ___ Python tracker ___ ___ Pyt

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

2016-01-27 Thread Martin Panter
Martin Panter added the comment: Here is my patch which blocks SIGUSR1. I have only tested it on Linux. I also added a counter to the SIGALRM handler, so we can verify that it does get called by the Python sigwaitinfo() implementation. -- keywords: +patch stage: -> patch review Added

[issue26228] pty.spawn hangs on FreeBSD 9.3, 10.x

2016-01-27 Thread Martin Panter
Martin Panter added the comment: I agree with all the changes you made. I made one review comment. It would be nice to add a test case to expose the problem. Correct me if I am wrong, but it doesn’t look like pty.spawn() is tested at all. FWIW on Linux, reading from the master end seems to rai

[issue26220] Unicode HOWTO references a question mark that isn't in snippet

2016-01-27 Thread Roundup Robot
Roundup Robot added the comment: New changeset 63c1c7cdad0f by Martin Panter in branch '3.5': Issue #26220: Remove outdated comment about a question mark https://hg.python.org/cpython/rev/63c1c7cdad0f New changeset dbf90175ea50 by Martin Panter in branch 'default': Issue #26220: Merge Unicode ho

[issue26220] Unicode HOWTO references a question mark that isn't in snippet

2016-01-27 Thread Martin Panter
Martin Panter added the comment: Thanks for the report Quentin. -- nosy: +martin.panter resolution: -> fixed stage: -> resolved status: open -> closed versions: -Python 3.2, Python 3.3, Python 3.4 ___ Python tracker

[issue26034] venv documentation out of date

2016-01-27 Thread Berker Peksag
Berker Peksag added the comment: Thanks for the report, Dan. Most of the docs has already been updated in c3c188a0325a. I've updated the remaining ones. -- nosy: +berker.peksag resolution: -> fixed stage: -> resolved status: open -> closed type: -> behavior _

[issue20598] argparse docs: '7'.split() is confusing magic

2016-01-27 Thread Benjamin Peterson
Benjamin Peterson added the comment: I don't feel that strongly about it. -- ___ Python tracker ___ ___ Python-bugs-list mailing list

[issue26002] make statistics.median_grouped more efficient

2016-01-27 Thread Raymond Hettinger
Raymond Hettinger added the comment: This code looks good and will certainly reduce the number of comparisons in non-trivial cases. FWIW, It looks like the index functions are lifted directly from the bisect docs. Steven, any objections? -- nosy: +rhettinger stage: -> patch review v

[issue26229] Make number serialization ES6/V8 compatible

2016-01-27 Thread Anders Rundgren
New submission from Anders Rundgren: ECMA has in their latest release defined that JSON elements must be ordered during serialization. This is easy to accomplish using Python's OrderedDict. What is less trivial is that numbers have to be formatted in a certain way as well. I have tested 100

[issue26227] Windows: socket.gethostbyaddr(name) fails for non-ASCII hostname

2016-01-27 Thread Emanuel Barry
Emanuel Barry added the comment: FWIW this patch doesn't fix the test_httpservers failure (or any other) in #26226 -- ___ Python tracker ___

<    1   2