[issue13215] multiprocessing Manager.connect() aggressively retries refused connections

2011-10-18 Thread Benjamin Gilbert
New submission from Benjamin Gilbert : multiprocessing.managers.BaseManager.connect() takes 20 seconds to return on failure, even if the server refuses the connection. This is because the function that creates the connection, multiprocessing.connection.SocketClient(), handles ECONNREFUSED by

[issue12281] bytes.decode('mbcs', 'ignore') does replace undecodable bytes on Windows Vista or later

2011-10-18 Thread Roundup Robot
Roundup Robot added the comment: New changeset af0800b986b7 by Victor Stinner in branch 'default': Issue #12281: Rewrite the MBCS codec to handle correctly replace and ignore http://hg.python.org/cpython/rev/af0800b986b7 -- nosy: +python-dev ___ Pyth

[issue3067] setlocale error message is confusing

2011-10-18 Thread Martin v . Löwis
Martin v. Löwis added the comment: > Maybe we should return TypeError with the same message then? That > would require some modification of documentation though, as it > states: "If the modification of the locale fails, the exception Error > is raised.". No, any operation can report TypeError a

[issue13208] Problems with urllib on windows

2011-10-18 Thread Deepak Dodo
Deepak Dodo added the comment: This is the source code I am using. Even if I use any module other than urllib to read the contents, its not reading the entire contents of the webpage. This happens only on Windows. -- Added file: http://bugs.python.org/file23450/tester.py

[issue13208] Problems with urllib on windows

2011-10-18 Thread Deepak Dodo
Deepak Dodo added the comment: The log file is also attached. This error is because the entire content of the webpage has not been read. -- Added file: http://bugs.python.org/file23451/error.log ___ Python tracker

[issue3067] setlocale error message is confusing

2011-10-18 Thread Jyrki Pulliainen
Jyrki Pulliainen added the comment: Thanks for clarification! I see the problem now. So if I get this correctly we should change the _build_localename to raise TypeError? If the given locale is in wrong format, we'll get TypeError, but if it's valid type but otherwise invalid locale (like 'en

[issue12281] bytes.decode('mbcs', 'ignore') does replace undecodable bytes on Windows Vista or later

2011-10-18 Thread Roundup Robot
Roundup Robot added the comment: New changeset 5841920d1ef6 by Victor Stinner in branch 'default': Issue #12281: Skip code page tests on non-Windows platforms http://hg.python.org/cpython/rev/5841920d1ef6 -- ___ Python tracker

[issue3067] setlocale error message is confusing

2011-10-18 Thread Martin v . Löwis
Martin v. Löwis added the comment: > Thanks for clarification! I see the problem now. So if I get this > correctly we should change the _build_localename to raise TypeError? Yes, that's what I'm proposing. > If the given locale is in wrong format, we'll get TypeError, but if > it's valid type

[issue12281] bytes.decode('mbcs', 'ignore') does replace undecodable bytes on Windows Vista or later

2011-10-18 Thread Roundup Robot
Roundup Robot added the comment: New changeset 413b89242766 by Victor Stinner in branch 'default': Issue #12281: Fix test_codecs.test_cp932() on Windows XP http://hg.python.org/cpython/rev/413b89242766 -- ___ Python tracker

[issue3067] setlocale error message is confusing

2011-10-18 Thread Jyrki Pulliainen
Jyrki Pulliainen added the comment: Uploaded a new patch that raises TypeError -- Added file: http://bugs.python.org/file23452/issue3067_v3.patch ___ Python tracker ___ _

[issue12174] Multiprocessing logging levels unclear

2011-10-18 Thread Vinay Sajip
Vinay Sajip added the comment: > Should there be another issue opened to do something about the extra logging > levels? IMO they shouldn't have been added in the first place, but I'm not sure if they're part of the public API and hence subject to backward-compatibility constraints. It would

[issue13214] Cmd: list available completions from the cmd.Cmd subclass and filter out EOF handler(s)

2011-10-18 Thread Raymond Hettinger
Raymond Hettinger added the comment: This looks to be a reasonable request. I think the patch would be better if the filtering were done directly in get_names(). A subclass can override or extend that method if it wants to customize the filter. -- assignee: -> rhettinger nosy: +rhe

[issue12281] bytes.decode('mbcs', 'ignore') does replace undecodable bytes on Windows Vista or later

2011-10-18 Thread STINNER Victor
STINNER Victor added the comment: test_codecs pass on Windows XP and Windows Seven buildbots. -- resolution: -> fixed status: open -> closed ___ Python tracker ___

[issue13150] Most of Python's startup time is sysconfig

2011-10-18 Thread Roumen Petrov
Roumen Petrov added the comment: 10x for solution, 10x for commit . Good bye cross compilation! Any attempt to improve python build system to support cross-build, multilib build, build outside source tree with different options is useless. -- nosy: +rpetrov ___

[issue13216] Add cp65001 codec

2011-10-18 Thread STINNER Victor
New submission from STINNER Victor : Thanks to #12281, it is now trivial to implement any Windows code page in Python. I don't know if existing code pages (e.g. cp932) should use codecs.code_page_encode/.code_page_decode on Windows, or continue to use the (portable) Python code. Users want th

[issue13216] Add cp65001 codec

2011-10-18 Thread STINNER Victor
STINNER Victor added the comment: > Users want the code page 65001 See issues #6058, #7441 and #10920. -- ___ Python tracker ___ ___

[issue13173] Default values for string.Template

2011-10-18 Thread Bfontaine
Bfontaine added the comment: diff updated -- Added file: http://bugs.python.org/file23454/string_template_default_values2.patch ___ Python tracker ___ _

[issue13173] Default values for string.Template

2011-10-18 Thread Bfontaine
Bfontaine added the comment: A "light" version of diff added (rewrapped content is replaced by "[rewrapping]") -- Added file: http://bugs.python.org/file23455/string_template_default_values2-light.patch ___ Python tracker

[issue12533] python-celementtree prevents me from running python develop.py to compile Imprudence Viewer

2011-10-18 Thread Kristoffer Grundström
Kristoffer Grundström added the comment: Uhhhm. You could bypass the python-celementtree issue when compiling by editing fastest_celementree.py & uncommenting some lines so you compile using other instructions. -- ___ Python tracker

[issue13173] Default values for string.Template

2011-10-18 Thread Raymond Hettinger
Raymond Hettinger added the comment: This looks like a reasonable use case. That being said, I question whether the defaults should be attached directly to the template instance or whether they should be part of the substitution method. FWIW, there already have a couple of other ways to do i

[issue13197] subprocess: move shell arguments to a separate keyword param

2011-10-18 Thread Raymond Hettinger
Raymond Hettinger added the comment: I don't think you can tighten the API at this point. We could however make Popen complain when options are going to be thrown away. Or it could be made more liberal about what is accepts (running shlex on string input or join on list input as needed). -

[issue13152] textwrap: support custom tabsize

2011-10-18 Thread Raymond Hettinger
Raymond Hettinger added the comment: +1 -- nosy: +rhettinger ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: h

[issue10860] Handle empty port after port delimiter in httplib

2011-10-18 Thread Łukasz Langa
Łukasz Langa added the comment: Patch merged. Thanks, Shawn. -- nosy: +lukasz.langa resolution: -> fixed stage: patch review -> committed/rejected status: open -> closed versions: -Python 3.1 ___ Python tracker

[issue10860] Handle empty port after port delimiter in httplib

2011-10-18 Thread Roundup Robot
Roundup Robot added the comment: New changeset 6ac59218c049 by Łukasz Langa in branch '3.2': Fixes #10860: Handle empty port after port delimiter in httplib http://hg.python.org/cpython/rev/6ac59218c049 New changeset 18dc3811f2b8 by Łukasz Langa in branch 'default': Merged fix for #10860 from 3

[issue13217] Missing header dependencies in Makefile

2011-10-18 Thread John O'Connor
New submission from John O'Connor : I think ucs{1,2,4}lib.h, asciilib.h and a few other files should be in the Makefile deps list for unicodeobject.c. Patch included. -- components: Build files: makefile.patch keywords: patch messages: 145881 nosy: haypo, jcon, pitrou priority: normal

[issue13217] Missing header dependencies in Makefile

2011-10-18 Thread Meador Inge
Changes by Meador Inge : -- nosy: +meador.inge stage: -> patch review ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubs

[issue11751] Increase distutils.filelist / packaging.manifest test coverage

2011-10-18 Thread Justin Love
Justin Love added the comment: re: test_glob_to_re Could not reproduce (OS X 10.6) I built branch 2.7, and also tried the expressions from glob_to_re on my system 2.7 and 3.2, all returned the (?ms) version. -- ___ Python tracker

[issue10680] argparse: titles and add_mutually_exclusive_group don't mix (even with workaround)

2011-10-18 Thread Roundup Robot
Roundup Robot added the comment: New changeset 5c5c6a28b349 by Łukasz Langa in branch 'default': A ricochet from fixing #10680: http://http://example.com/ no longer reports http://hg.python.org/cpython/rev/5c5c6a28b349 -- nosy: +python-dev ___ Python

[issue10680] argparse: titles and add_mutually_exclusive_group don't mix (even with workaround)

2011-10-18 Thread Łukasz Langa
Changes by Łukasz Langa : -- Removed message: http://bugs.python.org/msg145883 ___ Python tracker ___ ___ Python-bugs-list mailing lis

[issue1757072] Zipfile robustness

2011-10-18 Thread R. David Murray
R. David Murray added the comment: "This issue" is currently a collection point for specific "allow this in lax mode" issues. Do you have one or more specific cases in point that you'd like to talk about? (Note that the 'garbage after end of file' bug has already been fixed.) -- _

[issue10860] Handle empty port after port delimiter in httplib

2011-10-18 Thread Shawn Ligocki
Shawn Ligocki added the comment: Great! Glad it landed :) -- ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: h

[issue13121] collections.Counter's += copies the entire object

2011-10-18 Thread Raymond Hettinger
Changes by Raymond Hettinger : Added file: http://bugs.python.org/file23457/counter.diff ___ Python tracker ___ ___ Python-bugs-list mailing l

[issue13205] NameErrors in generated setup.py (codecs, split_multiline)

2011-10-18 Thread David Barnett
David Barnett added the comment: Regression tests. Not positive that subprocess is the best approach for running these, but it seems to work. In the process of writing tests, I discovered another missing import for PackagingFileError when there's no setup.cfg. -- Added file: http://b

[issue13197] subprocess: move shell arguments to a separate keyword param

2011-10-18 Thread anatoly techtonik
anatoly techtonik added the comment: List not only needs to be joined, it should be quoted as well. But the biggest problem will be the change of behavior between Python versions which may confuse users even more. Perhaps it's a good time to start embedding 'best practice' recipes in manual.

<    1   2