[issue25300] Enable Intel MPX (Memory protection Extensions) feature

2015-10-03 Thread Stefan Krah
Stefan Krah added the comment: > Whether the hardware is MPX enabled is irrelevant for the build process. The build process is only one part of the equation. Compilers do have bugs (Python has been affected by gcc, Visual Studio and suncc bugs), and we should test the actual generated MPX

[issue25294] Absolute imports fail in some cases where relative imports would work

2015-10-03 Thread Nick Coghlan
Nick Coghlan added the comment: Issue 992389 is the previous incarnation of this bug report, while issue 17636 made the change so that from imports will resolve in some situations where this error will occur. That fact that "from x.y.b import foo" may now resolve in cases where "import

[issue25276] Intermittent segfaults on PPC64 AIX 3.x

2015-10-03 Thread Stefan Krah
Stefan Krah added the comment: > It's possible that Python needs to be built with special options to allow > additional malloc space (-bmaxdata:0xN000). It seems to be the case, see Misc/README.AIX. This could explain the MemoryErrors, but not the segfaults. Are computed-gotos stable on

[issue24177] Add https?_proxy support to http.client

2015-10-03 Thread R. David Murray
R. David Murray added the comment: And it should only be added if it actually makes *sense* in the architecture of http.client, which I haven't reviewed with this in mind. -- ___ Python tracker

[issue24177] Add https?_proxy support to http.client

2015-10-03 Thread R. David Murray
R. David Murray added the comment: I agree, I think that any proxy support in http.client would need to be opt-in and not on-by-default, exactly because it is a lower level library. -- ___ Python tracker

[issue25238] Version added of context parameter for xmlrpc.client.ServerProxy incorrect

2015-10-03 Thread desbma
desbma added the comment: Previous sentence is if we only mention 3.4.3 of course. -- ___ Python tracker ___

[issue25238] Version added of context parameter for xmlrpc.client.ServerProxy incorrect

2015-10-03 Thread desbma
desbma added the comment: In my mind 3.4.3 < 3.5, so unless mentioned otherwise it is implied that the change is in all versions of the 3.5 branch. -- ___ Python tracker

[issue25258] HtmlParser doesn't handle void element tags correctly

2015-10-03 Thread R. David Murray
R. David Murray added the comment: I suspect that calling startendtag is also backward incompatible, in that there may be parsers out there that are depending on starttag getting called for , and endtag not getting called (that is, endtag getting called for it will cause them to break). I

[issue25228] Regression in cookie parsing with brackets and quotes

2015-10-03 Thread Tim Graham
Tim Graham added the comment: It might be a case of issue22983. I'll try to look into the details and offer a patch next week. For what it's worth, there are other regressions in Python 3.2 cookie parsing that makes the latest patch release (3.2.6) unusable with Django (issue22758), so from

[issue25303] py_compile disregards PYTHONDONTWRITEBYTECODE and -B

2015-10-03 Thread R. David Murray
R. David Murray added the comment: The only reason to call py_compile is to get byte code. Honoring PYTHONDONTWRITEBYTECODE would, IMO, be a bug, at least according to its documentation (by implication, it isn't explicit about it, and perhaps it should be). Your use case could be added as a

[issue19500] Error when connecting to FTPS servers not supporting SSL session resuming

2015-10-03 Thread Alex Warhawk
Alex Warhawk added the comment: I encountered this problem recently and could not find a fix, so i tried fixing it myself. Note that the patch attached is my first contribution to cpython as well as the first time I used the C extension mechanism. Therefore I do not consider the patch

[issue25238] Version added of context parameter for xmlrpc.client.ServerProxy incorrect

2015-10-03 Thread R. David Murray
R. David Murray added the comment: I agree with desbma, but would not consider it unreasonable to mention both versions in the 3.5+ docs in order to avoid any ambiguity. -- nosy: +r.david.murray ___ Python tracker

[issue25276] Intermittent segfaults on PPC64 AIX 3.x

2015-10-03 Thread David Edelsohn
David Edelsohn added the comment: Misc/README.AIX comments about XLC do not apply to GCC. One can adjust the memory space at normal link time with -Wl,-bmaxdata:0xN000. This trades off heap for shared memory segments. One does not need the extra ldedit stop, which stuffs the same value

[issue25300] Enable Intel MPX (Memory protection Extensions) feature

2015-10-03 Thread R. David Murray
R. David Murray added the comment: No go on the ICC mac buildbot then, it's an i7-4578U, so not even gen 5. -- ___ Python tracker ___

[issue25304] Add run_coroutine_threadsafe() to asyncio

2015-10-03 Thread Guido van Rossum
Changes by Guido van Rossum : -- nosy: +vxgmichel ___ Python tracker ___ ___

[issue25304] Add run_coroutine_threadsafe() to asyncio

2015-10-03 Thread Guido van Rossum
Changes by Guido van Rossum : -- stage: -> commit review type: -> behavior ___ Python tracker ___

[issue25304] Add run_coroutine_threadsafe() to asyncio

2015-10-03 Thread Guido van Rossum
Guido van Rossum added the comment: It's done. But I am hoping you (or someone) will add docs. -- ___ Python tracker ___

[issue25304] Add run_coroutine_threadsafe() to asyncio

2015-10-03 Thread Roundup Robot
Roundup Robot added the comment: New changeset 25e05b3e1869 by Guido van Rossum in branch '3.4': Issue #25304: Add asyncio.run_coroutine_threadsafe(). By Vincent Michel. https://hg.python.org/cpython/rev/25e05b3e1869 New changeset e0db10d8c95e by Guido van Rossum in branch '3.5': Issue #25304:

[issue14565] Allow multilevel subdirectories in cgi_directories

2015-10-03 Thread Martin Panter
Martin Panter added the comment: The patch looks like it also adds support for individual script file names in cgi_directories. If that is the case, I suspect it would be tricked by a query string (e.g. /some.cgi?query). I object to removing the final “return False”. The return value of

[issue25302] Memory Leaks with Address Sanitizer

2015-10-03 Thread Stefan Krah
Stefan Krah added the comment: Static types leak memory on finalization, see PEP 3121. Normally it does not matter, but you see it when embedding Python. PEP 3121 isn't widely implemented because a) it complicates the code for large modules and b) there are some performance issues. There are

[issue25278] Unexpected socket exception on SFTP 'STOR' command

2015-10-03 Thread R. David Murray
R. David Murray added the comment: I wonder if this has any relationship to issue 19500. -- ___ Python tracker ___

[issue22413] Bizarre StringIO(newline="\r\n") translation

2015-10-03 Thread Martin Panter
Martin Panter added the comment: Here is a suggested patch. I did include details of the initializer and getvalue(); this is the heart of the problem IMO. In a limited sense the newline flag _is_ similar to TextIOWrapper, but more broadly this implied to me that newlines should be encoded in

[issue25304] Add run_coroutine_threadsafe() to asyncio

2015-10-03 Thread Guido van Rossum
New submission from Guido van Rossum: This is a placeholder bug to reference the PR: https://github.com/python/asyncio/pull/273 by Vincent Michel. -- assignee: gvanrossum components: asyncio messages: 252215 nosy: gvanrossum, haypo, yselivanov priority: normal severity: normal status:

[issue23919] [Windows] test_os fails several C-level assertions

2015-10-03 Thread Steve Dower
Steve Dower added the comment: This patch: * defaults to no assert dialogs and no stderr output * enables stderr output for assertions on "-vv" (or more) * displays a deprecation message on "-n" -- assignee: -> steve.dower keywords: +patch versions: +Python 3.6 Added file:

[issue25307] Enhancing the argparse help output

2015-10-03 Thread Sworddragon
New submission from Sworddragon: I'm noticing some things on the argparse help output that can maybe enhanced. Here is a testcase that produces an example output: #!/usr/bin/python3 -BEOObbs # coding=utf-8 import argparse arguments = argparse.ArgumentParser() arguments.add_argument('-t',

[issue25299] TypeError: __init__() takes at least 4 arguments (4 given)

2015-10-03 Thread paul j3
paul j3 added the comment: The unittest file test_argparse.py tests add_argument parameters in class TestInvalidArgumentConstructors(TestCase) It looks at a dozen different categories of errors, mostly checking that they return the correct TypeError or ValueError. It does not check the

[issue25300] Enable Intel MPX (Memory protection Extensions) feature

2015-10-03 Thread Antoine Pitrou
Antoine Pitrou added the comment: This presents the risk of breaking third-party extensions, right? -- nosy: +pitrou ___ Python tracker ___

[issue25305] Windows: python opens a popup and flood stderr with assertion error on FD error

2015-10-03 Thread STINNER Victor
New submission from STINNER Victor: I compiled Python 3.6 in debug mode on Windows, and I'm trying to run test_regrtest to try to reproduce a bug. The problem is that the test opens a million of popup. Clicking on Ignore is useless, the popup continues to reappear again and again. The stderr

[issue25306] test_huntrleaks_fd_leak() of test_regrtest hangs on Windows

2015-10-03 Thread Roundup Robot
Roundup Robot added the comment: New changeset 850efcc9155c by Victor Stinner in branch 'default': Issue #25306: Try to fix test_huntrleaks_fd_leak() on Windows https://hg.python.org/cpython/rev/850efcc9155c -- ___ Python tracker

[issue23972] Asyncio reuseport

2015-10-03 Thread Guido van Rossum
Guido van Rossum added the comment: I'm adding a rebased version of Chris's v4 patch to see if I can get the code review to trigger. -- Added file: http://bugs.python.org/file40667/23972_cjl_v005.patch ___ Python tracker

[issue14916] PyRun_InteractiveLoop fails to run interactively when using a Linux pty that's not tied to stdin/stdout

2015-10-03 Thread Yauheni Kaliuta
Yauheni Kaliuta added the comment: Any progress with the problem? I just wanted to use the feature, but it looks like the bug.sh is still reproduces the bug. -- nosy: +Yauheni Kaliuta ___ Python tracker

[issue12939] Add new io.FileIO using the native Windows API

2015-10-03 Thread Марк Коренберг
Марк Коренберг added the comment: Please reopen. I still have interest for that. Fact that we survive 8 years is not enough for closing bugs as "Won't fix". This fact point only on that ther are no good specialists that can fix that bug, since it is Windows-only, actually. --

[issue25297] max_help_position is not works in argparse library

2015-10-03 Thread paul j3
paul j3 added the comment: The unittest test_argparse.py has one related test class TestAddSubparsers def test_alias_help has a long enough subparser invocation (with aliases) to produce wrapping with the default 24 max position: commands: COMMAND

[issue12939] Add new io.FileIO using the native Windows API

2015-10-03 Thread Марк Коренберг
Марк Коренберг added the comment: Sorry, for the "there are no good specialist". I mean "There are no well motivated good specialist" :) -- ___ Python tracker

[issue25305] Windows: python opens a popup and flood stderr with assertion error on FD error

2015-10-03 Thread Steve Dower
Steve Dower added the comment: It is a direct duplicate of multiple issues. The assertion is coming from the CRT, because their definition of "undefined behaviour" includes displaying an assert dialog in debug mode, and last time we tried disabling them completely we upset people. (I'm not

[issue25258] HtmlParser doesn't handle void element tags correctly

2015-10-03 Thread Chenyun Yang
Chenyun Yang added the comment: handle_startendtag is also called for non-void elements, such as , so the override example will break in those situation. The compatible patch I proposed right now is just one liner checker: # http://www.w3.org/TR/html5/syntax.html#void-elements

[issue25306] test_huntrleaks_fd_leak() of test_regrtest hangs on Windows

2015-10-03 Thread Roundup Robot
Roundup Robot added the comment: New changeset fd915645627a by Victor Stinner in branch 'default': Issue #25306: Skip test_huntrleaks_fd_leak() of test_regrtest until the bug is https://hg.python.org/cpython/rev/fd915645627a -- nosy: +python-dev ___

[issue25294] Absolute imports fail in some cases where relative imports would work

2015-10-03 Thread Patrick Maupin
Patrick Maupin added the comment: The PEP 8 recommendation to "use absolute imports" is completely, totally, unambiguously meaningless absent the expectation that packages refer to parts of themselves. And it works, too! (For a single level of package.) As soon as packages are nested, this

[issue25305] Windows: python opens a popup and flood stderr with assertion error on FD error

2015-10-03 Thread STINNER Victor
STINNER Victor added the comment: See also the issue #25306 "test_huntrleaks_fd_leak() of test_regrtest hangs on Windows". It may be caused by this issue. -- ___ Python tracker

[issue25305] Windows: python opens a popup and flood stderr with assertion error on FD error

2015-10-03 Thread STINNER Victor
STINNER Victor added the comment: See also issue #23919, this issue may be a duplicate of this one. -- ___ Python tracker ___

[issue25306] test_huntrleaks_fd_leak() of test_regrtest hangs on Windows

2015-10-03 Thread STINNER Victor
New submission from STINNER Victor: I suspect that the test hangs because of the MSCRT assertion error popup: see issue #25305. http://buildbot.python.org/all/builders/x86%20Windows7%203.x/builds/10279/steps/test/logs/stdio [287/400/1] test_regrtest Timeout (1:00:00)! Thread 0x0d48 (most

[issue25305] Windows: python opens a popup and flood stderr with assertion error on FD error

2015-10-03 Thread STINNER Victor
STINNER Victor added the comment: By the way, these warnings are flooding buildbot output, it became really hard to read these logs :-( Extract: minkernel\crts\ucrt\src\appcrt\time\wcsftime.cpp(1182) : Assertion failed: false minkernel\crts\ucrt\src\appcrt\time\wcsftime.cpp(1182) : Assertion

[issue12939] Add new io.FileIO using the native Windows API

2015-10-03 Thread R. David Murray
R. David Murray added the comment: Since Guido voted in favor and there's a patch proposal, I think we should keep this open in the hopes that someone will come along who can move it forward. I don't know enough to know what moving it forward would look like, though. (I know you opened the

[issue20021] "modernize" makeopcodetargets.py

2015-10-03 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Some of the buildbots have Python 2.5 as their system Python. Here is a patch that is compatible with older Python versions. -- nosy: +serhiy.storchaka versions: +Python 3.6 -Python 3.5 Added file: http://bugs.python.org/file40670/issue20021_2.diff

[issue25309] askopenfilename crashes on XP with "Show pop-up description for folder and desktop items" on

2015-10-03 Thread alex wieder
New submission from alex wieder: Hi, This is my first bug report, so please be gentle if I don't stick to protocol correctly. I'm also tired from spending about 8 hours tracking down this problem. OS Affected: XP SP3 (maybe others as well, and I'm aware that python doesn't support xp

[issue25307] Enhancing the argparse help output

2015-10-03 Thread paul j3
paul j3 added the comment: Formatter _format_action_invocation(self, action) is the key function. Notice how it treats positionals and optionals separately. Also it calls default = self._get_default_metavar_for_optional(action) args_string = self._format_args(action, default) to get

[issue24820] IDLE themes for light on dark

2015-10-03 Thread Roundup Robot
Roundup Robot added the comment: New changeset afa95f032de1 by Terry Jan Reedy in branch '2.7': Issue #24820: Add 'IDLE Dark' text color theme, warning, and solution. https://hg.python.org/cpython/rev/afa95f032de1 New changeset 1de01a63f360 by Terry Jan Reedy in branch '3.4': Issue #24820: Add

[issue24820] IDLE themes for light on dark

2015-10-03 Thread Roundup Robot
Roundup Robot added the comment: New changeset 739cc9ca55cd by Terry Jan Reedy in branch '2.7': Issue #24820: Update IDLE NEWS items. https://hg.python.org/cpython/rev/739cc9ca55cd New changeset 233974dfda03 by Terry Jan Reedy in branch '3.4': Issue #24820: Update IDLE NEWS items.

[issue25307] Enhancing the argparse help output

2015-10-03 Thread Sworddragon
Sworddragon added the comment: > The formatting of choices has been discussed in other bug/issues. What was the reason showing the choices only once at default was not chosen? -- ___ Python tracker

[issue25294] Absolute imports fail in some cases where relative imports would work

2015-10-03 Thread Nick Coghlan
Nick Coghlan added the comment: If that's the concern, then the relevant guidance is to avoid running code at package import time (which many new developers will now do by default with __init__.py becoming optional). -- ___ Python tracker

[issue25294] Absolute imports fail in some cases where relative imports would work

2015-10-03 Thread Patrick Maupin
Patrick Maupin added the comment: I'm a big fan of stitching things together at the top myself -- maybe that's partly an unconscious reaction to this very issue. But I'm not sanguine about how easy it is to express this practice in the docs. This issue arose in the context of me answering a

[issue9232] Allow trailing comma in any function argument list.

2015-10-03 Thread Roundup Robot
Roundup Robot added the comment: New changeset 6db349fac3ec by Terry Jan Reedy in branch 'default': Issue #9232: Escape rst markup char in NEWS entry to avoid Sphinx warning. https://hg.python.org/cpython/rev/6db349fac3ec -- ___ Python tracker

[issue24791] *args regression

2015-10-03 Thread Roundup Robot
Roundup Robot added the comment: New changeset 20e0906a808e by Terry Jan Reedy in branch '3.5': Issue #24791: Escape rst markup char in NEWS entry to avoid Sphinx warning. https://hg.python.org/cpython/rev/20e0906a808e -- ___ Python tracker

[issue25309] askopenfilename crashes on XP with "Show pop-up description for folder and desktop items" on

2015-10-03 Thread Serhiy Storchaka
Changes by Serhiy Storchaka : -- nosy: +terry.reedy ___ Python tracker ___ ___

[issue25308] Multiple names can target the same namespace

2015-10-03 Thread Sworddragon
New submission from Sworddragon: In the argparse module I'm noticing that for example an optional argument and a positional argument can target the same namespace. Here is a testcase: #!/usr/bin/python3 -BEOObbs # coding=utf-8 import argparse arguments = argparse.ArgumentParser()

[issue12939] Add new io.FileIO using the native Windows API

2015-10-03 Thread Mark Lawrence
Mark Lawrence added the comment: If Марк Коренберг (mmarkk) is interested, they should move it forward. If they're not interested, move it too "languishing", where it can sit happily for ever and a day. Pay your money, take your choice? -- ___

[issue24820] IDLE themes for light on dark

2015-10-03 Thread Terry J. Reedy
Terry J. Reedy added the comment: See patch for message. Merely displaying a message, and not trying to do anything fancy, like cancelling the selection, avoids any possible problem in interaction with other methods. I leave it to users to decide if action is needed, and if so, whether to

[issue25307] Enhancing the argparse help output

2015-10-03 Thread paul j3
paul j3 added the comment: I don't recall other issues or discussions about lining up short and long option strings. Producing a more compact invocation has raised in StackOverflow questions. I don't recall if there has been bug/issue on the same. If I recall correctly it isn't hard to

[issue25307] Enhancing the argparse help output

2015-10-03 Thread paul j3
paul j3 added the comment: http://stackoverflow.com/questions/18275023/dont-show-long-options-twice-in-print-help-from-argparse http://stackoverflow.com/questions/9366369/python-argparse-lots-of-choices-results-in-ugly-help-output

[issue25309] askopenfilename crashes on XP with "Show pop-up description for folder and desktop items" on

2015-10-03 Thread Martin Panter
Changes by Martin Panter : -- nosy: +martin.panter ___ Python tracker ___ ___

[issue25310] End mark argument for StreamReader.readline() method

2015-10-03 Thread Alan Cristhian
New submission from Alan Cristhian: I use pickle to serialize data. The pickle.dumps() methods sometimes introduce the b"\n" character: >>> import pickle >>> tuple_with_10 = (10,) >>> result = pickle.dumps(tuple_with_10, protocol=4) >>> result

[issue25160] Stop using deprecated imp module; imp should now emit a real DeprecationWarning

2015-10-03 Thread Arfrever Frehtes Taifersar Arahesis
Changes by Arfrever Frehtes Taifersar Arahesis : -- nosy: +Arfrever ___ Python tracker ___

[issue20021] "modernize" makeopcodetargets.py

2015-10-03 Thread Arfrever Frehtes Taifersar Arahesis
Changes by Arfrever Frehtes Taifersar Arahesis : -- nosy: +Arfrever ___ Python tracker ___

[issue20020] "modernize" the modulefinder module

2015-10-03 Thread Arfrever Frehtes Taifersar Arahesis
Changes by Arfrever Frehtes Taifersar Arahesis : -- nosy: +Arfrever ___ Python tracker ___

[issue25310] End mark argument for StreamReader.readline() method

2015-10-03 Thread Guido van Rossum
Guido van Rossum added the comment: You should not be using readline() for that use case. (Note that *no* sequence of characters can be guaranteed not to occur in a binary protocol like pickle.) -- resolution: -> not a bug status: open -> closed

[issue24177] Add https?_proxy support to http.client

2015-10-03 Thread Martin Panter
Martin Panter added the comment: I think this would have a serious chance of breaking stuff unless it was only enabled with a new flag or similar. Also, I guess it would probably be limited to Basic authentication. The wget and curl programs both support different URL protocols, HTTP

[issue25232] CGIRequestHandler behave incorrectly with query component consisting mutliple ?

2015-10-03 Thread Roundup Robot
Roundup Robot added the comment: New changeset 969afbf501af by Martin Panter in branch '3.4': Issue #25232: Fix CGIRequestHandler's splitting of URL query https://hg.python.org/cpython/rev/969afbf501af New changeset ba1e3c112e42 by Martin Panter in branch '3.5': Issues #25232, #24657: Merge two

[issue24657] CGIHTTPServer module discard continuous '/' letters from params given by GET method.

2015-10-03 Thread Roundup Robot
Roundup Robot added the comment: New changeset 634fe6a90e0c by Martin Panter in branch '3.4': Issue #24657: Prevent CGIRequestHandler from collapsing the URL query https://hg.python.org/cpython/rev/634fe6a90e0c New changeset ba1e3c112e42 by Martin Panter in branch '3.5': Issues #25232, #24657:

[issue24657] CGIHTTPServer module discard continuous '/' letters from params given by GET method.

2015-10-03 Thread Roundup Robot
Roundup Robot added the comment: New changeset a4302005f9a2 by Martin Panter in branch '2.7': Issue #24657: Prevent CGIRequestHandler from collapsing the URL query https://hg.python.org/cpython/rev/a4302005f9a2 -- ___ Python tracker

[issue25232] CGIRequestHandler behave incorrectly with query component consisting mutliple ?

2015-10-03 Thread Roundup Robot
Roundup Robot added the comment: New changeset b12b30dc8617 by Martin Panter in branch '2.7': Issue #25232: Fix CGIRequestHandler's splitting of URL query https://hg.python.org/cpython/rev/b12b30dc8617 -- ___ Python tracker

[issue24657] CGIHTTPServer module discard continuous '/' letters from params given by GET method.

2015-10-03 Thread Martin Panter
Martin Panter added the comment: Thanks everyone for the reports and patches. There were a couple of subtle compatibility tweaks needed for the 3.4 and 2.7 branches, but I think I got them all. -- resolution: -> fixed status: open -> closed ___

[issue25232] CGIRequestHandler behave incorrectly with query component consisting mutliple ?

2015-10-03 Thread Martin Panter
Changes by Martin Panter : -- resolution: -> fixed stage: commit review -> resolved status: open -> closed ___ Python tracker ___

[issue24657] CGIHTTPServer module discard continuous '/' letters from params given by GET method.

2015-10-03 Thread Martin Panter
Changes by Martin Panter : -- stage: commit review -> resolved ___ Python tracker ___

[issue16701] Docs missing the behavior of += (in-place add) for lists.

2015-10-03 Thread Martin Panter
Changes by Martin Panter : -- assignee: docs@python -> martin.panter nosy: +berker.peksag stage: patch review -> commit review ___ Python tracker

[issue16701] Docs missing the behavior of += (in-place add) for lists.

2015-10-03 Thread Roundup Robot
Roundup Robot added the comment: New changeset ec373d762213 by Martin Panter in branch '2.7': Issue #16701: Document += and *= for mutable sequences https://hg.python.org/cpython/rev/ec373d762213 New changeset f83db23bec7f by Martin Panter in branch '3.4': Issue #16701: Document += and *= for

[issue16701] Docs missing the behavior of += (in-place add) for lists.

2015-10-03 Thread Martin Panter
Changes by Martin Panter : -- resolution: -> fixed stage: commit review -> resolved status: open -> closed ___ Python tracker ___

[issue25188] regrtest.py improvement for Profile Guided Optimization builds

2015-10-03 Thread Alecsandru Patrascu
Alecsandru Patrascu added the comment: Thank you Brett for your effort to merge all the changes made to regrtest despite the changes appeared on the way! -- ___ Python tracker