[issue10966] eliminate use of ImportError implicitly representing SkipTest

2011-02-10 Thread Brett Cannon
Brett Cannon added the comment: New patch which makes test_pipes back into an explicit skip if os.name !+ posix and makes test_sqlite optional on all platforms. -- Added file: http://bugs.python.org/file20737/issue10966.diff ___ Python tracker

[issue11071] What's New review comments

2011-02-10 Thread Raymond Hettinger
Raymond Hettinger added the comment: Victor, I don't think that would be useful in the Whatsnew document. That PEP was really about letting other implementations get caught-up. It has nearly zero relevance to users of CPython. -- ___ Python track

[issue11179] ccbench doesn't work on 3.1/2.7

2011-02-10 Thread Antoine Pitrou
New submission from Antoine Pitrou : The ccbench shipped with 3.2 is supposed to work with older versions but: Traceback (most recent call last): File "/home/antoine/py3k/py3k/Tools/ccbench/ccbench.py", line 609, in main() File "/home/antoine/py3k/py3k/Tools/ccbench/ccbench.py", line 56

[issue7997] http://www.python.org/dev/faq/ doesn't seem to explain how to regenerate "configure"

2011-02-10 Thread Antoine Pitrou
Antoine Pitrou added the comment: > Python's "configure.in" script typically requires a specific version of > > autoconf. At the moment, this reads: > version_required(2.61) This is a bit outdated. Right now we only have: AC_PREREQ(2.65) which IIUC means 2.65 or higher. > Do not edit "c

[issue11176] give more meaningful argument names in argparse documentation

2011-02-10 Thread Westley Martínez
Westley Martínez added the comment: I agree; it's too artsy. I'll see if I can come up with a relevant and clever alternative. -- nosy: +anikom15 ___ Python tracker ___ ___

[issue11116] mailbox and email errors

2011-02-10 Thread R. David Murray
R. David Murray added the comment: Here is the promised patch, with tests. For once writing the patch was harder than writing the tests, but only just :) I'm not sure all the 100% sure the cleanups will work on all systems (I'm looking at you, Windows), but since any problems will occur in a

[issue11180] More efficient nlargest()/nsmallest()

2011-02-10 Thread newacct
New submission from newacct : heapq.nlargest()/nsmallest() currently use a size-k heap to get the k largest/smallest items. This takes O(n log k): heapifying the first k elements (O(k)); iterating through (n-k) elements of the list, each insertion/deletion takes O(log k), for O((n-k)log k); an

[issue11180] More efficient nlargest()/nsmallest()

2011-02-10 Thread R. David Murray
Changes by R. David Murray : -- nosy: +rhettinger ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.p

[issue11180] More efficient nlargest()/nsmallest()

2011-02-10 Thread Benjamin Peterson
Benjamin Peterson added the comment: I think you should implement and benchmark one of them. I'm dubious that the better asymptotic values will really translate into better performance. For example, the O(n) median selection algorithm has a large constant factor associated with it. -

[issue7330] PyUnicode_FromFormat segfault

2011-02-10 Thread Ray.Allen
Ray.Allen added the comment: Here's the complete patch, added unittest for width modifier and precision modifier for '%s' formatter of PyUnicode_FromFormat() function. -- Added file: http://bugs.python.org/file20739/issue_7330.diff ___ Python tracke

[issue11181] TLS end connection not detected properly in retrbinary

2011-02-10 Thread Adi Roiban
New submission from Adi Roiban : FTP_TLS.retrybinary should detect the end of a TLS read in the same way as FTP.TLS_retryline does. it should be something like this... catching ssl.ZeroReturnError as a valid expection for signaling EOF. try: data =

[issue11082] ValueError: Content-Length should be specified

2011-02-10 Thread Senthil Kumaran
Senthil Kumaran added the comment: Here is the patch with addressing the comments. 1. It should be TypeError instead of ValueError when str is rejected. We introduced ValueError for this release only, so there is no breakage here. 2. Informed the user that string should be encoded to bytes usin

[issue11082] ValueError: Content-Length should be specified

2011-02-10 Thread Senthil Kumaran
Changes by Senthil Kumaran : Removed file: http://bugs.python.org/file20740/Issue11082-2.patch ___ Python tracker ___ ___ Python-bugs-list mai

[issue11082] ValueError: Content-Length should be specified

2011-02-10 Thread Senthil Kumaran
Senthil Kumaran added the comment: patch with Docs :ref: to proper section. -- Added file: http://bugs.python.org/file20741/issue11082-2.diff ___ Python tracker ___

[issue9298] binary email attachment issue with base64 encoding

2011-02-10 Thread Yves Dorfsman
Yves Dorfsman added the comment: Test if email.encoders.encode_base64 returns a single line string, or a string broken up in 76 chars line, as per RFC. -- Added file: http://bugs.python.org/file20742/issue9298-test.py ___ Python tracker

[issue9298] binary email attachment issue with base64 encoding

2011-02-10 Thread Yves Dorfsman
Yves Dorfsman added the comment: Replaces b64encode by encodebytes. -- keywords: +patch Added file: http://bugs.python.org/file20743/issue9298.patch ___ Python tracker ___ __

[issue11182] pydoc.Scanner class not used by anything

2011-02-10 Thread Ron Adam
New submission from Ron Adam : There doesn't seem to be any references to it in any other part of pydoc, or the Library for that matter. Searching for it on google code search (and also google web search) only turns up auto generated API references for python editing tools like VIM, and of co

[issue11116] mailbox and email errors

2011-02-10 Thread Georg Brandl
Georg Brandl added the comment: Hmm, is "except Exception" the right thing to use here? The "finally" before executed for really all exceptions. Otherwise, this can go in. -- ___ Python tracker

[issue11082] ValueError: Content-Length should be specified

2011-02-10 Thread Georg Brandl
Georg Brandl added the comment: I still find "user-specified encoding" unclear. This can be addressed at a different time though. Your exception message is missing a space between "bytes" and "or"; otherwise this is ok to commit. -- ___ Python tr

<    1   2