[issue444582] Finding programs in PATH, addition to os

2009-11-22 Thread Brian Curtin
Brian Curtin added the comment: Here is a patch against r76432 which implements a "which" generator function in shutil that yields full file paths where the searched file exists on the PATH. Includes doc change and a test. It is pretty similar to what edemaine had suggested. This could just as

[issue7376] FAIL: Doctest: __main__.DebugRunner

2009-11-22 Thread Alexander Belopolsky
Alexander Belopolsky added the comment: Apparently this was introduced with r51625 : r51625 | guido.van.rossum | 2006-08-26 16:37:44 -0400 (Sat, 26 Aug 2006) | 4 lines Inspired by SF patch #860326, make the exception formatting by traceback.py be closer to the built-in formatting. A few unitt

[issue7377] Slight difference: math.floor returns an Integral

2009-11-22 Thread R. David Murray
R. David Murray added the comment: Fixed in r76448 and r76449. Thanks for pointing this out. -- nosy: +r.david.murray priority: -> normal resolution: -> fixed stage: -> committed/rejected status: open -> closed type: -> behavior ___ Python track

[issue1169193] Handle ungzipped man pages in rpm builds correctly

2009-11-22 Thread Dave Malcolm
Changes by Dave Malcolm : -- nosy: +dmalcolm ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.pyth

[issue7373] Use PyModule_AddIntMacro() in Modules/gcmodule.c

2009-11-22 Thread Benjamin Peterson
Changes by Benjamin Peterson : -- resolution: -> works for me status: open -> closed ___ Python tracker ___ ___ Python-bugs-list maili

[issue7369] Fibonacci example does not include 0; section 4.6

2009-11-22 Thread Senthil Kumaran
Senthil Kumaran added the comment: Terry: Oh, sorry. Now I get what you meant by "Prepend O to output line". That is, Output line from the fib, as part of the patch. The changes need to be done at 3 places. Section 3.2, twice in Section 4.6. -- ___

[issue7375] 2to3 - does not translate urllib2 to urllib.request correctly for function/method argument

2009-11-22 Thread Benjamin Peterson
Benjamin Peterson added the comment: Fixed in r76447. -- resolution: -> fixed status: open -> closed ___ Python tracker ___ ___ Pytho

[issue7369] Fibonacci example does not include 0; section 4.6

2009-11-22 Thread Terry J. Reedy
Terry J. Reedy added the comment: Senthil: look again. The OP's suggestion *is* to prepend a 0 to the current 1 1 2 3 5 8 13 21 34 55 89 144 233 377 610 987 1597 I just specified the delta between current and suggested, should someone decide to make the change. That said, def fib2(n), a little

[issue7173] Cython compiler run crashes CPython 3.1.1 and 3.2

2009-11-22 Thread Amaury Forgeot d'Arc
Amaury Forgeot d'Arc added the comment: I reproduce the crash on Linux. Some debug prints showed that the failing exception object is "tp_clear'ed", because it belongs to a reference cycle. Now if it is cleared it should not be reachable... -- ___

[issue6123] tarfile: opening an empty tar file fails

2009-11-22 Thread Lars Gustäbel
Lars Gustäbel added the comment: I have checked in a fix for this problem: trunk (r76443) and py3k (r76444). Thank you very much for your report. Sorry that it took that long to get it fixed. -- resolution: -> accepted status: open -> closed ___ Py

[issue7377] Slight difference: math.floor returns an Integral

2009-11-22 Thread flox
New submission from flox : The last code snippet on section "25.2.3.2 How are Docstring Examples Recognized?" does not output the expected result. http://docs.python.org/dev/py3k/library/doctest.html#how-are-docstring-examples-recognized Documentation example: >>> assert "Easy!"

[issue7376] FAIL: Doctest: __main__.DebugRunner

2009-11-22 Thread flox
New submission from flox : Running on Debian Lenny, with Python 3.1. The Python 2.5 version is OK. ~ $ python3 --version Python 3.1.1+ ~ $ python3 -m doctest F.. == FAIL: Doctest: __main__.DebugRunner ---

[issue7369] Fibonacci example does not include 0; section 4.6

2009-11-22 Thread Senthil Kumaran
Senthil Kumaran added the comment: tjreedy: The reporter's suggestion seems fine. Prepending a 0 does not seem to be a good idea. -- nosy: +orsenthil ___ Python tracker ___ _

[issue7173] Cython compiler run crashes CPython 3.1.1 and 3.2

2009-11-22 Thread Amaury Forgeot d'Arc
Amaury Forgeot d'Arc added the comment: Sorry, my mistake. Now the prints are there, but the test run without error: Running tests against Cython 0.12.rc1 Python 3.2a0 (py3k, Nov 22 2009, 12:04:23) [MSC v.1500 32 bit (Intel)] HERE1 (None, None, None) HERE2 HERE1 (None, None, None) HERE2 HERE1

[issue7375] 2to3 - does not translate urllib2 to urllib.request correctly for function/method argument

2009-11-22 Thread Senthil Kumaran
Changes by Senthil Kumaran : -- components: +2to3 (2.x to 3.0 conversion tool) ___ Python tracker ___ ___ Python-bugs-list mailing list

[issue7375] 2to3 - does not translate urllib2 to urllib.request correctly for function/method argument

2009-11-22 Thread Senthil Kumaran
New submission from Senthil Kumaran : 2.x code: import urllib2 opener = urllib2.build_opener(urllib2.HTTPHandler(debuglevel=1)) 2to3 on this would result in: import urllib.request, urllib.error, urllib.parse opener = urllib.request.build_opener(urllib2.HTTPHandler(debuglevel=1)) which is wron

[issue5007] urllib2 HTTPS connection failure (BadStatusLine Exception)

2009-11-22 Thread Senthil Kumaran
Senthil Kumaran added the comment: This bug is not reproducible in trunk, py3k and is not reproducible in py26 releases too. I tried to hunt down if any changes in the code-line from py2.5 to py2.6 had effect on the behavior mention (BadStatusLine) , but don't see any. I am closing this as wor

[issue6454] Add "example" keyword argument to optparse constructor

2009-11-22 Thread Greg Ward
Greg Ward added the comment: > but I feel there is a better and more general > solution - just provide some minimal formatting for description: treat > empty line as paragraph separator. Then I would be able to add example > or anything else to the description formatting it as necessary Agreed.

[issue7173] Cython compiler run crashes CPython 3.1.1 and 3.2

2009-11-22 Thread Stefan Behnel
Stefan Behnel added the comment: The patch is supposed to apply near the end of the class TreeAssertVisitor at the end of the file Cython/TestUtils.py, not in the class NodeTypeWriter. And the test doesn't run (or even import) the extension, it just builds it. -- _

[issue7374] Property accessor/getter called twice

2009-11-22 Thread Michal Liddle
Michal Liddle added the comment: Right you are. Looks like its actually an IPython specific behaviour here (didn't think to check that in the first place, sorry). -- ___ Python tracker _

[issue7173] Cython compiler run crashes CPython 3.1.1 and 3.2

2009-11-22 Thread Amaury Forgeot d'Arc
Amaury Forgeot d'Arc added the comment: I don't reproduce the problem on Windows. But the class NodeTypeWriter is not even used at all; did I miss something? The test builds a python extension and runs it, successfully it seems. -- nosy: +amaury.forgeotdarc __

[issue7374] Property accessor/getter called twice

2009-11-22 Thread Raymond Hettinger
Raymond Hettinger added the comment: Tried your snippet with both py2.5 and py2.6. It works as expected (one get and one set). -- nosy: +rhettinger resolution: -> works for me status: open -> closed ___ Python tracker

[issue7374] Property accessor/getter called twice

2009-11-22 Thread Michal Liddle
New submission from Michal Liddle : The following snippet demonstrates the problem: - class Test(object): def get(self): print "get" def set(self, v): print "set" test = property(get, set) t = Test() t.test t.test = 3 -