[issue12428] functools test coverage

2011-07-30 Thread Brian Thorne
Brian Thorne hardb...@gmail.com added the comment: Cheers for the comments Eric. I've modified the patch accordingly. -- Added file: http://bugs.python.org/file22801/functools2.diff ___ Python tracker rep...@bugs.python.org

[issue12652] Move documentation of test.support into the devguide

2011-07-30 Thread Georg Brandl
Georg Brandl ge...@python.org added the comment: -1 from me as well. -- nosy: +georg.brandl ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue12652 ___

[issue11699] Doc for optparse.OptionParser.get_option_group is wrong

2011-07-30 Thread Georg Brandl
Georg Brandl ge...@python.org added the comment: It does make sense, please commit. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue11699 ___ ___

[issue670664] HTMLParser.py - more robust SCRIPT tag parsing

2011-07-30 Thread Ezio Melotti
Ezio Melotti ezio.melo...@gmail.com added the comment: As I said somewhere else, the only use case I can think of where the 'strict' flag is useful is validation, but AFAIK even in strict mode it's possible to parse non-valid documents, so I agree it's pretty useless. Moving to HTML5 and

[issue11797] 2to3 does not correct reload

2011-07-30 Thread Georg Brandl
Georg Brandl ge...@python.org added the comment: I sure didn't have anything to do with that file :) -- nosy: +georg.brandl ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue11797 ___

[issue9723] Add shlex.quote

2011-07-30 Thread Ezio Melotti
Ezio Melotti ezio.melo...@gmail.com added the comment: +_find_unsafe = re.compile(r'[^\w\d@%_\-\+=:,\./]').search \w already includes both \d and _, so (unless you really want to be explicit about it) they are redundant. Also keep in mind that they match non-ASCII letters/numbers on Python

[issue11699] Doc for optparse.OptionParser.get_option_group is wrong

2011-07-30 Thread Roundup Robot
Roundup Robot devn...@psf.upfronthosting.co.za added the comment: New changeset 5a248fcfa112 by Eli Bendersky in branch '2.7': Issue #11699: fix documentation of OptionParser.get_option_group. Patch by Petri Lehtinen http://hg.python.org/cpython/rev/5a248fcfa112 -- nosy: +python-dev

[issue12655] Expose sched.h functions

2011-07-30 Thread Charles-François Natali
Charles-François Natali neolo...@free.fr added the comment: I actually implemented this because I wanted to confine a Python process to a cpu to prevent keep it from being tossed from core to core. It made sense to bring the other scheduling functions along for the ride. Why didn't you use

[issue11699] Doc for optparse.OptionParser.get_option_group is wrong

2011-07-30 Thread Roundup Robot
Roundup Robot devn...@psf.upfronthosting.co.za added the comment: New changeset cfb60dfa7734 by Eli Bendersky in branch '3.2': Issue #11699: fix documentation of OptionParser.get_option_group. Patch by Petri Lehtinen http://hg.python.org/cpython/rev/cfb60dfa7734 New changeset 27b588dd6155 by

[issue11699] Doc for optparse.OptionParser.get_option_group is wrong

2011-07-30 Thread Eli Bendersky
Eli Bendersky eli...@gmail.com added the comment: Done. Petri - thanks for the contribution. -- resolution: - fixed status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue11699

[issue12658] Build fails in a non-checkout directory

2011-07-30 Thread Antoine Pitrou
Changes by Antoine Pitrou pit...@free.fr: -- nosy: pitrou priority: normal severity: normal status: open title: Build fails in a non-checkout directory ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue12658

[issue12658] Build fails in a non-checkout directory

2011-07-30 Thread Antoine Pitrou
Changes by Antoine Pitrou pit...@free.fr: -- resolution: - invalid status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue12658 ___

[issue11679] readline interferes with characters beginning with byte \xe9

2011-07-30 Thread Petri Lehtinen
Petri Lehtinen pe...@digip.org added the comment: You're binding the M-i keyboard sequence. Could it be that the \xe9 byte is translated by the terminal to M-i, and that causes the interference? In this case, it's not really a bug. -- nosy: +petri.lehtinen versions: +Python 2.7,

[issue11640] Shelve references globals in its __del__ method

2011-07-30 Thread Petri Lehtinen
Petri Lehtinen pe...@digip.org added the comment: The patch looks good to me. Is there any way this could be tested in the test suite? How to simulate interpreter shutdown? -- keywords: +needs review -patch nosy: +petri.lehtinen stage: - patch review

[issue12656] test.test_asyncore: add tests for AF_INET6 and AF_UNIX sockets

2011-07-30 Thread Charles-François Natali
Changes by Charles-François Natali neolo...@free.fr: Added file: http://bugs.python.org/file22802/test_ayncore.diff ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue12656 ___

[issue12656] test.test_asyncore: add tests for AF_INET6 and AF_UNIX sockets

2011-07-30 Thread Charles-François Natali
Changes by Charles-François Natali neolo...@free.fr: Removed file: http://bugs.python.org/file22795/test_ayncore.diff ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue12656 ___

[issue12626] run test cases based on a glob filter

2011-07-30 Thread Éric Araujo
Éric Araujo mer...@netwok.org added the comment: I didn’t think this would go into a stable version (see #10849 for example). -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue12626 ___

[issue12626] run test cases based on a glob filter

2011-07-30 Thread Antoine Pitrou
Antoine Pitrou pit...@free.fr added the comment: Well, let's say I don't consider test.regrtest, and especially its myriad options, a public API. The aim is to make bug diagnosis and fixing easier. -- ___ Python tracker rep...@bugs.python.org

[issue12657] Cannot override JSON encoding of basic type subclasses

2011-07-30 Thread Daniel Urban
Changes by Daniel Urban urban.dani...@gmail.com: -- nosy: +durban ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue12657 ___ ___ Python-bugs-list

[issue9723] Add shlex.quote

2011-07-30 Thread Éric Araujo
Éric Araujo mer...@netwok.org added the comment: \w already includes both \d and _, so (unless you really want to be explicit about it) they are redundant. [snip] I just started from the previous list and turned it into a regex. Eliminating redundancy sounds good, I’ll use your version.

[issue11699] Doc for optparse.OptionParser.get_option_group is wrong

2011-07-30 Thread Éric Araujo
Changes by Éric Araujo mer...@netwok.org: -- stage: patch review - committed/rejected ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue11699 ___ ___

[issue12531] documentation index entries for * and **

2011-07-30 Thread Éric Araujo
Changes by Éric Araujo mer...@netwok.org: -- stage: patch review - committed/rejected ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue12531 ___ ___

[issue10639] reindent.py should not convert newlines

2011-07-30 Thread Éric Araujo
Changes by Éric Araujo mer...@netwok.org: Removed file: http://bugs.python.org/file22798/unnamed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue10639 ___

[issue9968] cgi.FieldStorage: Give control about the directory used for uploads

2011-07-30 Thread Éric Araujo
Éric Araujo mer...@netwok.org added the comment: After pondering this for a while I think the simpler is the better and I propose to add documentation to inform the reader that changing the temp directory through os.environ of tempfile.tempdir might worth consideration. Okay. Your patch has

[issue11049] add tests for test.support

2011-07-30 Thread Éric Araujo
Changes by Éric Araujo mer...@netwok.org: -- nosy: +eric.araujo ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue11049 ___ ___ Python-bugs-list

[issue12659] Add tests for packaging.tests.support

2011-07-30 Thread Éric Araujo
New submission from Éric Araujo mer...@netwok.org: Packaging’s test support module should have tests. Using the “easy” keyword because I’m willing to review and commit partial patches by new contributors instead of waiting for one complete patch. -- assignee: tarek components:

[issue12655] Expose sched.h functions

2011-07-30 Thread Benjamin Peterson
Benjamin Peterson benja...@python.org added the comment: 2011/7/30 Charles-François Natali rep...@bugs.python.org: Charles-François Natali neolo...@free.fr added the comment: I actually implemented this because I wanted to confine a Python process to a cpu to prevent keep it from being

[issue12660] test_gdb fails when installed

2011-07-30 Thread Antoine Pitrou
New submission from Antoine Pitrou pit...@free.fr: test_gdb doesn't work from an installed Python 3.3. I suppose gdb fails finding the plugin file for the Python executable, although it manifests in quite mysterious ways. The log is rather large, I'm attaching it just in case. --

[issue12183] Document behaviour of shutil.copy2 and copystat with symlinks

2011-07-30 Thread Senthil Kumaran
Senthil Kumaran sent...@uthcode.com added the comment: When shutil.copy2 already says that it's behavior is equivalent to cp -p, will adding this sentence + Symbolic links are not preserved. The contents and metadata of the + linked files are copied instead. Not actively confuse the user?

[issue12648] Wrong import module search order on Windows

2011-07-30 Thread Nick Coghlan
Nick Coghlan ncogh...@gmail.com added the comment: It's actually the documentation that's slightly wrong in this case. On Windows, there is an additional import mechanism based on the Windows registry that is checked before the ordinary sys.path mechanism. (See

[issue12652] Keep test.support docs out of the global docs index

2011-07-30 Thread Nick Coghlan
Nick Coghlan ncogh...@gmail.com added the comment: Barry convinced me that the test.support docs need to stay in the same repo as the code they document, so -1 from me as well. Changed issue title to reflect the real problem that inspired this suggestion (i.e. test.support.unlink et al

[issue12652] Keep test.support docs out of the global docs index

2011-07-30 Thread Eli Bendersky
Eli Bendersky eli...@gmail.com added the comment: Nick, fair enough, but I think it would be more appropriate (and useful) to close this issue as rejected and open a new one. -- ___ Python tracker rep...@bugs.python.org

[issue12652] Keep test.support docs out of the global docs index

2011-07-30 Thread Georg Brandl
Georg Brandl ge...@python.org added the comment: Why is it more useful to open a new issue for the same problem? Nick: there is no such option right now, but I can customize our Sphinx build so that test.support is ignored when building the index. I'll do that if no better consensus is

[issue12652] Keep test.support docs out of the global docs index

2011-07-30 Thread Eli Bendersky
Eli Bendersky eli...@gmail.com added the comment: Georg, since the issue was originally opened to track the solution, not the problem, I just figured it may be useful to mention that this solution was rejected and close the issue, for better historical record. Otherwise some years from now no

[issue12661] [new function] shutil.cleartree

2011-07-30 Thread Leonid Vasilev
New submission from Leonid Vasilev vsleo...@gmail.com: Hello, This patch adds new function to shutil. I think it's quite generic, and it fits shutil purpose. Sample usage: shutil.cleartree(path='/home/chin/Dev/python-hg-dev', ignore=shutil.ignore_pattterns('*.py')) removes all files from

[issue12531] documentation index entries for * and **

2011-07-30 Thread Roundup Robot
Roundup Robot devn...@psf.upfronthosting.co.za added the comment: New changeset 8862ec62f9ee by Ezio Melotti in branch '3.2': #12531: Fix spaces and markup. http://hg.python.org/cpython/rev/8862ec62f9ee New changeset b47c9982506c by Ezio Melotti in branch 'default': #12531: merge with 3.2.

[issue11797] 2to3 does not correct reload

2011-07-30 Thread Laurie Clark-Michalek
Laurie Clark-Michalek bluepepp...@archlinux.us added the comment: Ah, that's my fault. As I mentioned, I simply replaced sys with imp and intern with reload from fix_intern.py. Seeing as the vast majority of the file was not modified, I didn't bother to change the copyright notices.

[issue12655] Expose sched.h functions

2011-07-30 Thread Benjamin Peterson
Changes by Benjamin Peterson benja...@python.org: Added file: http://bugs.python.org/file22805/sched_stuff.patch ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue12655 ___

[issue11651] Improve test targets in Makefile

2011-07-30 Thread Roundup Robot
Roundup Robot devn...@psf.upfronthosting.co.za added the comment: New changeset b76684d62a8d by Nadeem Vawda in branch 'default': Issue #11651: Improve Makefile test targets. http://hg.python.org/cpython/rev/b76684d62a8d -- nosy: +python-dev ___

[issue12661] [new function] shutil.cleartree

2011-07-30 Thread R. David Murray
R. David Murray rdmur...@bitdance.com added the comment: My immediate reaction is that this is too specialized. We'll see what others think. -- nosy: +r.david.murray ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue12661

[issue12661] [new function] shutil.cleartree

2011-07-30 Thread Senthil Kumaran
Senthil Kumaran sent...@uthcode.com added the comment: Cleartree seems more equivalent to a shell expression, as you pointed out to find and -delete,than a utility. We might find those useful when work on CLI as opposed to programmatically needing them via APIs. (Won't you agree?) Chin, can

[issue12661] Add a new shutil.cleartree function to shutil module

2011-07-30 Thread Senthil Kumaran
Changes by Senthil Kumaran sent...@uthcode.com: -- title: [new function] shutil.cleartree - Add a new shutil.cleartree function to shutil module ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue12661

[issue3177] Add shutil.open

2011-07-30 Thread Roman Evstifeev
Changes by Roman Evstifeev someuniquen...@gmail.com: -- nosy: +Roman.Evstifeev ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue3177 ___ ___

[issue10395] new os.path function to extract common prefix based on path components

2011-07-30 Thread Roman Evstifeev
Changes by Roman Evstifeev someuniquen...@gmail.com: -- nosy: +Roman.Evstifeev ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue10395 ___ ___

[issue12436] Provide reference to detailed installation instructions

2011-07-30 Thread Senthil Kumaran
Senthil Kumaran sent...@uthcode.com added the comment: I propose we close this, because it adds a little value as a separate bug. If there are specific sections in the docs that can be improved, we can deal with that. -- status: open - pending ___

[issue10087] HTML calendar is broken

2011-07-30 Thread Catherine Devlin
Catherine Devlin fredv8vi...@liquidid.net added the comment: Very simplistic patch to test_calendar.py that adds a test for this fix. This fails on the unpatched trunk b/c the unpatched output begins with bb'?xm instead of b?xml . Test needs a quick review... I'm not familiar with the