[issue23255] SimpleHTTPRequestHandler refactor for more extensible usage.

2015-02-10 Thread Martin Panter
Martin Panter added the comment: Opened Issue 23440 for my test changes -- ___ Python tracker ___ ___ Python-bugs-list mailing list Un

[issue23440] Extend http.server.SimpleHTTPRequestHandler testing

2015-02-10 Thread Martin Panter
New submission from Martin Panter: These are some additions to the “http.server” module tests. It is an updated version of index-test.2.patch that I posted at Issue 23255. * Tests that index.html is served, rather than an automatic directory listing * Tests that there is no extra data sent afte

[issue3566] httplib persistent connections violate MUST in RFC2616 sec 8.1.4.

2015-02-10 Thread Martin Panter
Martin Panter added the comment: Thanks for helping with this Demian. The idea of raising the same exception in all cases is new to me. Initially I was opposed, but it is starting to make sense. Let me consider it some more. Here are some cases that could trigger this exception: 1. EOF before

[issue23437] Make user scripts directory versioned on Windows

2015-02-10 Thread Jeremy Kloth
Changes by Jeremy Kloth : -- nosy: +jkloth ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.

[issue23435] installation with full path as prefix incomplete

2015-02-10 Thread Ned Deily
Ned Deily added the comment: Without more information it is hard to provide a meaningful response. You don't say which version of Python nor which platform you are trying to install on. Be aware that the default for --prefix is '/usr/local'. On most POSIX platforms, you should not be trying

[issue23435] installation with full path as prefix incomplete

2015-02-10 Thread Ned Deily
Changes by Ned Deily : -- Removed message: http://bugs.python.org/msg235727 ___ Python tracker ___ ___ Python-bugs-list mailing list U

[issue23435] installation with full path as prefix incomplete

2015-02-10 Thread Ned Deily
Ned Deily added the comment: Without more information it is hard to provide a meaningful response. You don't say which version of Python nor which platform you are trying to install on. Be aware that the default for --prefix is '/usr/local'. On most POSIX platforms, you should not be trying

[issue23342] run() - unified high-level interface for subprocess

2015-02-10 Thread Thomas Kluyver
Thomas Kluyver added the comment: Jeff: This makes it somewhat easier to handle input and output as strings instead of streams. Most of the functionality was already there, but this makes it more broadly useful. It doesn't especially address your other points, but I'm not aiming to completely

[issue8583] Hardcoded namespace_separator in the cElementTree.XMLParser

2015-02-10 Thread Martin Panter
Martin Panter added the comment: Also Issue 18304 for more discussion on simplifying namespaces -- nosy: +vadmium ___ Python tracker ___ __

[issue18304] ElementTree -- provide a way to ignore namespace in tags and seaches

2015-02-10 Thread Martin Panter
Martin Panter added the comment: See Issue 8583 for a proposal that would apparently allow all namespaces to be ignored -- ___ Python tracker ___ ___

[issue23431] Idle Application Not Responding

2015-02-10 Thread Ned Deily
Ned Deily added the comment: Try launching IDLE from a Terminal window command line shell with: /usr/local/bin/python3.4 -m idlelib and see if any error messages are reported. Also please report what is printed when this is run in a command shell: /usr/local/bin/python3.4 -c 'import sys;prin

[issue20416] Marshal: performance regression with versions 3 and 4

2015-02-10 Thread STINNER Victor
STINNER Victor added the comment: (I didn't reproduce the benchmark, I just used Serhy numbers. I guess that using memcpy() doesn't make the code slower.) -- ___ Python tracker

[issue20416] Marshal: performance regression with versions 3 and 4

2015-02-10 Thread STINNER Victor
STINNER Victor added the comment: Except of the minor suggestion that I added on the review, the patch looks good the me. It's quite simple and makes dumps() 34% faster (for protocol 4). -- ___ Python tracker

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

2015-02-10 Thread Mahmoud Hashemi
Mahmoud Hashemi added the comment: Hey all, great to see this being worked on so diligently for so long. Having worked in this area for a while (at home and at PayPal), we've got a few learnings to share: 1) linecache is textbook not-threadsafe. For example, https://hg.python.org/cpython/file

[issue23439] Fixed http.client.__all__ and added a test

2015-02-10 Thread Martin Panter
Changes by Martin Panter : -- keywords: +patch Added file: http://bugs.python.org/file38090/http.client-all.patch ___ Python tracker ___ _

[issue23439] Fixed http.client.__all__ and added a test

2015-02-10 Thread Martin Panter
New submission from Martin Panter: This patch was split off my patch for Issue 3566, since it should be less controversial. It adds the HTTPMessage class and the parse_headers() function to __all__. I’m not too sure on the status of the parse_headers() function. It is not mentioned in the “ht

[issue23437] Make user scripts directory versioned on Windows

2015-02-10 Thread Paul Moore
Paul Moore added the comment: Sorry, yes pip just installs into %APPDATA%\Python\Python35\Scripts with no issues. -- ___ Python tracker ___ _

[issue23437] Make user scripts directory versioned on Windows

2015-02-10 Thread Steve Dower
Steve Dower added the comment: How do pip & co. handle the change? I assume they just look in sysconfig and don't think too much about the path... -- ___ Python tracker ___

[issue23437] Make user scripts directory versioned on Windows

2015-02-10 Thread Paul Moore
Paul Moore added the comment: Cool, I've just run the tests by manually patching a 3.5a0 install. No extra failures, so things look fine. (Interestingly, before patching, test_site "altered the execution environment" but afterwards it didn't - it just succeeded. I don't know if that means anyt

[issue23438] HTMLParser doesn't know how to deal with 'ampersand'

2015-02-10 Thread Amaury Forgeot d'Arc
Amaury Forgeot d'Arc added the comment: & is an entity reference. Either pass "convert_charrefs=True" to the constructor, or implement a method "def handle_entityref(self, data)" to receive them as events. https://docs.python.org/3.4/library/html.parser.html -- nosy: +amaury.forgeotdar

[issue23438] HTMLParser doesn't know how to deal with 'ampersand'

2015-02-10 Thread pyed
Changes by pyed : -- title: HTMLParser don't know how to deal with 'ampersand' -> HTMLParser doesn't know how to deal with 'ampersand' ___ Python tracker ___ ___

[issue23438] HTMLParser don't know how to deal with 'ampersand'

2015-02-10 Thread pyed
New submission from pyed: the attached file use example from : https://docs.python.org/3/library/html.parser.html and it will show different cases where HTMLParser fail to parse '&' and '&' -- components: Library (Lib) files: htmlparser_bugs.py messages: 235714 nosy: pyed priority: nor

[issue20416] Marshal: performance regression with versions 3 and 4

2015-02-10 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Update patch addresses Victor's comments. -- Added file: http://bugs.python.org/file38088/marshal_hashtable_2.patch ___ Python tracker ___ ___

[issue21793] httplib client/server status refactor

2015-02-10 Thread Martin Panter
Martin Panter added the comment: New logfix patch looks good. I would have written format(self) or format(self, 'd') instead of '{:d}'.format(self), but that’s no big deal. -- ___ Python tracker __

[issue23432] Duplicate content in SystemExit documentation

2015-02-10 Thread Martin Panter
Martin Panter added the comment: The new text changes “the associated value” to “the value passed to [the] :func:`sys.exit` call”. There seems to be a trend in removing documentation of exception constructor arguments; is this intentional? In my code I tend to raise SystemExit() directly rathe

[issue1818] Add named tuple reader to CSV module

2015-02-10 Thread Daniel Lenski
Daniel Lenski added the comment: Here's the class I have been using for reading namedtuples from CSV files: from collections import namedtuple from itertools import imap import csv class CsvNamedTupleReader(object): __slots__ = ('_r', 'row', 'fieldnames') def __i

[issue23383] Clean up bytes formatting

2015-02-10 Thread Roundup Robot
Roundup Robot added the comment: New changeset 4883f9046b10 by Serhiy Storchaka in branch 'default': Issue #23383: Cleaned up bytes formatting. https://hg.python.org/cpython/rev/4883f9046b10 -- ___ Python tracker _

[issue23383] Clean up bytes formatting

2015-02-10 Thread Ethan Furman
Ethan Furman added the comment: As long as it works I have no objections. :) -- ___ Python tracker ___ ___ Python-bugs-list mailing l

[issue23383] Clean up bytes formatting

2015-02-10 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Thank you for your reviews and suggestions Martin and Victor. If Ethan has no objections I'll commit the patch soon. -- assignee: -> serhiy.storchaka ___ Python tracker ___

[issue23434] RFC6266 support (Content-Disposition for HTTP)

2015-02-10 Thread Martin Panter
Changes by Martin Panter : -- nosy: +vadmium title: RFC6266 support -> RFC6266 support (Content-Disposition for HTTP) ___ Python tracker ___ _

[issue23383] Clean up bytes formatting

2015-02-10 Thread Serhiy Storchaka
Changes by Serhiy Storchaka : Removed file: http://bugs.python.org/file38086/bytes_format_3.patch ___ Python tracker ___ ___ Python-bugs-list

[issue23383] Clean up bytes formatting

2015-02-10 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Eliminated tabs. -- Added file: http://bugs.python.org/file38087/bytes_format_3.patch ___ Python tracker ___ _

[issue23427] Python should expose command when invoked with -c

2015-02-10 Thread Zachary Ware
Zachary Ware added the comment: Rather than add a variable to sys that will be empty 99% of the time, I think I'd rather stick a '__command__' constant in the __main__ module namespace when running with '-c' (think of '__file__'). You could then get at it elsewhere with 'from __main__ import

[issue23383] Clean up bytes formatting

2015-02-10 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Updated patch addresses Victor's comments. -- Added file: http://bugs.python.org/file38086/bytes_format_3.patch ___ Python tracker ___ ___

[issue23437] Make user scripts directory versioned on Windows

2015-02-10 Thread Steve Dower
Steve Dower added the comment: You should be able to apply the patch to 3.5.0a1 and test it that way easily enough. Other than the doc changes, it's just .py files. (Building 3.5 with earlier VS versions is also okay right now.) -- ___ Python tracke

[issue23437] Make user scripts directory versioned on Windows

2015-02-10 Thread Paul Moore
New submission from Paul Moore: Patch to make the user scripts directory on Windows %APPDATA%\Python\PythonXY\Scripts rather than %APPDATA%\Python\Scripts. See the thread "PEP 370 - per-user scripts directory on Windows" (Feb 10 2015) on python-dev for discussion, but essentially this is to en

[issue23383] Clean up bytes formatting

2015-02-10 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Ping. -- ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.pytho

[issue22883] Get rid of references to PyInt in Py3 sources

2015-02-10 Thread Serhiy Storchaka
Changes by Serhiy Storchaka : -- assignee: -> docs@python components: +Documentation -Extension Modules, Interpreter Core nosy: +docs@python ___ Python tracker ___ _

[issue23436] xml.dom.minidom.Element.ownerDocument is hiden

2015-02-10 Thread Kevin Rocard
New submission from Kevin Rocard: Extracted from xml.dom.minidom: ~~~ Node(...): ... ownerDocument = None ... Element(Node): __slots__=('ownerDocument', ...) ... ~~~ As Element declares an ownerDocument attribute in __slots__, Node's ownerDocument attribute is hidden: ~~~ clas

[issue21793] httplib client/server status refactor

2015-02-10 Thread Eli Bendersky
Changes by Eli Bendersky : -- nosy: -eli.bendersky ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mai

[issue23434] RFC6266 support

2015-02-10 Thread Demian Brecht
Changes by Demian Brecht : -- nosy: +demian.brecht ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail

[issue23435] installation with full path as prefix incomplete

2015-02-10 Thread Ivailo Monev
New submission from Ivailo Monev: Installing Python with prefix that equals "/" seems to not install the dymic libraries like _collections. The steps I performed to install it: ./configure --prefix=/ \ --with-threads \ --enable-shared \ --enable-ipv6 \ --with-sys

[issue23429] -5**4 returns -625 instead of 625

2015-02-10 Thread Justin
Justin added the comment: Thank you for the link. I can understand the language definition and I can accept it at face value. The confusion I have is that it does not appear to be consistent. My example of -5**4 vs 4**-2 would both have literals with a unary sign. One works as expected, wher

[issue23429] -5**4 returns -625 instead of 625

2015-02-10 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: No, -5 is not an atom. See The Python Language Reference [1]: """Note that numeric literals do not include a sign; a phrase like -1 is actually an expression composed of the unary operator ‘-‘ and the literal 1.""" [1] https://docs.python.org/3/reference/lex

[issue2211] Cookie.Morsel interface needs update

2015-02-10 Thread Demian Brecht
Demian Brecht added the comment: @Mark: Sure, but not super high priority. Thanks for pointing it out. -- ___ Python tracker ___ ___ Py

[issue3566] httplib persistent connections violate MUST in RFC2616 sec 8.1.4.

2015-02-10 Thread Demian Brecht
Demian Brecht added the comment: My apologies for the delay, but I've now reviewed the proposed patch. With a fresh outlook after taking a bit of time off, I'm not sure anymore that this is the best way of going about solving this problem. The main reason being that we now have two errors that

[issue23429] -5**4 returns -625 instead of 625

2015-02-10 Thread Justin
Justin added the comment: I think there is a misunderstanding of precedence here. If we had an operation were -1 * 5**4, I could fully understand the statement of precedence. However, in the absence of the "-1 *", the -5 becomes a single atom. For example: >>> myVal = -5 >>> myVal**4 625 >>> #

[issue12954] Multiprocessing logging under Windows

2015-02-10 Thread Davin Potts
Davin Potts added the comment: Closing per the feedback of the OP and secondary contributor to the issue. Kudos to the reporters for such nice follow-up. -- nosy: +davin resolution: -> not a bug stage: -> resolved status: open -> closed ___ Python

[issue11240] Running unit tests in a command line tool leads to infinite loop with multiprocessing on Windows

2015-02-10 Thread Davin Potts
Davin Potts added the comment: In some (but not necessarily all) circumstances, the multiprocessing module is now (in 2.7 and 3.x) able to detect the "infinite spawning" behavior described due to unsafe importing of the main module on Windows. The resulting error message looks like this: R

[issue2211] Cookie.Morsel interface needs update

2015-02-10 Thread Mark Lawrence
Mark Lawrence added the comment: @Demian is this of any interest to you? -- nosy: +BreamoreBoy, demian.brecht ___ Python tracker ___ __

[issue21793] httplib client/server status refactor

2015-02-10 Thread Demian Brecht
Demian Brecht added the comment: I’ve reverted the patch to use the old format. The main reason being that plain ints can still be used in most cases as values for code, in which case logging will be inconsistent with cases using the enum. -- Added file: http://bugs.python.org/file3808

[issue9122] Problems with multiprocessing, Python embedding and Windows

2015-02-10 Thread Davin Potts
Changes by Davin Potts : -- resolution: -> out of date stage: -> resolved status: pending -> closed ___ Python tracker ___ ___ Python

[issue9122] Problems with multiprocessing, Python embedding and Windows

2015-02-10 Thread Davin Potts
Davin Potts added the comment: Closing on the basis that: 1. Richard provided a proposed workaround but did not receive a response from the OP in 1.5 years. 2. Issues encountered by the OP may have been addressed in part by changes in the way import works in the past 4.5 years. 3. This issue ha

[issue23434] RFC6266 support

2015-02-10 Thread Myroslav Opyr
New submission from Myroslav Opyr: cgi.FieldStorage has problems parsing the multipart/form-data request with file fields with non-latin filenames. It drops the filename parameter formatted according to RFC6266 [1] (most modern browsers do). There is already python implementation for that RFC

[issue21429] Input.output error with multiprocessing

2015-02-10 Thread Davin Potts
Changes by Davin Potts : -- status: open -> pending ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mai

[issue23427] Python should expose command when invoked with -c

2015-02-10 Thread Mihail Krivushin
Changes by Mihail Krivushin : -- versions: +Python 2.7, Python 3.2, Python 3.3, Python 3.4 ___ Python tracker ___ ___ Python-bugs-list

[issue23072] 2.7.9 multiprocessing compile conflict

2015-02-10 Thread Davin Potts
Changes by Davin Potts : -- status: open -> pending ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mai

[issue12738] Bug in multiprocessing.JoinableQueue() implementation on Ubuntu 11.04

2015-02-10 Thread Davin Potts
Changes by Davin Potts : -- status: open -> pending ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mai

[issue8094] Multiprocessing infinite loop

2015-02-10 Thread Davin Potts
Changes by Davin Potts : -- stage: needs patch -> resolved ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https

[issue22864] Add filter to multiprocessing.Pool

2015-02-10 Thread Davin Potts
Davin Potts added the comment: The points made by Travis are clear and solid. Closing as this functionality is already handled well and no exceptional situations are being argued for that would require a special case. -- nosy: +davin resolution: -> rejected stage: -> resolved status:

[issue23433] undefined behaviour in faulthandler.c, exposed by GCC 5

2015-02-10 Thread STINNER Victor
STINNER Victor added the comment: faulthandler._stack_overflow() is written to crash. The comparison on stack pointers is just here to avoid an unlimited loop. A stack of 100 MB is something really large. I never seen an OS where faulthandler._stack_overflow() doesn't crash yet. Here is a pat

[issue23433] undefined behaviour in faulthandler.c, exposed by GCC 5

2015-02-10 Thread Matthias Klose
New submission from Matthias Klose: richi: https://github.com/nemomobile-packages/python3/blob/master/Modules/faulthandler.c#L903 richi: LD_LIBRARY_PATH=/builddir/build/BUILD/Python-3.4.2/build/debug/ /builddir/build/BUILD/Python-3.4.2/build/debug/python -E -c 'import faulthandler; faulthan

[issue23432] Duplicate content in SystemExit documentation

2015-02-10 Thread Berker Peksag
New submission from Berker Peksag: >From https://docs.python.org/3/library/exceptions.html#SystemExit Also, this exception derives directly from BaseException and not Exception, since it is not technically an error. and The exception inherits from BaseException instead of Exception so

[issue1625576] add ability to specify name to os.fdopen

2015-02-10 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: And the name attribute of FileIO object is writable. So you can change it after calling fdopen. >>> import os >>> f = os.fdopen(2, "w") >>> f <_io.TextIOWrapper name=2 mode='w' encoding='UTF-8'> >>> f.buffer.raw.name = 'useful name' >>> f <_io.TextIOWrapper n

[issue1423] wave sunau aifc 16bit errors

2015-02-10 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: This is a duplicate of issue8311. Was fixed in 3.4. In 2.7 you should first convert your data to str, bytearray, array('B') or buffer. -- nosy: +serhiy.storchaka resolution: -> duplicate status: languishing -> closed superseder: -> wave module sets

[issue23427] Python should expose command when invoked with -c

2015-02-10 Thread Mihail Krivushin
Mihail Krivushin added the comment: Jan-Philip, yes, I see that Main.c needs modification, but we can fix orig_argv with not just assignment but with full copy. So then we can get unmodified argv. -- ___ Python tracker

[issue23427] Python should expose command when invoked with -c

2015-02-10 Thread Jan-Philip Gehrcke
Jan-Philip Gehrcke added the comment: Victor, I support the idea of sys.command. However, it would be unpopulated most of the time (e.g. set to None by default). Now, is that something we should push forward or not? I would work on a patch, but we should have an agreement first, I guess. Mi

[issue21717] Exclusive mode for ZipFile and TarFile

2015-02-10 Thread Berker Peksag
Berker Peksag added the comment: Updated patch. Thanks again, Serhiy. -- Added file: http://bugs.python.org/file38081/issue21717_tarfile_v3.diff ___ Python tracker ___ __

[issue17234] python-2.7.3-r3: crash in visit_decref()

2015-02-10 Thread Serhiy Storchaka
Changes by Serhiy Storchaka : -- status: languishing -> pending ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue22364] Improve some re error messages using regex for hints

2015-02-10 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Updated patch addresses Ezio's comments. -- Added file: http://bugs.python.org/file38080/re_errors_2.patch ___ Python tracker ___

[issue23427] Python should expose command when invoked with -c

2015-02-10 Thread Михаил Кривушин
Михаил Кривушин added the comment: Hello, I have find some workaround to get actual argv, but it broken: python -c 'import ctypes; argv = ctypes.POINTER(ctypes.c_char_p)(); argc = ctypes.c_int(); ctypes.pythonapi.Py_GetArgcArgv(ctypes.byref(argc), ctypes.byref(argv)); print([argv[i] for i in x

[issue13407] tarfile doesn't support multistream bzipped tar files

2015-02-10 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: The tarfile module documentation needs a note similar to issue1625 which would warn about the lack of supporting some files and suggest a workaround. -- assignee: -> docs@python components: +Documentation nosy: +docs@python, nadeem.vawda, serhiy.stor

[issue21231] Issue a python 3 warning when old style classes are defined.

2015-02-10 Thread Serhiy Storchaka
Changes by Serhiy Storchaka : -- resolution: -> rejected status: pending -> closed ___ Python tracker ___ ___ Python-bugs-list mailin

[issue20394] Coverity complains on audioop

2015-02-10 Thread Serhiy Storchaka
Changes by Serhiy Storchaka : -- resolution: -> fixed stage: patch review -> resolved status: pending -> closed type: -> compile error ___ Python tracker ___ __

[issue22899] http.server.BaseHTTPRequestHandler.parse_request (TypeError: decoding str is not supported)

2015-02-10 Thread Serhiy Storchaka
Changes by Serhiy Storchaka : -- status: pending -> closed ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http

[issue22819] Python3.4: xml.sax.saxutils.XMLGenerator.__init__ fails with pythonw.exe

2015-02-10 Thread Serhiy Storchaka
Changes by Serhiy Storchaka : -- resolution: -> not a bug status: pending -> closed ___ Python tracker ___ ___ Python-bugs-list maili

[issue22701] Write unescaped unicode characters (Japanese, Chinese, etc) in JSON module when "ensure_ascii=False"

2015-02-10 Thread Serhiy Storchaka
Changes by Serhiy Storchaka : -- status: pending -> closed ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http

[issue23431] Idle Application Not Responding

2015-02-10 Thread SilentGhost
Changes by SilentGhost : -- components: +Macintosh nosy: +hynek, ned.deily, ronaldoussoren ___ Python tracker ___ ___ Python-bugs-list