[issue21517] installer Python default setting fails with mac Python Launcher

2014-05-17 Thread Ned Deily
Ned Deily added the comment: Python.org installers do not install anything to /usr/bin; they do, by default, install symbolic links in /usr/local/bin. Python 3 installers set the symlink /usr/local/bin/python3 to the most recently installed version. The Python Launcher app has several open

[issue21385] in debug mode, compile(ast) fails with an assertion error if an AST node has no line number information

2014-05-17 Thread R. David Murray
R. David Murray added the comment: Victor: in the production code discussed in the original posting, there *are* line numbers, and they are meaningful; they just aren't monotonically increasing. I believe the request here is to simply remove the assert. (If we did that, we'd have to also

[issue21386] ipaddress.IPv4Address.is_global not implemented

2014-05-17 Thread R. David Murray
R. David Murray added the comment: The patch looks correct to me, but we also need tests. -- nosy: +r.david.murray ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue21386 ___

[issue21391] shutil uses both os.path.abspath and an 'import from' of abspath

2014-05-17 Thread R. David Murray
R. David Murray added the comment: I'd prefer to get rid of it, otherwise we might get requests to add all the other os.path functions to the shutil namespace, and I don't think having that kind of more than one way to do it serves anyone. I suppose we'll have to deprecate it first if we do

[issue21397] tempfile.py: Fix grammar in docstring, comment typos

2014-05-17 Thread R. David Murray
R. David Murray added the comment: 'below' doesn't make sense at all if you view it via pydoc. There is only one unsafe function left, mktemp. Here is an alternate patch that takes advantage of that fact. -- nosy: +r.david.murray Added file:

[issue18540] imaplib.IMAP4() ends with Name or service not known on Fedora 18

2014-05-17 Thread R. David Murray
R. David Murray added the comment: Milan: using 'localhost' is incorrect, since the string 'localhost' will not always resolve to the local host IP, while passing None to getaddrinfo will. It is significant that the example fails. We need a test for this case (the imap tests have been

[issue21509] json.load fails to read UTF-8 file with (BOM) Byte Order Marks

2014-05-17 Thread Kristian Benoit
Kristian Benoit added the comment: I added code to skip the bom if present when encoding is either None or utf-8. The problem I have with Victor's solution is that users don't know these files are not plain UTF-8. Most text editor says it's utf-8 encoded, how can a user figure out there 3

[issue21517] installer Python default setting fails with mac Python Launcher

2014-05-17 Thread Andrew Harrington
Andrew Harrington added the comment: I see not messing with /usr/bin. Your note about Python Launcher would be a nice addition to the Mac installer notes. I would encourage that before closing this. On Sat, May 17, 2014 at 1:57 AM, Ned Deily rep...@bugs.python.org wrote: Ned Deily added

[issue15014] smtplib: add support for arbitrary auth methods

2014-05-17 Thread R. David Murray
R. David Murray added the comment: OK, I've finally had time to review this, sorry for the delay. The impalib mechanism is tailored to how imap works (that's the whole thing about continuation response. smtplib auth works a bit differently, and your adaptation looks OK to me. The

[issue21509] json.load fails to read UTF-8 file with (BOM) Byte Order Marks

2014-05-17 Thread Kristian Benoit
Changes by Kristian Benoit kristian.ben...@gmail.com: Added file: http://bugs.python.org/file35270/json.v2.patch ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue21509 ___

[issue21518] Expose RegUnloadKey in winreg

2014-05-17 Thread Claudiu.Popa
New submission from Claudiu.Popa: Hello. While working on issue8579, I noticed that there is no way to detach a key from the registry, loaded with LoadKey function. The attached patch exposes RegUnLoadKeyW as winreg.UnloadKey. Also, this patch adds a new script in the test folder,

[issue21518] Expose RegUnloadKey in winreg

2014-05-17 Thread Berker Peksag
Changes by Berker Peksag berker.pek...@gmail.com: -- nosy: +steve.dower, tim.golden, zach.ware ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue21518 ___

[issue21518] Expose RegUnloadKey in winreg

2014-05-17 Thread Claudiu.Popa
Claudiu.Popa added the comment: It needs administrator elevation for running the test. I'll update the patch to skip the test if the user doesn't have elevation. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue21518

[issue21516] pathlib.Path(...).is_dir() crashes on some directories (Windows)

2014-05-17 Thread Thomas Heller
Thomas Heller added the comment: When you say os.path.isdir(...) works fine, you mean it's returning False? As shown in the original report (http://bugs.python.org/issue21516#msg218664) os.path.isdir() returns True; which is correct since c:\Users\admin is a directory on my machine.

[issue21430] Document ssl.pending()

2014-05-17 Thread Steffen Ullrich
Steffen Ullrich added the comment: Data transport in SSL is not done with plain TCP, but with encoded frames inside TCP. To get decoded data one has to first receive the full frame, even if one is only interested in the first bytes. Example: - server does an SSL_write with 200 bytes. This

[issue21430] Document ssl.pending()

2014-05-17 Thread Antoine Pitrou
Antoine Pitrou added the comment: So to make use of select with SSL the application would have to check first with pending, if there are already buffered data, What's the point of checking? Just call SSL_read() and catch the SSL_ERROR_WANT_{READ,WRITE} to determine that no data is available;

[issue21430] Document ssl.pending()

2014-05-17 Thread Bas Wijnen
Bas Wijnen added the comment: After trying to use this, I think ssl.pending is a valuable function that should be supported and documented. My use case is a half-synchronous system, where I want most calls to block but asynchronous events are possible as well. Switching the socket between

[issue21362] concurrent.futures does not validate that max_workers is proper

2014-05-17 Thread Roundup Robot
Roundup Robot added the comment: New changeset 3024ad49f00e by Brian Quinlan in branch 'default': Issue #21362: concurrent.futures does not validate that max_workers is proper http://hg.python.org/cpython/rev/3024ad49f00e -- nosy: +python-dev ___

[issue21362] concurrent.futures does not validate that max_workers is proper

2014-05-17 Thread Brian Quinlan
Brian Quinlan added the comment: Committed, thanks for the fix! -- resolution: - fixed status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue21362 ___

[issue10744] ctypes arrays have incorrect buffer information (PEP-3118)

2014-05-17 Thread Roundup Robot
Roundup Robot added the comment: New changeset 44dac2e7fcb8 by Benjamin Peterson in branch '2.7': support pep 3118 format strings for ctypes objects with nontrivial shapes (closes #10744) http://hg.python.org/cpython/rev/44dac2e7fcb8 New changeset 22938bf57161 by Benjamin Peterson in branch

[issue20186] Derby #18: Convert 31 sites to Argument Clinic across 23 files

2014-05-17 Thread Roundup Robot
Roundup Robot added the comment: New changeset 060cfd049d14 by Stefan Krah in branch 'default': Issue #20186: memoryobject.c: add function signatures. http://hg.python.org/cpython/rev/060cfd049d14 -- nosy: +python-dev ___ Python tracker

[issue20186] Derby #18: Convert 31 sites to Argument Clinic across 23 files

2014-05-17 Thread Stefan Krah
Stefan Krah added the comment: memoryobject.c is converted with a minimal patch (I would like to keep 100% code coverage for the file). -- nosy: +skrah ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue20186

[issue21430] Document ssl.pending()

2014-05-17 Thread Steffen Ullrich
Steffen Ullrich added the comment: What's the point of checking? Just call SSL_read() and catch the SSL_ERROR_WANT_{READ,WRITE} to determine that no data is available; as a bonus it also tells you whether you have to select() for read or for write. A common scenario with non-blocking

[issue21430] Document ssl.pending()

2014-05-17 Thread Antoine Pitrou
Antoine Pitrou added the comment: I was trying to point out that for SSL enabled sockets this approach will no longer work and might cause odd stalling of connections, because select will not show the socket as readable although data are there for read. You are right, this is worth

[issue19980] Improve help('non-topic') response

2014-05-17 Thread Mark Lawrence
Mark Lawrence added the comment: I propose the following. help('') returns help on strings in the same way that help([]) and help({}) returns help on lists and dicts respectively, further help(''.method) returns help on the string method or an attribute error, so this appears to me

[issue21430] Document ssl.pending()

2014-05-17 Thread Roundup Robot
Roundup Robot added the comment: New changeset b820b1b282b2 by Antoine Pitrou in branch '3.4': Issue #21430: additions to the description of non-blocking SSL sockets http://hg.python.org/cpython/rev/b820b1b282b2 New changeset 077e64b23592 by Antoine Pitrou in branch 'default': Issue #21430:

[issue21385] in debug mode, compile(ast) fails with an assertion error if an AST node has no line number information

2014-05-17 Thread Terry J. Reedy
Terry J. Reedy added the comment: Summary of this post: compile currently checks user input with assert; this is a bug that should be changed. I re-read astlinenotest.py and realized that FunctionDef is included in '*' and not some omitted import. (The latter is common for code posted on

[issue7776] http.client.HTTPConnection tunneling is broken

2014-05-17 Thread Benjamin Peterson
Changes by Benjamin Peterson benja...@python.org: -- versions: -Python 2.7 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue7776 ___ ___

[issue7776] http.client.HTTPConnection tunneling is broken

2014-05-17 Thread Donald Stufft
Donald Stufft added the comment: @larry Is there anything else I need to do? -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue7776 ___ ___

[issue21391] shutil uses both os.path.abspath and an 'import from' of abspath

2014-05-17 Thread Berker Peksag
Berker Peksag added the comment: Here is a patch to deprecate the shutil.abspath function. -- nosy: +berker.peksag Added file: http://bugs.python.org/file35272/issue21391.diff ___ Python tracker rep...@bugs.python.org

[issue2052] Allow changing difflib._file_template character encoding.

2014-05-17 Thread Berker Peksag
Berker Peksag added the comment: Attaching a new version of issue2052_html5.diff. Changes: - Switch from px to em in CSS - Cleanup markup a bit (e.g. delete redundant colgroup tags) -- Added file: http://bugs.python.org/file35273/issue2052_html5_v2.diff

[issue21112] 3.4 regression: unittest.expectedFailure no longer works on TestCase subclasses

2014-05-17 Thread Berker Peksag
Berker Peksag added the comment: Berker: do you consider your diff ready to go in, or is it an early diff (like a work-in-progress)? I tested my patch with test_expectedFailure.py again. The patch is not really fixes the problem described in msg215240. So, I consider it a WIP patch for now.

[issue7776] http.client.HTTPConnection tunneling is broken

2014-05-17 Thread Senthil Kumaran
Senthil Kumaran added the comment: @dstufft - should you commit it in 3.4 branch (since the change is already in 3.5) and then wait for larry's approval or rejection? -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue7776

[issue7776] http.client.HTTPConnection tunneling is broken

2014-05-17 Thread Larry Hastings
Larry Hastings added the comment: Okay, this has my blessing to be merged for 3.4.1. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue7776 ___ ___

[issue7776] http.client.HTTPConnection tunneling is broken

2014-05-17 Thread Larry Hastings
Changes by Larry Hastings la...@hastings.org: -- status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue7776 ___ ___ Python-bugs-list

[issue21470] Better seeding for the random module

2014-05-17 Thread Larry Hastings
Larry Hastings added the comment: (If the past few weeks have taught us *anything*, it's that we can't look to OpenSSL to learn best practices.) -- nosy: +larry stage: - resolved ___ Python tracker rep...@bugs.python.org

[issue21112] 3.4 regression: unittest.expectedFailure no longer works on TestCase subclasses

2014-05-17 Thread Larry Hastings
Larry Hastings added the comment: Considering that I'm tagging 3.4.1 within an hour or two, and we don't have a patch yet, I'd say that this is too late to go into 3.4.1. But I'm happy to consider it for a future 3.4.x revision. -- ___ Python

[issue21430] Document ssl.pending()

2014-05-17 Thread Alexey Gorshkov
Alexey Gorshkov added the comment: Issue #21430: additions to the description of non-blocking SSL sockets I do not see any mention of .pending() in Your commit. Is this some personal hate to subject? Are You going to document this method or not? Documenting it on line of text. If You are not

[issue20362] longMessage attribute is ignored in unittest.TestCase.assertRegexpMatches etc

2014-05-17 Thread Berker Peksag
Berker Peksag added the comment: I've added missing self._formatMessage() functions to assertRegex and assertNotRegex asserts. -- keywords: +patch nosy: +berker.peksag stage: needs patch - patch review versions: -Python 3.3 Added file: http://bugs.python.org/file35274/issue20362.diff

[issue21519] IDLE : Bug in keybinding validity check

2014-05-17 Thread Saimadhav Heblikar
New submission from Saimadhav Heblikar: Steps to reproduce the bug: 1. IDLE options configure idle keys 2. Try to replace a keybinding for an action with that of another action which has more than one keybinding. For eg : Default binding of copy=Control-Key-c Control-Key-C. So, try to