[issue10478] Ctrl-C locks up the interpreter

2010-12-03 Thread Antoine Pitrou
Antoine Pitrou added the comment: Fixed in r86981 (3.2), r86987 (3.1) and r86992 (2.7). Thanks! -- resolution: -> fixed stage: patch review -> committed/rejected status: open -> closed ___ Python tracker

[issue10528] argparse uses %s in gettext calls

2010-12-03 Thread Éric Araujo
Éric Araujo added the comment: Committed in r86993. -- resolution: -> fixed stage: commit review -> committed/rejected status: pending -> closed ___ Python tracker ___

[issue4391] optparse: use proper gettext plurals forms

2010-12-03 Thread Éric Araujo
Éric Araujo added the comment: I just checked argparse and there are similar non-optimal calls. Not all languages can use “string(s)” to express with 0, 1 or more, that’s why we have ngettext. Georg: This is a string change similar to #10528. Does it need a patch and review before the beta

[issue10272] SSL timeouts should raise socket.timeout, not a generic SSLError

2010-12-03 Thread Antoine Pitrou
Antoine Pitrou added the comment: Requalifying this issue so that the ssl module is fixed to raise socket.timeout on socket timeouts, which is not only more logical but much more useful (since you can then specifically handle this error). -- priority: low -> normal title: SSL handshak

[issue10272] SSL timeouts should raise socket.timeout, not a generic SSLError

2010-12-03 Thread Antoine Pitrou
Antoine Pitrou added the comment: Committed in r86997. I won't backport it to bugfix branches since it is a small compatibility breach. -- resolution: -> fixed stage: -> committed/rejected status: open -> closed ___ Python tracker

[issue10576] Add a progress callback to gcmodule

2010-12-03 Thread Yury Selivanov
Changes by Yury Selivanov : -- nosy: +Yury.Selivanov ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mai

[issue9333] Expose a way to enable os.symlink on Windows

2010-12-03 Thread Jason R. Coombs
Jason R. Coombs added the comment: Thanks and good work, Brian. I think ,though, I'm leaning toward agreeing with Amaury on the presence of the symlink attribute in os. I can easily see the justification for hiding it in legacy environments (Windows XP & Server 2003), where the relevance dim

[issue10542] Py_UNICODE_NEXT and other macros for surrogates

2010-12-03 Thread Marc-Andre Lemburg
Marc-Andre Lemburg added the comment: Alexander Belopolsky wrote: > > Alexander Belopolsky added the comment: > > On Sat, Nov 27, 2010 at 6:38 PM, Raymond Hettinger > wrote: > .. >> I suggest Py_UNICODE_ADVANCE() to avoid false suggestion that the iterator >> protocol is being used. >> > >

[issue10618] regression in subprocess.call() command quoting

2010-12-03 Thread Dirkjan Ochtman
New submission from Dirkjan Ochtman : http://mercurial.selenic.com/bts/issue2534 is a regression in 2.7.1 relative to 2.7, around the way commands are called (it seems to concern subprocess.call()). The error seems to be raised from mercurial's util.system() call, which uses subprocess.call()

[issue10618] regression in subprocess.call() command quoting

2010-12-03 Thread Georg Brandl
Georg Brandl added the comment: The culprit seems to be r83957, which was done to fix #2304. Assigning to Tim, who committed that revision. -- assignee: -> tim.golden nosy: +georg.brandl, tim.golden ___ Python tracker

[issue10618] regression in subprocess.call() command quoting

2010-12-03 Thread Georg Brandl
Georg Brandl added the comment: In util.system(), Mercurial adds its own pair of quotes: if os.name == 'nt': cmd = '"%s"' % cmd That will result in one level of quoting too much. Now it seems unfortunate that this change was done in a minor version. It is definitely a bug fix, but

[issue10618] regression in subprocess.call() command quoting

2010-12-03 Thread Dirkjan Ochtman
Dirkjan Ochtman added the comment: Ask, Jesse, sorry, I got confused about multiprocessing and subprocess. Taking you out of the nosy now. -- nosy: -asksol, jnoller ___ Python tracker ___

[issue2624] swig support in distutils should use the build and temp dirs

2010-12-03 Thread Jeff Laughlin
Changes by Jeff Laughlin : -- nosy: +Jeff.Laughlin ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.p

[issue1016626] distutils support for swig is under par

2010-12-03 Thread Jeff Laughlin
Changes by Jeff Laughlin : -- nosy: +Jeff.Laughlin ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mai

[issue9101] reference json format in file formats chapter

2010-12-03 Thread Łukasz Langa
Changes by Łukasz Langa : -- resolution: -> accepted stage: patch review -> committed/rejected status: open -> closed ___ Python tracker ___ _

[issue10367] "python setup.py sdist upload --show-response" can fail with "UnboundLocalError: local variable 'result' referenced before assignment"

2010-12-03 Thread Brian Curtin
Brian Curtin added the comment: > a test isn't actually needed for this patch. This is incorrect. -- nosy: +brian.curtin ___ Python tracker ___

[issue9101] reference json format in file formats chapter

2010-12-03 Thread Łukasz Langa
Łukasz Langa added the comment: Fixed in rev 86976. -- ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://m

[issue10367] "python setup.py sdist upload --show-response" can fail with "UnboundLocalError: local variable 'result' referenced before assignment"

2010-12-03 Thread Tarek Ziadé
Tarek Ziadé added the comment: Philip, Eric is currently assigned to this issue, and was working on a test, obviously. It means that commiting a fix without a test without asking him first is is quite rude. He and I are maintaining Distutils. Your help is welcome but please do not commit in

[issue10197] subprocess.getoutput fails on win32

2010-12-03 Thread Ned Deily
Ned Deily added the comment: See also Issue9922 -- nosy: +ned.deily ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscr

[issue10534] difflib.SequenceMatcher: expose junk sets, deprecate undocumented isb... functions.

2010-12-03 Thread Terry J. Reedy
Terry J. Reedy added the comment: Deprecated isbjunk and isbpopular methods, ran doc and unit tests, and committed as r87000. Still need to add 'gone in 3.3 test' when revise unittests. -- ___ Python tracker

[issue7904] urlparse.urlsplit mishandles novel schemes

2010-12-03 Thread Fred L. Drake, Jr.
Fred L. Drake, Jr. added the comment: Though msg104261 suggests this change be documented in NEWS.txt, it doesn't appear to have made it. Sure enough, we just found application code that this broke. -- nosy: +fdrake ___ Python tracker

[issue10367] "python setup.py sdist upload --show-response" can fail with "UnboundLocalError: local variable 'result' referenced before assignment"

2010-12-03 Thread Daniel Tavares
Daniel Tavares added the comment: I'll gladly work on the test, unless someone is working on it already. I apologize for not sending it originally along with the patch. Since Eric only requested the diff, I thought a test wasn't needed. Cheers, Daniel On Fri, Dec 3, 2010 at 1:58 PM, Tarek Ziad

[issue10367] "python setup.py sdist upload --show-response" can fail with "UnboundLocalError: local variable 'result' referenced before assignment"

2010-12-03 Thread Éric Araujo
Changes by Éric Araujo : Removed file: http://bugs.python.org/file19930/unnamed ___ Python tracker ___ ___ Python-bugs-list mailing list Unsub

[issue10615] Trivial mingw compile fixes

2010-12-03 Thread Martin v . Löwis
Martin v. Löwis added the comment: When the patch is applied, what's the resulting status of mingw compilation? -- nosy: +loewis ___ Python tracker ___ _

[issue10367] "python setup.py sdist upload --show-response" can fail with "UnboundLocalError: local variable 'result' referenced before assignment"

2010-12-03 Thread Éric Araujo
Éric Araujo added the comment: Thanks Daniel. The links in my last message should get you started, and any questions are welcome. You may be interested in this sprint: http://wiki.montrealpython.org/index.php/Packaging_no.10 I will be on IRC for some hours that night. -- stage: co

[issue10534] difflib.SequenceMatcher: expose junk sets, deprecate undocumented isb... functions.

2010-12-03 Thread Terry J. Reedy
Terry J. Reedy added the comment: News entry for both commits: r87001 -- ___ Python tracker ___ ___ Python-bugs-list mailing list Uns

[issue10615] Trivial mingw compile fixes

2010-12-03 Thread Roumen Petrov
Changes by Roumen Petrov : -- nosy: +rpetrov ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python

[issue10367] "python setup.py sdist upload --show-response" can fail with "UnboundLocalError: local variable 'result' referenced before assignment"

2010-12-03 Thread Phillip J. Eby
Phillip J. Eby added the comment: Whoops, my bad... I misread Eric's earlier message as throwing it back onto *Daniel* to produce a test, not that *he* (Eric) was working on the test. IOW, I thought that progress had been stalled a second time on this, and went ahead to pick up the slack. S

[issue10367] "python setup.py sdist upload --show-response" can fail with "UnboundLocalError: local variable 'result' referenced before assignment"

2010-12-03 Thread Éric Araujo
Éric Araujo added the comment: You understood right: I asked for a test using the mock PyPI server in distutils2. “I can’t do it” is a valid reply, in which case it would have been picked up by someone else or me. You could say that progress has stalled, but there was no urgency, given that

[issue10367] "python setup.py sdist upload --show-response" can fail with "UnboundLocalError: local variable 'result' referenced before assignment"

2010-12-03 Thread Tarek Ziadé
Tarek Ziadé added the comment: Ugh sorry I thought Eric was working on a test. I misunderstood. -- ___ Python tracker ___ ___ Python

[issue10619] Failed module loading in test discovery loses traceback

2010-12-03 Thread Michael Foord
New submission from Michael Foord : If a test module fails to load during unittest test discovery (SyntaxError or other exception) then the error is reported during the test run. Due to the way the exception is re-raised the traceback is lost. Originally reported as unittest2 issue 29: https:

[issue10620] `python -m uniittest` should work with file paths as well as test module names

2010-12-03 Thread Michael Foord
New submission from Michael Foord : Feature request against unittest2. Issue 18: https://code.google.com/p/unittest-ext/issues/detail?id=18 As providing a file path instead of module name to the unittest command line runner currently fails there is no backwards compatibility issue with making

[issue10619] Failed module loading in test discovery loses traceback

2010-12-03 Thread Éric Araujo
Changes by Éric Araujo : -- nosy: +eric.araujo ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.pyth

[issue10620] `python -m uniittest` should work with file paths as well as test module names

2010-12-03 Thread Éric Araujo
Changes by Éric Araujo : -- nosy: +eric.araujo ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.pyth

[issue10562] Change 'j' for imaginary unit into an 'i'

2010-12-03 Thread Raymond Hettinger
Changes by Raymond Hettinger : -- nosy: -rhettinger ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mai

[issue10620] `python -m uniittest` should work with file paths as well as test module names

2010-12-03 Thread Michael Foord
Michael Foord added the comment: Committed revision 87003. -- resolution: -> fixed stage: -> committed/rejected ___ Python tracker ___

[issue9101] reference json format in file formats chapter

2010-12-03 Thread Éric Araujo
Éric Araujo added the comment: Can you make the same addition in the docs of 3.1 and 2.7? -- ___ Python tracker ___ ___ Python-bugs-li

[issue6210] Exception Chaining missing method for suppressing context

2010-12-03 Thread Steven D'Aprano
Steven D'Aprano added the comment: It seems to me that an explicit raise inside an except block should *not* chain exceptions by default. The rationale for chaining exceptions is to detect bugs in the exception handler: try: something except SomeError: y = 1/x # oops, what happens wh

[issue10618] regression in subprocess.call() command quoting

2010-12-03 Thread Benjamin Peterson
Benjamin Peterson added the comment: 2010/12/3 Georg Brandl : > > Georg Brandl added the comment: > > In util.system(), Mercurial adds its own pair of quotes: > >    if os.name == 'nt': >        cmd = '"%s"' % cmd > > That will result in one level of quoting too much. > > Now it seems unfortuna

[issue10367] "python setup.py sdist upload --show-response" can fail with "UnboundLocalError: local variable 'result' referenced before assignment"

2010-12-03 Thread Phillip J. Eby
Phillip J. Eby added the comment: The urgency was only that I didn't want the other contributors to this issue to feel as though the bar on their contributions were being raised higher every time they jumped the previous bar. IOW, I did it to make them feel like somebody was doing *something*

[issue10557] Malformed error message from float()

2010-12-03 Thread Alexander Belopolsky
Alexander Belopolsky added the comment: Hopefully this is the last iteration before commit. As discussed, I took whitespace processing out of PyUnicode_TransformDecimalToASCII() and made it public. Whitespace conversion in int()/float()/complex() is repetitious and can be optimized by, for

[issue10557] Malformed error message from float()

2010-12-03 Thread Alexander Belopolsky
Alexander Belopolsky added the comment: Committed in revision 87007. As a bug fix, this needs to be backported to 3.1, but PyUnicode_TransformDecimalToASCII() should probably be renamed to _PyUnicode_TransformDecimalToASCII() to avoid introduction of a new feature. -- resolution: ->

[issue10534] difflib.SequenceMatcher: expose junk sets, deprecate undocumented isb... functions.

2010-12-03 Thread Eli Bendersky
Eli Bendersky added the comment: Terry, Attaching a patch with the following: 1. Added unittest assertions for bjunk and bpopular data attributes. 2. Minor markup & formatting fixes in one paragraph of the doc difflib.rst -- Added file: http://bugs.python.org/file19932/issue10534.2.p

<    1   2