[issue17366] os.chdir win32

2013-03-05 Thread Dave Humphries
New submission from Dave Humphries: os.chdir missed a back slash in rewriting a file path see example below (the extra backslash was missing from the trunk directory). Modifying the path with an extra slash enabled this to work for some reason. (os windows 8 64 bit Python 2.7.3 (default, Apr 1

[issue17365] Remove Python 2 code from test_print

2013-03-05 Thread Berker Peksag
New submission from Berker Peksag: Changes: * Removed Python 2 specific code * Re-enabled u'' tests (see PEP 414) * Cosmetic fixes -- components: Tests files: test_print.diff keywords: patch messages: 183581 nosy: berker.peksag priority: normal severity: normal status: open title: Remov

[issue17338] Add length_hint parameter to list, dict, set constructors to allow efficient presizing

2013-03-05 Thread Stefan Behnel
Stefan Behnel added the comment: I agree with basically all counter-arguments that were brought up so far. While I would eventually like to use the available length hints in the special case of Cython's list comprehensions, I'm far from seeing a general applicability for this. The use cases ar

[issue15851] Lib/robotparser.py doesn't accept setting a user agent string, instead it uses the default.

2013-03-05 Thread karl
karl added the comment: Setting a user agent string should be possible. My guess is that the default library has been used by an abusive client (by mistake or intent) and wikimedia project has decided to blacklist the client based on the user-agent string sniffing. The match is on anything whi

[issue15465] Improved documentation for C API version info

2013-03-05 Thread Kushal Das
Kushal Das added the comment: Attached version 5 of the patch with changes based on suggestions of ncoghlan -- Added file: http://bugs.python.org/file29321/issue15465v5.patch ___ Python tracker

[issue14132] Redirect is not working correctly in urllib2

2013-03-05 Thread karl
karl added the comment: → curl -sI http://kniznica.uniza.sk/opac HTTP/1.1 302 Moved Temporarily Date: Wed, 06 Mar 2013 03:23:06 GMT Server: Indy/9.0.50 Content-Type: text/html Location: ?fs=C79F09C9F1304E7AA4FF7C211BEA2B9B&fn=main → python3.3 Python 3.3.0 (v3.3.0:bd8afb90ebf2, Sep 29 2012,

[issue13359] urllib2 doesn't escape spaces in http requests

2013-03-05 Thread karl
karl added the comment: The issue with the current patch is that it is escaping more than only the spaces, with possibly indirect border effect. Anne van Kesteren is in the process of creating a parsing/writing specification for URL. Not finished but putting it here for future reference. http:/

[issue8450] httplib: false BadStatusLine() raised

2013-03-05 Thread karl
karl added the comment: Hmm no code. I wonder if it's about this part. http://hg.python.org/cpython/file/3.3/Lib/http/client.py#l321 -- nosy: +karlcow ___ Python tracker ___ _

[issue15465] Improved documentation for C API version info

2013-03-05 Thread Nick Coghlan
Nick Coghlan added the comment: Mostly looks good to me, but the second sentence in the first paragraph of the new section should be deleted. The relationship between PY_LIMITED_API and PY_VERSION_HEX is already covered in the stable ABI docs: """In some cases, the stable ABI needs to be exten

[issue8732] Should urrllib2.urlopen send an Accept-Encoding header?

2013-03-05 Thread karl
karl added the comment: What was the content of http://support.github.com/discussions/site/1510 I can't find it. Is the issue still going on? -- nosy: +karlcow ___ Python tracker

[issue11732] Skip decorator for tests requiring manual intervention on Windows

2013-03-05 Thread Ezio Melotti
Ezio Melotti added the comment: Attached an untested patch against 3.2. On 2.7 and 3.2 there's no test_faulthandler, and the crashing test in test_ctypes seems to be in 3.x only. Unless I'm missing something: 1) no crash popups should appear while running the 2.7 test suite; 2) only test_ctyp

[issue17329] Document unittest.SkipTest

2013-03-05 Thread Ezio Melotti
Ezio Melotti added the comment: > I wonder if that was meant to be TestCase.skipTest()? Most likely. I would document this exception at the end of the "Skipping tests and expected failures". You could documented it simply as "the exception raised by the skip decorators", and suggest to use T

[issue17364] Multiprocessing documentation mentions function that doesn't exist

2013-03-05 Thread Ezio Melotti
Ezio Melotti added the comment: Fixed, thanks for the report! -- assignee: docs@python -> ezio.melotti nosy: +ezio.melotti resolution: -> fixed stage: -> committed/rejected status: open -> closed type: -> enhancement versions: +Python 3.2, Python 3.3, Python 3.4 _

[issue17364] Multiprocessing documentation mentions function that doesn't exist

2013-03-05 Thread Roundup Robot
Roundup Robot added the comment: New changeset 01a8fcc91d5a by Ezio Melotti in branch '2.7': #17364: remove documentation for a function that does not exist. http://hg.python.org/cpython/rev/01a8fcc91d5a New changeset 4f9de1b18cab by Ezio Melotti in branch '3.2': #17364: remove documentation for

[issue17363] Argument Mixup in PyState_AddModule

2013-03-05 Thread Ezio Melotti
Ezio Melotti added the comment: Fixed, thanks for the report! -- assignee: docs@python -> ezio.melotti nosy: +ezio.melotti resolution: -> fixed stage: -> committed/rejected status: open -> closed type: -> enhancement versions: +Python 3.4 ___ Pytho

[issue17363] Argument Mixup in PyState_AddModule

2013-03-05 Thread Roundup Robot
Roundup Robot added the comment: New changeset 29d5bc1226f9 by Ezio Melotti in branch '3.3': #17363: fix arguments in PyState_AddModule and PyState_RemoveModule docs. http://hg.python.org/cpython/rev/29d5bc1226f9 New changeset 75c0cb169be5 by Ezio Melotti in branch 'default': #17363: merge with

[issue17364] Multiprocessing documentation mentions function that doesn't exist

2013-03-05 Thread Richard Oudkerk
Changes by Richard Oudkerk : -- nosy: +sbt ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.o

[issue17364] Multiprocessing documentation mentions function that doesn't exist

2013-03-05 Thread Topher Brown
New submission from Topher Brown: multiprocessing documentation (http://docs.python.org/2/library/multiprocessing.html#pipes-and-queues) for multiprocessing.Queue mentions Queue.get_no_wait() as an alias for Queue.get_nowait(). This function does not seem to exist. -- assignee: docs@p

[issue17223] Initializing array.array with unicode type code and buffer segfaults

2013-03-05 Thread STINNER Victor
STINNER Victor added the comment: > Changeset b9f7b1bf36aa should fix the test on Windows. Oh, many tests are failing because of this change, so I reverted it. == ERROR: test_surrogatepass_handler (test.test_codecs.CP65001Test)

[issue17363] Argument Mixup in PyState_AddModule

2013-03-05 Thread Tobias Becker
New submission from Tobias Becker: http://docs.python.org/3.3/c-api/module.html?highlight=pymodule#PyState_AddModule the arguments of PyState_AddModule are in wrong order: currently: int PyState_AddModule(PyModuleDef *def, PyObject *module) correct: int PyState_AddModule(PyObject *module,PyModul

[issue17223] Initializing array.array with unicode type code and buffer segfaults

2013-03-05 Thread STINNER Victor
STINNER Victor added the comment: Changeset b9f7b1bf36aa should fix the test on Windows. My Windows VM is dead, I cannot test myself. If the fix works, it must be backported in Python 3.3. -- ___ Python tracker __

[issue17223] Initializing array.array with unicode type code and buffer segfaults

2013-03-05 Thread Roundup Robot
Roundup Robot added the comment: New changeset 15190138d3f3 by Victor Stinner in branch 'default': Issue #17223: Add another test to check that _PyUnicode_Ready() rejects http://hg.python.org/cpython/rev/15190138d3f3 New changeset b9f7b1bf36aa by Victor Stinner in branch 'default': Issue #17223:

[issue17223] Initializing array.array with unicode type code and buffer segfaults

2013-03-05 Thread STINNER Victor
STINNER Victor added the comment: > ezio.melotti: Tests are still failing on Windows Oh, I read the PyUnicode_FromUnicode() twice and there is a bug :-( With 16-bit wchar_t type (on Windows), find_maxchar_surrogates() doesn't fail if the wchar_* string contains in invalid surrogate pair.

[issue17329] Document unittest.SkipTest

2013-03-05 Thread Zachary Ware
Zachary Ware added the comment: In the patches, the description of SkipTest is copied directly from the docstring in Lib/unittest/case.py with a bit of markup added. It mentions TestResult.skip(), which doesn't exist. I wonder if that was meant to be TestCase.skipTest()? -- type: -

[issue17329] Document unittest.SkipTest

2013-03-05 Thread Zachary Ware
Changes by Zachary Ware : Added file: http://bugs.python.org/file29319/issue17329-2.7.diff ___ Python tracker ___ ___ Python-bugs-list mailing

[issue17329] Document unittest.SkipTest

2013-03-05 Thread Zachary Ware
Zachary Ware added the comment: Here's a pair of patches for 3.x and 2.7. The 3.x patch is actually targeted at default; it has a couple extra instances of ``SkipTest`` that are converted to :exc:`SkipTest` in the patch. -- keywords: +patch versions: +Python 3.3 Added file: http://bug

[issue17338] Add length_hint parameter to list, dict, set constructors to allow efficient presizing

2013-03-05 Thread Gregory P. Smith
Gregory P. Smith added the comment: The gain will be more noticeable the faster the Python implementation it is running under is. It is going to avoid logN relloc's in just about all implementations. That CPython is relatively slow is not a justification to avoid adding the feature. I like C

[issue17362] enable-new-dtags only for GNU ELF linker

2013-03-05 Thread Roumen Petrov
New submission from Roumen Petrov: GNU binutils properly document that flag --enable-new-dtags is only available on ELF systems. I would like to propose a simple hack to avoid activation if ELF is not listed in supported emulations. Comments in unixccompiler.py are not precise : "# GNU ld need

[issue17361] use CC to test compiler flags in setup.py

2013-03-05 Thread Roumen Petrov
New submission from Roumen Petrov: Version of gcc compiler may differ between build and host system. As result could be activated unsupported options and build of _decimal module will fail. -- components: Cross-Build files: 0003-ORIGIN-use-CC-to-test-compiler-flags-in-setup.py.patch key

[issue14243] tempfile.NamedTemporaryFile not particularly useful on Windows

2013-03-05 Thread Piotr Dobrogost
Changes by Piotr Dobrogost : -- nosy: +piotr.dobrogost ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://m

[issue17360] Regular expressions on mmap'd files can overflow

2013-03-05 Thread Jeremy Archer
New submission from Jeremy Archer: I've recently been having problems with the Python regular expressions module when mmap'ing large (> 2^32 bits) on Linux. Steps to reproduce: https://gist.github.com/fatlotus/5094575 I've been able to replicate it on Ubuntu Linux (uname -r = 3.5.0-23-generic

[issue17358] imp.load_module() leads to the improper caching of the 'file' argument

2013-03-05 Thread Brett Cannon
Brett Cannon added the comment: I don't have a Python 3.3 install happy (someone at work reported the failure), but simply calling imp.load_module() and then __loader__.load_module() on the returned module immediately after should trigger it. -- ___

[issue17358] imp.load_module() leads to the improper caching of the 'file' argument

2013-03-05 Thread Roumen Petrov
Roumen Petrov added the comment: How to reproduce issue with normal in source tree build ? I'm asking because to avoid issue, on read only file system , I use patch posted in scope of issue3754 and issue15833 (0016-CROSS-reload-may-fail-with-operation-on-closed-file-.patch) . -- nosy:

[issue17338] Add length_hint parameter to list, dict, set constructors to allow efficient presizing

2013-03-05 Thread Charles-François Natali
Charles-François Natali added the comment: > Here is an experimental patch. The speedup is ... measurable. It's likely to be more useful for dict and set, to avoid/limit rehashs. Also, the allocation overhead depends on the implementation, I suspect the gain would be more important with PyPy.

[issue17359] python modules.zip is not documented

2013-03-05 Thread Marc-Andre Lemburg
New submission from Marc-Andre Lemburg: The feature to run a ZIP file containing Python modules is not documented. It was implemented in Python 2.6: * http://bugs.python.org/issue1739468 and mentioned in the "What's new": * http://docs.python.org/2/whatsnew/2.6.html?highlight=python%20run%

[issue17358] imp.load_module() leads to the improper caching of the 'file' argument

2013-03-05 Thread Brett Cannon
New submission from Brett Cannon: As of right now, if you use imp.load_module(), it will store any 'file' argument you give it in a hacked loader. That's a problem when you call imp.reload() on such a module, though, as subsequent calls to __loader__.load_module() will attempt to use the cache

[issue17323] Disable [X refs, Y blocks] ouput in debug builds

2013-03-05 Thread Brian Curtin
Brian Curtin added the comment: I don't know exactly what the option would be called, but +1 on the idea. Perhaps something under the interpreter's -X option since it's implementation-specific? This output gets in the way a fair bit when debugging interpreter sessions, and Chris brings up a g

[issue11732] Skip decorator for tests requiring manual intervention on Windows

2013-03-05 Thread Ezio Melotti
Ezio Melotti added the comment: I applied this only on 3.3/3.x because I didn't manage to test on 2.7/3.2. If test_ctypes and/or other tests are failing there I can backport it, but the patch needs to be tweaked there because it doesn't apply cleanly (and there's no test_faulthandler there). -

[issue14489] repr() function link on the built-in function documentation is incorrect

2013-03-05 Thread Ezio Melotti
Changes by Ezio Melotti : -- nosy: +ezio.melotti ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.py

[issue17223] Initializing array.array with unicode type code and buffer segfaults

2013-03-05 Thread Ezio Melotti
Ezio Melotti added the comment: Tests are still failing on Windows: http://buildbot.python.org/all/builders/AMD64%20Windows7%20SP1%203.x/builds/1558/steps/test/logs/stdio -- ___ Python tracker _

[issue17338] Add length_hint parameter to list, dict, set constructors to allow efficient presizing

2013-03-05 Thread Christian Heimes
Christian Heimes added the comment: Here is an experimental patch. The speedup is ... measurable. $ ./python -m timeit -n1000 "l = []" "l.__preallocate__(1)" "app = l.append" "for i in range(1): app(i)" "l.__shrink__()" 1000 loops, best of 3: 3.68 msec per loop $ ./python -m timeit -n1

[issue14489] repr() function link on the built-in function documentation is incorrect

2013-03-05 Thread R. David Murray
Changes by R. David Murray : -- nosy: +vrutsky ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.pyth

[issue17356] Invalid link to repr() built-in function description

2013-03-05 Thread R. David Murray
R. David Murray added the comment: Closing in favor of re-opening issue 14489, which tried to fix this and apparently failed. -- nosy: +r.david.murray resolution: -> duplicate stage: -> committed/rejected status: open -> closed superseder: -> repr() function link on the built-in func

[issue14489] repr() function link on the built-in function documentation is incorrect

2013-03-05 Thread R. David Murray
R. David Murray added the comment: Confirm that this is not fixed. -- resolution: fixed -> stage: committed/rejected -> needs patch status: closed -> open ___ Python tracker ___

[issue17357] Add missing verbosity message to importlib

2013-03-05 Thread Brett Cannon
Brett Cannon added the comment: Actually, the builtin/frozen stuff is covered by a catch-all "import ..." message in importlib itself (I thought I wasn't _that_ sloppy when I added the messages). That just leaves the bad magic number, what to do about a matching directory, and "trying". -

[issue17357] Add missing verbosity message to importlib

2013-03-05 Thread Brett Cannon
Brett Cannon added the comment: Any change below needs to be checked for what verbosity it matters for (although I think there is only a single level 2 message): PySys_WriteStderr("# %s has bad magic\n", cpathname); (http://hg.python.org/cpython/file/637d7c953b10/Python/import.c#l1038) PySys_

[issue11732] Skip decorator for tests requiring manual intervention on Windows

2013-03-05 Thread Roundup Robot
Roundup Robot added the comment: New changeset 834a451f1cdb by Ezio Melotti in branch '3.3': #11732: add a new suppress_crash_popup() context manager to test.support. http://hg.python.org/cpython/rev/834a451f1cdb New changeset b87123015fb0 by Ezio Melotti in branch 'default': #11732: merge with

[issue17357] Add missing verbosity message to importlib

2013-03-05 Thread Brett Cannon
New submission from Brett Cannon: Looks like I missed some verbosity messages in importlib. The most obvious one is the "trying" messages under verbosity 2 (-vv or PYTHONVERBOSE=2). Should probably go through import.c again and make sure no other messages are missing (http://hg.python.org/cpyt

[issue17356] Invalid link to repr() built-in function description

2013-03-05 Thread Vladimir Rutsky
New submission from Vladimir Rutsky: References to built-in function repr() links to repr module (http://docs.python.org/2/library/repr.html#module-repr), but must link to description in http://docs.python.org/2/library/functions.html. It can be at least in http://docs.python.org/2/library/fun

[issue10886] Unhelpful backtrace for multiprocessing.Queue

2013-03-05 Thread Charles-François Natali
Charles-François Natali added the comment: For the record, I'm posting thse benchmark numbers here (originally from issue #17025): """ with patch: $ ./python /tmp/multi_queue.py took 0.7945001125335693 seconds with 1 workers took 0.7428359985351562 seconds with 2 workers took 0.7897098064422607

[issue17338] Add length_hint parameter to list, dict, set constructors to allow efficient presizing

2013-03-05 Thread Christian Heimes
Christian Heimes added the comment: My python-ideas posting about the same topic http://mail.python.org/pipermail/python-ideas/2013-March/019807.html -- ___ Python tracker ___ _

[issue17338] Add length_hint parameter to list, dict, set constructors to allow efficient presizing

2013-03-05 Thread Christian Heimes
Changes by Christian Heimes : -- nosy: +christian.heimes ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http:/

[issue12921] http.server.BaseHTTPRequestHandler.send_error and trailing newline

2013-03-05 Thread karl
karl added the comment: R.david Trying another patch just for understanding if it's what you meant. What it does: 1. adding an 'explain' keyword 2. escaping the explain message for the body 3. checking for injection of newline in the reason phrase. For the part 3, TODO: check if there are oth

[issue17301] An in-place version of many bytearray methods is needed

2013-03-05 Thread Gregory P. Smith
Gregory P. Smith added the comment: The important reasons for this are memory use and cache thrashing, not just CPU time. -- ___ Python tracker ___ __

[issue12921] http.server.BaseHTTPRequestHandler.send_error and trailing newline

2013-03-05 Thread R. David Murray
R. David Murray added the comment: Your suggestion could probably be applied as a bug fix to maintenance releases, but is it worth the effort? We don't generally try to protect programmers from themselves in Python. On the other hand, there should clearly be a way to provide the 'explain' tex

[issue12921] http.server.BaseHTTPRequestHandler.send_error and trailing newline

2013-03-05 Thread karl
karl added the comment: hehe. No hard feelings. I still do not think it is a good idea to test the "error code" and its associated message in the same test. :) For example, in RFC2616, 414 is defined as 414 Request-URI Too Long and in the HTTP1.1bis (which will not get a new version numb

[issue17301] An in-place version of many bytearray methods is needed

2013-03-05 Thread Christian Heimes
Christian Heimes added the comment: +1 -- nosy: +christian.heimes ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe

[issue17301] An in-place version of many bytearray methods is needed

2013-03-05 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Sorry, Terry, I was meaning a CPU time. -- ___ Python tracker ___ ___ Python-bugs-list mailing lis

[issue17343] Add a version of str.split which returns an iterator

2013-03-05 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: > There is no string view that I know of. Interesting idea, though, thanks to > the immutability of strings. Would much have to be different other than > boundary checking and __hash__ (and hoping extension authors are changing > things in-place)? Objects/s

[issue17343] Add a version of str.split which returns an iterator

2013-03-05 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: > Indeed, a bytearray version would require the talked about but not > implemented due to complexity (in pep3118) support for locking a buffer from > other mutations. I rather think that a bytearray version can't pre-scan the data. Note that an array for pr

[issue12921] http.server.BaseHTTPRequestHandler.send_error and trailing newline

2013-03-05 Thread R. David Murray
R. David Murray added the comment: Which I closed, sorry. I agree it should be possible to control the text produced with the error code separately from the text in the body. I prefer the specific text produced by our http server to the generic message, but I would only be -0 on changing this

[issue17355] http tests testing more than the error code are fragile

2013-03-05 Thread R. David Murray
R. David Murray added the comment: We are testing our http server. It is not obviously inappropriate to test the full string. Especially in the Line to Long case, where we are testing that our specific error message is produced. If you wish to argue that we should emit the standard message

[issue17353] Plistlib outputs empty data tags when deeply nested

2013-03-05 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: We should limit the indentation to be less than the maximal line length. -- assignee: -> ronaldoussoren components: +Macintosh nosy: +ronaldoussoren, serhiy.storchaka stage: -> needs patch type: -> behavior versions: +Python 3.2, Python 3.3 -Python

[issue15866] encode(..., 'xmlcharrefreplace') produces entities for surrogate pairs

2013-03-05 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: > I think it's better to be compatible with 3.3+. This is anyway a rather > obscure corner case. Well, we should not introduce new divergence between 3.2 wide build and 3.3. > Do you want to propose a new patch? I will do it. -- _

[issue10886] Unhelpful backtrace for multiprocessing.Queue

2013-03-05 Thread Charles-François Natali
Changes by Charles-François Natali : -- status: closed -> open superseder: reduce multiprocessing.Queue contention -> ___ Python tracker ___

[issue17025] reduce multiprocessing.Queue contention

2013-03-05 Thread Charles-François Natali
Charles-François Natali added the comment: > No. I only looked at the diff and assumed both changes were for Queue. OK, great. > Since you marked issue 10886 as superceded, do you intend to do the > pickling in put()? Actually no, I'll reopen it. I find the performance hit important, though.

[issue12921] http.server.BaseHTTPRequestHandler.send_error and trailing newline

2013-03-05 Thread karl
karl added the comment: Senthil, I created another bug reports for the tests which are fragile. http://bugs.python.org/issue17355 -- ___ Python tracker ___

[issue17355] http tests testing more than the error code are fragile

2013-03-05 Thread karl
Changes by karl : -- components: +Library (Lib), Tests ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://m

[issue17355] http tests testing more than the error code are fragile

2013-03-05 Thread karl
New submission from karl: Some of the tests of the HTTP Test suite are checking for the full status-line, instead of just the error code. Why is it an issue? 1. The only mandatory part in the status-line is the error code. The phrase is optional. For example the response is made of 3 parts.

[issue12921] http.server.BaseHTTPRequestHandler.send_error and trailing newline

2013-03-05 Thread karl
karl added the comment: The culprit is here http://hg.python.org/cpython/file/3.3/Lib/http/server.py#l320 That an application or a person decides to send another message is ok. Designer choice. That the library is sending something optional as a test seems more uncomfortable. The list of cod

[issue15465] Improved documentation for C API version info

2013-03-05 Thread Kushal Das
Kushal Das added the comment: version 4 of the patch contains a new column in table as Bytes as suggested by Ezio Melotti -- ___ Python tracker ___ _

[issue15465] Improved documentation for C API version info

2013-03-05 Thread Kushal Das
Changes by Kushal Das : Added file: http://bugs.python.org/file29313/issue15465v4.patch ___ Python tracker ___ ___ Python-bugs-list mailing li

[issue6419] Broken test_kqueue.py on OpenBSD

2013-03-05 Thread Mark Dickinson
Changes by Mark Dickinson : -- nosy: -mark.dickinson ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mai

[issue12921] http.server.BaseHTTPRequestHandler.send_error and trailing newline

2013-03-05 Thread Roundup Robot
Roundup Robot added the comment: New changeset 4e6c46d5f77d by Senthil Kumaran in branch '2.7': Reverting the changeset c31d700dea8b made for Issue #12921 http://hg.python.org/cpython/rev/4e6c46d5f77d New changeset 637d7c953b10 by Senthil Kumaran in branch '3.2': Reverting the changeset 5126e62c

[issue12921] http.server.BaseHTTPRequestHandler.send_error and trailing newline

2013-03-05 Thread Senthil Kumaran
Senthil Kumaran added the comment: There is a test failure. which leads me to believe that "Error message" may probably be relied upon by some applications. FAIL: test_header_length (test.test_httpservers.BaseHTTPRequestHandlerTestCase)

[issue17354] TypeError when running setup.py upload --show-response

2013-03-05 Thread Dmitry Shachnev
New submission from Dmitry Shachnev: When running `python3 setup.py sdist upload --show-response`, one may get this exception: Traceback (most recent call last): File "setup.py", line 47, in requires=['dbus'] File "/usr/lib/python3.2/distutils/core.py", line 148, in setup dist.run_

[issue12921] http.server.BaseHTTPRequestHandler.send_error and trailing newline

2013-03-05 Thread Senthil Kumaran
Senthil Kumaran added the comment: Karl - thanks for your telnet debugging session output. Helped realized the problem better. So I had been thinking that sending message is okay. But had not realized that same variable name was used and was causing problem. I have gone ahead with the fix for

[issue12921] http.server.BaseHTTPRequestHandler.send_error and trailing newline

2013-03-05 Thread Roundup Robot
Roundup Robot added the comment: New changeset c31d700dea8b by Senthil Kumaran in branch '2.7': Fix Issue #12921: BaseHTTPServer's send_error should send the correct error http://hg.python.org/cpython/rev/c31d700dea8b New changeset 5126e62c60af by Senthil Kumaran in branch '3.2': Fix Issue #1292