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

2011-07-30 Thread Leonid Vasilev
Leonid Vasilev added the comment: Added file with sample usage (extracted from real application). the main purpose of shutil.cleartree() is to remove unnecessary files from tree, where patterns of ignored or deleted files are computed dynamically. Yes I agree, that it might be done by shell ex

[issue10087] HTML calendar is broken

2011-07-30 Thread Catherine Devlin
Catherine Devlin 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 b"b'http://bugs.python.org/file22806/test_calendar_byteoutput.patch ___ Pytho

[issue12436] Provide reference to detailed installation instructions

2011-07-30 Thread Senthil Kumaran
Senthil Kumaran 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 ___ Python tracker

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

2011-07-30 Thread Roman Evstifeev
Changes by Roman Evstifeev : -- nosy: +Roman.Evstifeev ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://m

[issue3177] Add shutil.open

2011-07-30 Thread Roman Evstifeev
Changes by Roman Evstifeev : -- nosy: +Roman.Evstifeev ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://ma

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

2011-07-30 Thread Senthil Kumaran
Changes by Senthil Kumaran : -- title: [new function] shutil.cleartree -> Add a new shutil.cleartree function to shutil module ___ Python tracker ___ ___

[issue12661] [new function] shutil.cleartree

2011-07-30 Thread Senthil Kumaran
Senthil Kumaran 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 you suggest certain u

[issue12661] [new function] shutil.cleartree

2011-07-30 Thread R. David Murray
R. David Murray added the comment: My immediate reaction is that this is too specialized. We'll see what others think. -- nosy: +r.david.murray ___ Python tracker ___

[issue11651] Improve test targets in Makefile

2011-07-30 Thread Roundup Robot
Roundup Robot 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 ___ Python tracker

[issue12655] Expose sched.h functions

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

[issue11797] 2to3 does not correct "reload"

2011-07-30 Thread Laurie Clark-Michalek
Laurie Clark-Michalek 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. -- __

[issue12531] documentation index entries for * and **

2011-07-30 Thread Roundup Robot
Roundup Robot 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. http://hg.python.org/cpython/rev/b47c

[issue12661] [new function] shutil.cleartree

2011-07-30 Thread Leonid Vasilev
New submission from Leonid Vasilev : 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 path, except *.py file

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

2011-07-30 Thread Eli Bendersky
Eli Bendersky 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 one will remembe

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

2011-07-30 Thread Georg Brandl
Georg Brandl 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 reached on python-dev

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

2011-07-30 Thread Eli Bendersky
Eli Bendersky 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

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

2011-07-30 Thread Nick Coghlan
Nick Coghlan 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 appearing in the docs ind

[issue12648] Wrong import module search order on Windows

2011-07-30 Thread Nick Coghlan
Nick Coghlan 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 http://docs.python.org/library/pkgutil#pkgutil.ite

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

2011-07-30 Thread Senthil Kumaran
Senthil Kumaran 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? Because cp -p's be

[issue12660] test_gdb fails when installed

2011-07-30 Thread Antoine Pitrou
New submission from Antoine Pitrou : 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. -- assignee: dmalcolm

[issue12655] Expose sched.h functions

2011-07-30 Thread Benjamin Peterson
Benjamin Peterson added the comment: 2011/7/30 Charles-François Natali : > > Charles-François Natali 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 t

[issue12659] Add tests for packaging.tests.support

2011-07-30 Thread Éric Araujo
New submission from Éric Araujo : 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: Distutils2 keywords: easy

[issue11049] add tests for test.support

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

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

2011-07-30 Thread Éric Araujo
Éric Araujo 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 this doc chan

[issue10639] reindent.py should not convert newlines

2011-07-30 Thread Éric Araujo
Changes by Éric Araujo : Removed file: http://bugs.python.org/file22798/unnamed ___ Python tracker ___ ___ Python-bugs-list mailing list Unsub

[issue12531] documentation index entries for * and **

2011-07-30 Thread Éric Araujo
Changes by Éric Araujo : -- stage: patch review -> committed/rejected ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubsc

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

2011-07-30 Thread Éric Araujo
Changes by Éric Araujo : -- stage: patch review -> committed/rejected ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubsc

[issue9723] Add shlex.quote

2011-07-30 Thread Éric Araujo
Éric Araujo 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. > Also keep in mind

[issue12657] Cannot override JSON encoding of basic type subclasses

2011-07-30 Thread Daniel Urban
Changes by Daniel Urban : -- nosy: +durban ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.o

[issue12626] run test cases based on a glob filter

2011-07-30 Thread Antoine Pitrou
Antoine Pitrou 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 ___

[issue12626] run test cases based on a glob filter

2011-07-30 Thread Éric Araujo
Éric Araujo added the comment: I didn’t think this would go into a stable version (see #10849 for example). -- ___ Python tracker ___ ___

[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 : Removed file: http://bugs.python.org/file22795/test_ayncore.diff ___ Python tracker ___ ___ Python-bugs-l

[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 : Added file: http://bugs.python.org/file22802/test_ayncore.diff ___ Python tracker ___ ___ Python-bugs-lis

[issue11640] Shelve references globals in its __del__ method

2011-07-30 Thread Petri Lehtinen
Petri Lehtinen 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 ___ Python t

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

2011-07-30 Thread Petri Lehtinen
Petri Lehtinen 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, Python 3.2, Python 3.

[issue12658] Build fails in a non-checkout directory

2011-07-30 Thread Antoine Pitrou
Changes by Antoine Pitrou : -- resolution: -> invalid status: open -> closed ___ Python tracker ___ ___ Python-bugs-list mailing list

[issue12658] Build fails in a non-checkout directory

2011-07-30 Thread Antoine Pitrou
Changes by Antoine Pitrou : -- nosy: pitrou priority: normal severity: normal status: open title: Build fails in a non-checkout directory ___ Python tracker ___ _

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

2011-07-30 Thread Eli Bendersky
Eli Bendersky added the comment: Done. Petri - thanks for the contribution. -- resolution: -> fixed status: open -> closed ___ Python tracker ___

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

2011-07-30 Thread Roundup Robot
Roundup Robot 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 Eli Bendersky in branch 'default':

[issue12655] Expose sched.h functions

2011-07-30 Thread Charles-François Natali
Charles-François Natali 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 something lik

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

2011-07-30 Thread Roundup Robot
Roundup Robot 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 __

[issue9723] Add shlex.quote

2011-07-30 Thread Ezio Melotti
Ezio Melotti 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 3. '+' and '.' don't nee

[issue11797] 2to3 does not correct "reload"

2011-07-30 Thread Georg Brandl
Georg Brandl added the comment: I sure didn't have anything to do with that file :) -- nosy: +georg.brandl ___ Python tracker ___ ___

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

2011-07-30 Thread Ezio Melotti
Ezio Melotti 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 offering something able t

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

2011-07-30 Thread Georg Brandl
Georg Brandl added the comment: It does make sense, please commit. -- ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubs

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

2011-07-30 Thread Georg Brandl
Georg Brandl added the comment: -1 from me as well. -- nosy: +georg.brandl ___ Python tracker ___ ___ Python-bugs-list mailing list U