[issue25834] getpass falls back when sys.stdin is changed

2015-12-10 Thread Adam Bartoš
New submission from Adam Bartoš: There is a check in Lib/getpass.py:win_getpass that causes a fallback version to be used when `sys.stdin` is changed. I change `sys.stdin` in my `win_unicode_console` package, and in this situation there is no reason to use the fallback version (see

[issue24595] InteractiveInterpreter always prints to stdout

2015-12-10 Thread Terry J. Reedy
Terry J. Reedy added the comment: I strongly prefer attribute, as in the patch. -- ___ Python tracker ___ ___

[issue25829] Mixing multiprocessing pool and subprocess may create zombie process, and cause program to hang.

2015-12-10 Thread Ami Koren
Ami Koren added the comment: Thanks David. using spawn - multiprocessing.get_context('spawn').Pool(... - does the job . It does has it's flows - fork allows me to share data between workers (especially large readonly memory database, which I don't want to duplicate for each worker), which

[issue25638] Verify the etree_parse and etree_iterparse benchmarks are working appropriately

2015-12-10 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Thank you for your review Brett. Now the parse benchmark in 3.6 is only 50% slower than in 2.7. Will continue to find bottlenecks. -- stage: patch review -> ___ Python tracker

[issue2636] Adding a new regex module (compatible with re)

2015-12-10 Thread John Mark Vandenberg
Changes by John Mark Vandenberg : -- nosy: +jayvdb ___ Python tracker ___ ___

[issue25216] Warnings stacklevel frames to skip

2015-12-10 Thread John Mark Vandenberg
Changes by John Mark Vandenberg : -- nosy: +jayvdb ___ Python tracker ___ ___

[issue25216] Warnings stacklevel frames to skip

2015-12-10 Thread John Mark Vandenberg
John Mark Vandenberg added the comment: This looks a lot like the patch on http://bugs.python.org/issue850482 -- ___ Python tracker ___

[issue850482] Enhance frame handing in warnings.warn()

2015-12-10 Thread John Mark Vandenberg
John Mark Vandenberg added the comment: See similar http://bugs.python.org/issue25216 -- nosy: +jayvdb ___ Python tracker ___

[issue25711] Rewrite zipimport from scratch

2015-12-10 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: I were on very early stage, and stopped this work few weeks ago in favor of other issues. I would be glad to make a review of your work when you have finished it Rose. -- ___ Python tracker

[issue25614] Lib/code.py: InteractiveConsole.raw_input writes prompt to stdout

2015-12-10 Thread Berker Peksag
Berker Peksag added the comment: Thanks for the report! Unfortunately, self.write(prompt) return input() is not equivalent of ``return input(prompt)``. Could you give more information about your use case? -- nosy: +berker.peksag ___

[issue25827] Support ICC in configure

2015-12-10 Thread R. David Murray
R. David Murray added the comment: This patch looks correct to me, but I don't have much experience with configure. Are the .dyn files icc's profiling output? I'm adding Alecsandru and Brett as nosy since they worked on the PGO stuff. I'm also adding Stefan since he's shown interest in icc.

[issue24595] InteractiveInterpreter always prints to stdout

2015-12-10 Thread Berker Peksag
Berker Peksag added the comment: I agree with David. I've added a "stream" attribute to InteractiveInterpreter. I don't have a strong preference between a getstream method and a stream attribute(or something different) so I will add documentation changes and tests later. -- keywords:

[issue25835] httplib uses print for debugging

2015-12-10 Thread calin marina
New submission from calin marina: httplib is using print for debugging messages and it is causing a lot of annoyance in multiprocess debugging or even single process but headless running... As it is still used by a lot of libraries, including requests the recommended one over this for HTTP

[issue25822] Add docstrings to fields of urllib.parse results

2015-12-10 Thread Swati Jaiswal
Swati Jaiswal added the comment: I can help with this. Should I propose the changes I am going to make before making them or just create the patch? -- nosy: +curioswati ___ Python tracker

[issue14285] Traceback wrong on ImportError while executing a package

2015-12-10 Thread Roundup Robot
Roundup Robot added the comment: New changeset 3202d143a194 by Martin Panter in branch '3.5': Issue #14285: Do not catch exceptions initializing any ancestor package https://hg.python.org/cpython/rev/3202d143a194 New changeset a526ebcfd31d by Martin Panter in branch 'default': Issue #14285:

[issue25836] Documentation of MAKE_FUNCTION is still incorrect

2015-12-10 Thread Russell Keith-Magee
New submission from Russell Keith-Magee: Refs Issue16554, Issue13026, Issue14349, and probably others. The documentation for the interpretation of the argc argument to MAKE_FUNCTION in Doc/library/dis.rst is incorrect. As of 13 August 2015, the docs say: """ Pushes a new function object on

[issue25836] Documentation of MAKE_FUNCTION is still incorrect

2015-12-10 Thread Russell Keith-Magee
Changes by Russell Keith-Magee : -- versions: -Python 2.7 ___ Python tracker ___ ___

[issue25835] httplib uses print for debugging

2015-12-10 Thread calin marina
Changes by calin marina : -- hgrepos: -326 ___ Python tracker ___ ___

[issue25835] httplib uses print for debugging

2015-12-10 Thread R. David Murray
R. David Murray added the comment: Thanks, but since this is a new feature/change in behavior it can only go into 3.6. Therefore, this is effectively a duplicate of issue 24255. Others might find the patch useful, though, so it wasn't a waste to upload it :) -- nosy: +r.david.murray

[issue25835] httplib uses print for debugging

2015-12-10 Thread calin marina
Changes by calin marina : -- hgrepos: +327 resolution: -> fixed ___ Python tracker ___

[issue25809] "Invalid" tests on locales

2015-12-10 Thread Martin Panter
Martin Panter added the comment: Here is a patch that reverts to plain fr_FR and skips testing the thousands separator. This is what was tested before revision f9ff2a5bbbe2 (Issue 23474). -- keywords: +patch stage: needs patch -> patch review Added file:

[issue25832] Document weird behavior of `finally` when it has `break` in it

2015-12-10 Thread Ram Rachum
New submission from Ram Rachum: Today I spent 30 minutes because of weird behavior of `finally` when it has a `break` statement inside of it. (The behavior is that the exception gets suppressed, which I found unexpected.) I think this behavior should be documented. Example:

[issue25837] Errors when Installing Anaconda 3

2015-12-10 Thread R. David Murray
R. David Murray added the comment: Please report this to the anaconda bug tracker. Anaconda is a third party bundle that includes CPython, but the errors don't look like they have anything to do with CPython or its standard library. In any case, a bug report like this would need to start on

[issue19771] runpy should check ImportError.name before wrapping it

2015-12-10 Thread Nick Coghlan
Nick Coghlan added the comment: The bad-pyc patch looks good to me. -- ___ Python tracker ___ ___

[issue7291] urllib2 cannot handle https with proxy requiring auth

2015-12-10 Thread Chi Hsuan Yen
Changes by Chi Hsuan Yen : -- nosy: +Chi Hsuan Yen ___ Python tracker ___ ___

[issue25838] Lib/httplib.py: Resend http request on server close connection

2015-12-10 Thread Mikhail Gulyaev
New submission from Mikhail Gulyaev: Hello guys! Recently I recived some strange behavior for sending http requests using httplib My python script uses httplib and interacts with a web server which have a keep-alive timeout 5 seconds. Script makes PUT requests and sends files to server. At

[issue25838] Lib/httplib.py: Resend http request on server close connection

2015-12-10 Thread Mikhail Gulyaev
Changes by Mikhail Gulyaev : -- keywords: +patch Added file: http://bugs.python.org/file41284/httplib.patch ___ Python tracker ___

[issue14285] Traceback wrong on ImportError while executing a package

2015-12-10 Thread Nick Coghlan
Nick Coghlan added the comment: Leaving Python 2.7 alone makes sense to me - runpy is heavily dependent on the import system, so there are going to be limits to the improvements that can be made there. -- resolution: -> fixed stage: patch review -> resolved status: open -> closed

[issue14285] Traceback wrong on ImportError while executing a package

2015-12-10 Thread Martin Panter
Martin Panter added the comment: I committed a slightly modified version to 3.5+. I stopped wrapping the new ImportError, and let the existing find_spec() handler wrap it instead. That way the existing error messages stay the same. However I cannot figure out an easy way to do a similar fix

[issue25809] "Invalid" tests on locales

2015-12-10 Thread Martin Panter
Martin Panter added the comment: I meant revision b53aadd9cf85 in above message -- ___ Python tracker ___ ___

[issue25837] Errors when Installing Anaconda 3

2015-12-10 Thread Alexander Whatley
Alexander Whatley added the comment: I should probably add that this was after using conda update on a Python 3.5.0 installation. -- ___ Python tracker

[issue19771] runpy should check ImportError.name before wrapping it

2015-12-10 Thread Martin Panter
Martin Panter added the comment: BTW I already applied the type(ex).__name__ fix in revision 3202d143a194. New error message with this patch: $ ./python -bWall -m bad_pyc [. . .]/python: Error while finding spec for 'bad_pyc.__main__' (ImportError: bad magic number in 'bad_pyc': b'')

[issue22341] Python 3 crc32 documentation clarifications

2015-12-10 Thread Roundup Robot
Roundup Robot added the comment: New changeset 03c4ca1a34e2 by Martin Panter in branch '3.5': Issue #22341: Drop Python 2 workaround and document CRC initial value https://hg.python.org/cpython/rev/03c4ca1a34e2 New changeset 360c1326d8d1 by Martin Panter in branch 'default': Issue #22341: Merge

[issue25764] PyObject_Call() is called with an exception set in subprocess

2015-12-10 Thread Roundup Robot
Roundup Robot added the comment: New changeset fe844253cd44 by Martin Panter in branch '3.5': Issue #25764: Skip fork failure test when run as root https://hg.python.org/cpython/rev/fe844253cd44 New changeset 2f9541cab936 by Martin Panter in branch 'default': Issue #25764: Merge fix for root

[issue25809] "Invalid" tests on locales

2015-12-10 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: LGTM. -- stage: patch review -> commit review ___ Python tracker ___ ___

[issue25822] Add docstrings to fields of urllib.parse results

2015-12-10 Thread Serhiy Storchaka
Changes by Serhiy Storchaka : -- nosy: +martin.panter, orsenthil stage: needs patch -> patch review ___ Python tracker ___

[issue25837] Errors when Installing Anaconda 3

2015-12-10 Thread Alexander Whatley
New submission from Alexander Whatley: Got some error messages while installing Python 3.5.1 (Anaconda). Here is the traceback: Extracting packages ... [ COMPLETE ]|##| 100% Unlinking packages ... menuinst Exception:Traceback (most

[issue19771] runpy should check ImportError.name before wrapping it

2015-12-10 Thread Martin Panter
Martin Panter added the comment: I think I have fixed the original problem via Issue 14285 (fully in 3.5+, partly in 2.7). It involved a bit more than checking ImportError.name, because runpy catches other exceptions like AttributeError, which do not identify a module name. That leaves

[issue19771] runpy should check ImportError.name before wrapping it

2015-12-10 Thread Martin Panter
Martin Panter added the comment: Actually I forgot, this isn’t applicable to Python 2; see . -- versions: -Python 2.7 ___ Python tracker

[issue25822] Add docstrings to fields of urllib.parse results

2015-12-10 Thread Swati Jaiswal
Swati Jaiswal added the comment: Here is the patch, please review it. Do I need to write any test? -- keywords: +patch Added file: http://bugs.python.org/file41283/iss_25822.patch ___ Python tracker

[issue22341] Python 3 crc32 documentation clarifications

2015-12-10 Thread Martin Panter
Martin Panter added the comment: Thanks for the reviews -- resolution: -> fixed stage: commit review -> resolved status: open -> closed ___ Python tracker

[issue25666] Python unexpectedly ignores a signal after fork

2015-12-10 Thread Martin Panter
Martin Panter added the comment: I think I figured out the problem. The signal module has a “main_pid” variable which it checks inside the low-level handler: . It looks like main_pid gets updated inside PyOS_AfterFork(),

[issue25832] Document weird behavior of `finally` when it has `break` in it

2015-12-10 Thread Josh Rosenberg
Josh Rosenberg added the comment: You used explicit control flow keywords and you're surprised that it listened? Regardless, this is already documented https://docs.python.org/3/reference/compound_stmts.html#finally : "If the finally clause executes a return or break statement, the saved

[issue25829] Mixing multiprocessing pool and subprocess may create zombie process, and cause program to hang.

2015-12-10 Thread R. David Murray
R. David Murray added the comment: It probably has to do with the process management, but as I said I'm not that familiar with it, so we'll have to wait for the experts to chime in. -- ___ Python tracker

[issue25833] pyvenv: venvs cannot be moved because activate scripts hard-code paths

2015-12-10 Thread Barry A. Warsaw
Changes by Barry A. Warsaw : -- nosy: +barry ___ Python tracker ___ ___ Python-bugs-list

[issue25832] Document weird behavior of `finally` when it has `break` in it

2015-12-10 Thread R. David Murray
Changes by R. David Murray : -- resolution: -> not a bug stage: -> resolved status: open -> closed ___ Python tracker ___

[issue25833] pyvenv: venvs cannot be moved because activate scripts hard-code paths

2015-12-10 Thread Chad Moore
New submission from Chad Moore: venv/bin/activate contains an absolute path to the virtual environment. Is it possible to make that relative from activate itself so that the entire venv can be moved elsewhere and still work? I found this using Jenkins to get a Perforce workspace, then build

[issue25833] pyvenv: venvs cannot be moved because activate scripts hard-code paths

2015-12-10 Thread R. David Murray
R. David Murray added the comment: It's been that way since the virtualenv days, and I presume there's a reason for it. virtualenv does have a '--relocatable' option, but it is still marked as experimental. Finding out why that is and addressing the issues would be a prerequisite for adding

[issue25677] Syntax error caret confused by indentation

2015-12-10 Thread Berker Peksag
Berker Peksag added the comment: With the latest patch applied, the output is File "z.py", line 2 1 + 2 = 3 ^ SyntaxError: can't assign to operator I think the caret is still in wrong place. I would expect the following output: File "z.py", line 2 1 + 2 = 3 ^