[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

[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: ->

[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

[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*

[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

[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

[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

[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 ___

[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 Éric Araujo
Changes by Éric Araujo : -- nosy: +eric.araujo ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.pyth

[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 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 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:

[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

[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 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

[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

[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

[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

[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
Changes by Éric Araujo : Removed file: http://bugs.python.org/file19930/unnamed ___ Python tracker ___ ___ Python-bugs-list mailing list Unsub

[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

[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

[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

[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

[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

[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 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
Changes by Łukasz Langa : -- resolution: -> accepted stage: patch review -> committed/rejected status: open -> closed ___ Python tracker ___ _

[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

[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

[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 ___

[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 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 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()

[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. >> > >

[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

[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

[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

[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

[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

[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 ___

[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

[issue10542] Py_UNICODE_NEXT and other macros for surrogates

2010-12-03 Thread Alexander Belopolsky
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. > As a data point, ICU defines U16_NEXT() for similar purpose. I also like ICU terminolo

[issue10497] Incorrect use of gettext in argparse

2010-12-03 Thread Éric Araujo
Éric Araujo added the comment: Fixed in r86984 (py3k) and r86990 (2.7). -- resolution: -> fixed stage: patch review -> committed/rejected status: pending -> closed ___ Python tracker _

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

2010-12-03 Thread Boštjan Mejak
Boštjan Mejak added the comment: Parens are okay then. Still, put spaces around operators. If 1 + 2j let the output be (1 + 2j)Please!!! -- Added file: http://bugs.python.org/file19929/unnamed ___ Python tracker

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

2010-12-03 Thread Antoine Pitrou
Changes by Antoine Pitrou : -- nosy: -pitrou ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.pytho

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

2010-12-03 Thread Terry J. Reedy
Changes by Terry J. Reedy : -- stage: commit review -> needs patch ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscrib

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

2010-12-03 Thread Terry J. Reedy
Terry J. Reedy added the comment: Added version-added and committed. r86983 -- ___ Python tracker ___ ___ Python-bugs-list mailing li

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

2010-12-03 Thread Mark Dickinson
Changes by Mark Dickinson : -- assignee: mark.dickinson -> nosy: -mark.dickinson ___ Python tracker ___ ___ Python-bugs-list mailing

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

2010-12-03 Thread Eric Pruitt
Changes by Eric Pruitt : -- nosy: -ericpruitt ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.pyth

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

2010-12-03 Thread Adam Byrtek
Changes by Adam Byrtek : -- nosy: -adambyrtek ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.pyth

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

2010-12-03 Thread James Eric Pruitt
James Eric Pruitt added the comment: > Also, why is the result put in parens? Without them, something like 'eval("100 * " + repr(imaginary))' would not work properly. -- nosy: +ericpruitt ___ Python tracker

[issue2690] Precompute range length and enhance range subscript support

2010-12-03 Thread Daniel Stutzbach
Daniel Stutzbach added the comment: The descriptions of range's limitations in the docs still needs an update. -- assignee: georg.brandl -> ncoghlan status: closed -> open ___ Python tracker ___

[issue10617] Collections ABCs can’t be linked to

2010-12-03 Thread Éric Araujo
New submission from Éric Araujo : ABCs in collections.rst are marked up with a class role, not a class directive, which means that constructs using the class role do not generate a link. -- assignee: d...@python components: Documentation messages: 123277 nosy: d...@python, eric.araujo p

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

2010-12-03 Thread Alexander Belopolsky
Changes by Alexander Belopolsky : -- nosy: -belopolsky ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://

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

2010-12-03 Thread Alexander Belopolsky
Changes by Alexander Belopolsky : Removed file: http://bugs.python.org/file19928/unnamed ___ Python tracker ___ ___ Python-bugs-list mailing l

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

2010-12-03 Thread Alexander Belopolsky
Changes by Alexander Belopolsky : Removed file: http://bugs.python.org/file19927/unnamed ___ Python tracker ___ ___ Python-bugs-list mailing l

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

2010-12-03 Thread Alexander Belopolsky
Alexander Belopolsky added the comment: > Alexander, is it possible to make an output like (1+2j) > be printed as (1 + 2j). Sure, and 'j' can be highlighted in red, but this is a job for a front-end or a custom display hook, not core python. You may want to take a look at ipython. > Also, wh

[issue10557] Malformed error message from float()

2010-12-03 Thread Alexander Belopolsky
Alexander Belopolsky added the comment: On Thu, Dec 2, 2010 at 9:53 PM, Alexander Belopolsky wrote: .. > .. The honest reason for the exclusion is that I gave up chasing a bug that > only shows > in full regrtest runs. I have realized where the problem was. PyUnicode_FromUnicode() "helpfully"

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

2010-12-03 Thread Boštjan Mejak
Boštjan Mejak added the comment: Alexander, is it possible to make an output like (1+2j) be printed as (1 + 2j). Also, why is the result put in parens? -- Added file: http://bugs.python.org/file19928/unnamed ___ Python tracker

[issue2690] Precompute range length and enhance range subscript support

2010-12-03 Thread Georg Brandl
Georg Brandl added the comment: I'm fine with it: as with the other changes for .count and .index, consistency with the protocols/ABCs the types are members of is not exclusively a new feature. -- status: open -> closed ___ Python tracker

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

2010-12-03 Thread Alexander Belopolsky
Alexander Belopolsky added the comment: On Fri, Dec 3, 2010 at 11:57 AM, Boštjan Mejak wrote: .. > Indeed. There should be spaces around all the operators. Even in my posted > example. Aim higher: we obviously want Python output look beautiful in print, so operands should be surrounded by U+20

[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: Committed Daniel's patch to r86978 in the 2.7 maintenance branch. (The 2.x trunk still has this bug, but is permanently closed to new checkins.) -- stage: needs patch -> committed/rejected versions: -3rd party, Python 3.1, Python 3.2

[issue10587] Document the meaning of str methods

2010-12-03 Thread Alexander Belopolsky
Alexander Belopolsky added the comment: As discussed in issue10610, it is important to keep the gory details in one place and refer to it throughout the manual. I think the Unicode terminology is best exposed in the unicodedata module documentation. For string character-type methods, I su

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

2010-12-03 Thread Boštjan Mejak
Boštjan Mejak added the comment: Indeed. There should be spaces around all the operators. Even in my posted example. -- Added file: http://bugs.python.org/file19927/unnamed ___ Python tracker

[issue2690] Precompute range length and enhance range subscript support

2010-12-03 Thread Nick Coghlan
Nick Coghlan added the comment: (Oops, didn't mean to reclose this yet) I want to wait for Georg's verdict on including the functionality in 3.2 before stressing too much about correct documentation of it :) -- assignee: -> georg.brandl status: closed -> open ___

[issue2690] Precompute range length and enhance range subscript support

2010-12-03 Thread Daniel Stutzbach
Daniel Stutzbach added the comment: > The descriptions of range's limitations there is no longer accurate > (slicing is supported following this patch and containment testing is > now efficient) Want to open a new issue for that? (or is there one already?) --

[issue10616] Change PyObject_AsCharBuffer() error message

2010-12-03 Thread STINNER Victor
STINNER Victor added the comment: > complex(): raise a better but incomplete error message on error > ("complex() arg is not a string"), incomplete because number is not > mentionned Fixed by r86977. -- ___ Python tracker

[issue10616] Change PyObject_AsCharBuffer() error message

2010-12-03 Thread STINNER Victor
STINNER Victor added the comment: See also #6780. -- ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://ma

[issue6780] startswith error message is incomplete

2010-12-03 Thread STINNER Victor
STINNER Victor added the comment: See also #10616. -- nosy: +haypo ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscrib

[issue10616] Change PyObject_AsCharBuffer() error message

2010-12-03 Thread STINNER Victor
New submission from STINNER Victor : b'abc'.partition(':') raises a confusing TypeError('expected an object with the buffer interface'): what is a buffer? what is the buffer interface? The error comes from PyObject_AsCharBuffer() which is used by: - bytes methods: partition, rpartition, find,

[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: Given that this is a pure bugfix to revert a problem in 2.7 -- where no *new* development is being done -- a test isn't actually needed for this patch. There is no point in holding up a distutils1 fix for distutils2's benefit. Daniel: thanks for the patch, i

[issue2690] Precompute range length and enhance range subscript support

2010-12-03 Thread Nick Coghlan
Nick Coghlan added the comment: Daniel Stutzbach pointed out that range() is also mentioned under: http://docs.python.org/dev/library/stdtypes.html#sequence-types-str-bytes-bytearray-list-tuple-range The descriptions of range's limitations there is no longer accurate (slicing is supported foll

[issue10557] Malformed error message from float()

2010-12-03 Thread Alexander Belopolsky
Alexander Belopolsky added the comment: On Fri, Dec 3, 2010 at 4:45 AM, Marc-Andre Lemburg wrote: .. >> On Thu, Dec 2, 2010 at 4:34 PM, Marc-Andre Lemburg >> wrote: >> .. >>>  * Please change the API _PyUnicode_NormalizeDecimal() to >>>   PyUnicode_ConvertToASCIIDecimal() - that's closer to wh

[issue2690] Precompute range length and enhance range subscript support

2010-12-03 Thread Nick Coghlan
Nick Coghlan added the comment: On Sat, Dec 4, 2010 at 2:26 AM, Daniel Stutzbach wrote: > > Daniel Stutzbach added the comment: > >> (I also noticed that the new methods from issue #9213 are not mentioned >> in the range() docs > > Wasn't that fixed in Issue9746? Ah, I see what you mean. I wa

[issue10499] Modular interpolation in configparser

2010-12-03 Thread Łukasz Langa
Łukasz Langa added the comment: Committed in rev 86976. -- resolution: -> accepted stage: patch review -> committed/rejected status: open -> closed ___ Python tracker ___ _

[issue2690] Precompute range length and enhance range subscript support

2010-12-03 Thread Daniel Stutzbach
Daniel Stutzbach added the comment: > (I also noticed that the new methods from issue #9213 are not mentioned > in the range() docs Wasn't that fixed in Issue9746? -- ___ Python tracker ___

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

2010-12-03 Thread Adam Byrtek
Adam Byrtek added the comment: What happened with "there should be one-- and preferably only one --obvious way to do it"? -- nosy: +adambyrtek ___ Python tracker ___ __

[issue2001] Pydoc interactive browsing enhancement

2010-12-03 Thread Nick Coghlan
Nick Coghlan added the comment: Oh, that would be Éric's point 4 that I fixed. OK, no need to create a new issue for that one then :) -- ___ Python tracker ___ _

[issue2001] Pydoc interactive browsing enhancement

2010-12-03 Thread Nick Coghlan
Nick Coghlan added the comment: r86975 should fix the problem with Windows paths. I also found an issue where many of the emitted HTML pages contained two HTML header sections. The tests were just written in a way that they only looked at the second of these header sections, while my browser

[issue10576] Add a progress callback to gcmodule

2010-12-03 Thread Jim Jewett
Jim Jewett added the comment: Does anyone think that it is simpler to register two different callbacks than one? Moderately, yes. Functions that actually help with cleanup should normally be run only in one phase; it is just stats-gathering and logging functions that might run both times,

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

2010-12-03 Thread Michael Foord
Changes by Michael Foord : -- nosy: -michael.foord ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail

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

2010-12-03 Thread Georg Brandl
Changes by Georg Brandl : Removed file: http://bugs.python.org/file19925/unnamed ___ Python tracker ___ ___ Python-bugs-list mailing list Unsu

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

2010-12-03 Thread Georg Brandl
Changes by Georg Brandl : -- nosy: -georg.brandl ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.p

[issue10360] _weakrefset.WeakSet.__contains__ should not propagate TypeErrors

2010-12-03 Thread Georg Brandl
Georg Brandl added the comment: Don't worry, it will be ported. -- status: open -> closed ___ Python tracker ___ ___ Python-bugs-list

[issue2001] Pydoc interactive browsing enhancement

2010-12-03 Thread Nick Coghlan
Nick Coghlan added the comment: Added the missing CSS file in r86971. Hopefully that will make the buildbots a little happier. -- ___ Python tracker ___

[issue2690] Precompute range length and enhance range subscript support

2010-12-03 Thread Nick Coghlan
Nick Coghlan added the comment: I brought the patch up to date for the Py3k branch, but realised just before checking it in that it may run afoul of the language moratorium (since it alters the behaviour of builtin range objects). However, the .count() and .index() methods (along with the Seq

[issue10360] _weakrefset.WeakSet.__contains__ should not propagate TypeErrors

2010-12-03 Thread Tres Seaver
Tres Seaver added the comment: This fix needs backporting to the 3.1 and 2.7 branches as well. -- status: closed -> open ___ Python tracker ___ _

[issue2380] Raise a Py3K warning for catching nested tuples with non-BaseException exceptions

2010-12-03 Thread Antoine Pitrou
Antoine Pitrou added the comment: Not all incompatibilities have to raise a py3k warnings; AFAIK, only those which are not handled by 2to3 do. -- nosy: +benjamin.peterson, pitrou ___ Python tracker ___

[issue1486713] HTMLParser : A auto-tolerant parsing mode

2010-12-03 Thread R. David Murray
R. David Murray added the comment: A note for the curious: I changed the keyword name from 'tolerant' to 'strict' because the stdlib has other examples of 'strict' as a keyword, but the word 'tolerant' appears nowhere in the documentation and certainly not as a keyword. So it seemed better t

[issue10197] subprocess.getoutput fails on win32

2010-12-03 Thread R. David Murray
R. David Murray added the comment: Ah, I did not realize that getstatusoutput was implemented using os.popen. I thought it already used Popen. Now, in python3, os.popen is in turn implemented using subprocess.Popen, so removing that level of indirection seems sensible. The question that re

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

2010-12-03 Thread Brian Curtin
Changes by Brian Curtin : -- nosy: -brian.curtin ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.p

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

2010-12-03 Thread Boštjan Mejak
Boštjan Mejak added the comment: Please make the tokenizer surround spaces around operators. So the output would be like in the example below: (1 + 2j) (1 + 2j) -- Added file: http://bugs.python.org/file19925/unnamed ___ Python tracker

[issue10478] Ctrl-C locks up the interpreter

2010-12-03 Thread STINNER Victor
STINNER Victor added the comment: Ok, so +1 to apply immediatly your patch which "fixes" the deadlock. If someone is motived to make Buffered* classes reentrant, (s)he can remove this exception. io and signal documentation should also be improved to indicate that using buffered I/O in a signa

[issue10478] Ctrl-C locks up the interpreter

2010-12-03 Thread Antoine Pitrou
Antoine Pitrou added the comment: > This issue remembers me #3618 (opened 2 years ago): I proposed to use > RLock instead of Lock, but RLock was implemented in Python and were > too slow. Today, we have RLock implemented in C and it may be possible > to use them. Would it solve this issue? I th

[issue10478] Ctrl-C locks up the interpreter

2010-12-03 Thread STINNER Victor
Changes by STINNER Victor : -- Removed message: http://bugs.python.org/msg123242 ___ Python tracker ___ ___ Python-bugs-list mailing l

[issue10478] Ctrl-C locks up the interpreter

2010-12-03 Thread STINNER Victor
STINNER Victor added the comment: This issue remembers me #3618 (opened 2 years ago): I proposed to use RLock instead of Lock, but RLock was implemented in Python and were too slow. Today, we have RLock implemented in C and it may be possible to use them. Would it solve this issue? -- There

[issue10478] Ctrl-C locks up the interpreter

2010-12-03 Thread STINNER Victor
STINNER Victor added the comment: This issue remembers me #3618 (opened 2 years ago): I proposed to use RLock instead of Lock, but RLock was implemented in Python and were too slow. Today, we have RLock implemented in C and it may be possible to use them. Would it solve this issue? -- There

[issue10557] Malformed error message from float()

2010-12-03 Thread Mark Dickinson
Mark Dickinson added the comment: > According to comments in the code and verified by inspection, > PyOS_string_to_double does not accept any whitespace. Bah. You're right, of course. :-) Any whitespace (post PyUnicode_EncodeDecimal) is handled in PyFloat_FromString, using Py_ISSPACE.

  1   2   >