[issue23634] os.fdopen reopening a read-only fd on windows

2015-03-10 Thread Martin Panter
Martin Panter added the comment: I guess you were mainly testing with Python 2. Python 3 on Linux does not raise any error either: wrote 3 to a read-only file should raise, opening a ro descriptor for writing aa

[issue21610] load_module not closing opened files

2015-03-10 Thread Roundup Robot
Roundup Robot added the comment: New changeset 5a5d4073d46a by Benjamin Peterson in branch '2.7': close files explicit (closes #21610) https://hg.python.org/cpython/rev/5a5d4073d46a -- nosy: +python-dev resolution: -> fixed stage: patch review -> resolved status: open -> closed ___

[issue23635] Python won't install correctly.

2015-03-10 Thread Alex Zhang
New submission from Alex Zhang: Currently can't install 343 on my computer. I had 342 installed, and wanted to uninstall that for 343. Afterwards, being the idiot that I was, I deleted the files in the Python34 folder. Uninstalling gives me an error. There is a problem with this Windows Inst

[issue22928] HTTP header injection in urrlib2/urllib/httplib/http.client

2015-03-10 Thread Demian Brecht
Demian Brecht added the comment: Latest patch should now address all comments. -- Added file: http://bugs.python.org/file38433/issue22928_5.patch ___ Python tracker ___ _

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

2015-03-10 Thread Martin Panter
Martin Panter added the comment: Closely related: Issue 14285, where an ImportError and various other exceptions caused by code in __init__.py are also incorrectly caught, trigger unexpected error messages, with no traceback being reported. Not sure if checking the “name” attribute will help i

[issue14285] Traceback wrong on ImportError while executing a package

2015-03-10 Thread Martin Panter
Martin Panter added the comment: Closely related: Issue 19771, which seems to be complaining about a the error message when __main__.py generates an ImportError. -- ___ Python tracker _

[issue23636] Add scgi to urllib.parse.uses_netloc

2015-03-10 Thread Anthony Ryan
New submission from Anthony Ryan: The scgi protocol is not included in urllib.parse.uses_netloc list, while other less common protocols are (such as gopher). I would like to see scgi get added to this list. -- components: Library (Lib) files: py3bug messages: 237831 nosy: Anthony Ryan

[issue23636] Add scgi to urllib.parse.uses_netloc

2015-03-10 Thread Anthony Ryan
Changes by Anthony Ryan : Added file: http://bugs.python.org/file38435/py2bug ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubsc

[issue22928] HTTP header injection in urrlib2/urllib/httplib/http.client

2015-03-10 Thread Martin Panter
Martin Panter added the comment: I much prefer the new patch with better compatibility and flexibility :) If you want to strengthen the tests to reflect some of the decisions made here you could add the following tests: Positive tests: * putheader('C1-Control', b'next\x85line') * putheader('Em

[issue1722348] urlparse.urlunparse forms file urls incorrectly

2015-03-10 Thread Martin Panter
Martin Panter added the comment: I believe this was closed incorrectly. The original test case includes four slashes, not three, and still fails in 3.5. However Issue 23505 has been opened in the mean time which should cover this. -- nosy: +vadmium resolution: works for me -> duplicate

[issue23635] Python won't install correctly.

2015-03-10 Thread Steve Dower
Steve Dower added the comment: (This doesn't affect 3.5) My guess is the missing ensurepip module is the problem. See if you can Repair the original install and then remove it. -- versions: -Python 3.5 ___ Python tracker

[issue23623] Python 3.5 docs need to clarify how to set PATH, etc

2015-03-10 Thread Steve Dower
Steve Dower added the comment: "Planned" is a bit strong - in need of some simultaneous time and motivation :) Thanks for the upvote. -- ___ Python tracker ___ _

[issue23631] 3.5 (a2) traceback regression snarls Idle

2015-03-10 Thread Guido van Rossum
Guido van Rossum added the comment: Yeah, the stack track makes me suspect http://bugs.python.org/issue17911 -- nosy: +gvanrossum ___ Python tracker ___ _

[issue23636] Add scgi to urllib.parse.uses_netloc

2015-03-10 Thread Martin Panter
Martin Panter added the comment: See also Issue 16134 for adding RTMP schemes to the registry. However, I wonder if it is time for a more general fix, rather than having an arms race with whatever URL scheme someone dreams up next. According to Issue 7904, urlsplit() etc intentially support pa

[issue23633] Improve py launcher help, index, and doc

2015-03-10 Thread Steve Dower
Steve Dower added the comment: For point 4, there's no code in either the 3.5 or the 3.4 (AFAIK) installer that would remove a py.ini file. From 3.5 onwards the py(w).exe files will be properly refcounted so the latest version is always installed regardless of order (i.e. 3.6 will update 3.5's

[issue23633] Improve py launcher help, index, and doc

2015-03-10 Thread Terry J. Reedy
Terry J. Reedy added the comment: The faulty patch for #17911 is a possible, perhaps probably cause (Guido, email). -- ___ Python tracker ___ ___

[issue17911] traceback: add a new thin class storing a traceback without storing local variables

2015-03-10 Thread Terry J. Reedy
Terry J. Reedy added the comment: Idle is partially disabled in a2 (#23633), with symptoms similar to that of the first example in msg237230. Trivial test: open Idle Shell, enter '1/0'. If this is not fixed before .a3, I think it should be reverted until it is. -- nosy: +terry.reedy

[issue23633] Improve py launcher help, index, and doc

2015-03-10 Thread Terry J. Reedy
Changes by Terry J. Reedy : -- Removed message: http://bugs.python.org/msg237839 ___ Python tracker ___ ___ Python-bugs-list mailing l

[issue23633] Improve py launcher help, index, and doc

2015-03-10 Thread Terry J. Reedy
Terry J. Reedy added the comment: (Whoops, unlinked misplaced message.) I will add py.ini *again* and watch more carefully before and after further installs. The problem with the doc is that it does not say where the py.ini file should go, and it inherently cannot because the locations are no

[issue17911] traceback: add a new thin class storing a traceback without storing local variables

2015-03-10 Thread Terry J. Reedy
Changes by Terry J. Reedy : -- Removed message: http://bugs.python.org/msg237840 ___ Python tracker ___ ___ Python-bugs-list mailing l

[issue17911] traceback: add a new thin class storing a traceback without storing local variables

2015-03-10 Thread Terry J. Reedy
Terry J. Reedy added the comment: (correct new issue #) Idle is partially disabled in a2 (#23631), with symptoms similar to that of the first example in msg237230. Trivial test: open Idle Shell, enter '1/0'. If this is not fixed before .a3, I think it should be reverted until it is. ---

[issue23636] Add scgi to urllib.parse.uses_netloc

2015-03-10 Thread Ned Deily
Changes by Ned Deily : -- nosy: +orsenthil ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.

[issue23566] RFE: faulthandler.register() should support file descriptors

2015-03-10 Thread Wei Wu
Wei Wu added the comment: @haypo: Thank you for your review. I attached an updated patch addressing the review comments. In addition, I also added a change note in Misc/NEWS. -- Added file: http://bugs.python.org/file38436/issue23566_update.patch ___

[issue23486] Enum member lookup is 20x slower than normal class attribute lookup

2015-03-10 Thread Larry Hastings
Larry Hastings added the comment: My inclination is 3.5 only. Barry, do you want to argue for this going into 3.4? -- ___ Python tracker ___ ___

[issue23634] os.fdopen reopening a read-only fd on windows

2015-03-10 Thread eryksun
eryksun added the comment: > I guess you were mainly testing with Python 2. Python 3 on Linux > does not raise any error either In Python 3 os.fdopen delegates to io.open, which calls io.FileIO to create the raw file object. This doesn't verify a compatible mode on the file descriptor. Simila

[issue23486] Enum member lookup is 20x slower than normal class attribute lookup

2015-03-10 Thread Ethan Furman
Ethan Furman added the comment: Argh, sorry -- that was supposed to be *does not* change user behavior nor the API, it's *just* a performance increase. Does that change your inclination? -- ___ Python tracker ___

<    1   2