[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
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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 to parse real-world HTML seems the 
way to go IMHO.

--

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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 

___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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 need to be escaped in a character class (i.e. [...]), because 
they lose their meta-characters meaning there.
'-' is correctly escaped there, but it's common practice to place it at the end 
of the character class, where it doesn't need escaping.

r'[^\w\d@%_\-\+=:,\./]' and r'[^\w@%+=:,./-]' should therefore be equivalent.

--

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



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

$ taskset  python myscript.py

By the way, binding a multi-threaded Python process to a single core
is often a simple way to improve performance, because with the GIL the
threads are actually serialized, so you have almost no contention, and
your threads get hot cache.

--

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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':
Merge 3.2: Issue #11699: fix documentation of OptionParser.get_option_group. 
Patch by Petri Lehtinen
http://hg.python.org/cpython/rev/27b588dd6155

--

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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 

___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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 

___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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.3 -Python 2.6, Python 3.1

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



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

___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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 

___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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 

___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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 that they match non-ASCII letters/numbers on
> Python 3.
This was not covered by the previous tests, but I think it’s fine: the shell is 
concerned about some metacharacters and spaces, not Unicode letters.  To be 
100% sure, I will add tests with Unicode characters for pipes.quote in 3.2, and 
when merging with 3.3 I’ll know if the new code still complies.

--
stage: committed/rejected -> test needed
status: closed -> open

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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 change and also code changes.

I’ve read in the tempfile module docstring that in order to control the 
directory, you have to set tempfile.tempdir before calling any tempfile 
function.  I suspect this will not be okay for some applications.  I wonder if 
the same limitation applies when one sets os.environ['TMP'].

In the light of that, do you think the tempfile solution is enough, or do you 
want to get back to the earlier idea of adding an argument to FieldStorage?

(One advantage of doc changes is that they can get committed to 2.7, 3.2 and 
3.3 and get published immediately.  We can anyway make a code change in 3.3 and 
a doc change for older versions.)

> As for other use cases for changing the temp directory, I thought
> about letting the user choose the FS of its choice with regard to
> performance or security (crypted FS) or even having the temp files
> created in a directory with 700 permissions.
Excellent use cases.

> I fiddled last night with setting an environment to deploy and test a
> patched Python
Are you aware of the developers’ guide?  http://docs.python.org/devguide/

> (I had some problem to understand what happened when I encountered
> 6755).
What is 6755?

--
title: Let cgi.FieldStorage have named uploaded file -> cgi.FieldStorage: Give 
control about the directory used for uploads

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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
messages: 141441
nosy: alexis, eric.araujo, tarek
priority: normal
severity: normal
stage: needs patch
status: open
title: Add tests for packaging.tests.support
versions: Python 3.3

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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 the other scheduling functions along for the ride.
>
> Why didn't you use something like:
>
> $ taskset  python myscript.py

Because I didn't want to type that every time I ran the script.

>
> By the way, binding a multi-threaded Python process to a single core
> is often a simple way to improve performance, because with the GIL the
> threads are actually serialized, so you have almost no contention, and
> your threads get hot cache.

Indeed, that's what I was doing.

--

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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
components: Tests
files: test_gdb.log
messages: 141443
nosy: dmalcolm, pitrou
priority: low
severity: normal
stage: needs patch
status: open
title: test_gdb fails when installed
type: behavior
versions: Python 3.3
Added file: http://bugs.python.org/file22803/test_gdb.log

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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 behavior includes that and I 
dont see a special mention without giving more details is going to help.

The other portion of the patch seems okay to me.

--
nosy: +orsenthil

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



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

The easiest way to check if this is happening is to see which version of the 
code is executed by "python -m parser". If I'm right, that will execute the 
local parser.py file on both Linux and Windows.

--

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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 index alongside the 
actual functions they wrap).

Is there a :noindex: directive that will tell Sphinx not to index an entire 
section?

--
title: Move documentation of test.support into the devguide -> Keep 
test.support docs out of the global docs index

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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 

___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



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

--
assignee:  -> georg.brandl

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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 remember what the debate was and that the solution 
was overruled in favor of another.

It's just an opinion, though. I don't have strong feelings about this.

--

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



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

and

shutil.cleartree(path='/home/chin/Dev/python-hg-dev', 
ignore=shutil.ignore_pattterns('*.pyc'), invert=True)

is equivalent to `find /home/chin/Dev/python-hg-dev -name "*.pyc" -delete`

--
components: Library (Lib)
files: shutil.cleartree.patch
keywords: patch
messages: 141450
nosy: chin
priority: normal
severity: normal
status: open
title: [new function] shutil.cleartree
type: feature request
versions: Python 2.7, Python 3.3, Python 3.4
Added file: http://bugs.python.org/file22804/shutil.cleartree.patch

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



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

New changeset 952e83a8bc78 by Ezio Melotti in branch '2.7':
#12531: Fix spaces.
http://hg.python.org/cpython/rev/952e83a8bc78

--

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



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

--

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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 mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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 

___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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 

___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com




[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 use cases while writing programs that you would need to use 
cleartree api? While I like that function, I am  not sure if shutil should need 
that.

--
nosy: +orsenthil

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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 

___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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 

___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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 expression, but in case of dynamic 
patterns it will be hacky.

--
Added file: http://bugs.python.org/file22807/example.py

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com