]> granicus.if.org Git - python/log
python
13 years agoBranch merge
Éric Araujo [Fri, 12 Aug 2011 17:53:02 +0000 (19:53 +0200)]
Branch merge

13 years agoClean up test_shutil, to facilitate upcoming improvements (#12721).
Éric Araujo [Fri, 12 Aug 2011 17:51:35 +0000 (19:51 +0200)]
Clean up test_shutil, to facilitate upcoming improvements (#12721).

The tests now have two convenience functions to wrap os.path.join, open
and read or write instead of four or six slightly different functions.
The new functions accept a tuple of path segments but not a list
anymore, as it makes no sense to use a list here; I have also removed
the default value for the contents in write_file, as I find it better to
have the contents at the call site.

For simple open then read/write calls, I have left the usual idiom (with
open + read/write), as it is short and readable enough.

I’ve also changed some convoluted cleanup code to just use rmtree, and
removed dubious LBYL os.path.exists checks.  The tests still pass on my
machine, and leave no file in $TMP.  test_shutil is not as clean as it
could be, but I’ll stop here.

Initial patch provided by Hynek Schlawack, in preparation for a new
feature with new tests in #12715.

13 years agomerge with 3.2
Sandro Tosi [Fri, 12 Aug 2011 17:31:56 +0000 (19:31 +0200)]
merge with 3.2

13 years agoit's 'rather than'; reported by James Bateman on docs@
Sandro Tosi [Fri, 12 Aug 2011 17:31:32 +0000 (19:31 +0200)]
it's 'rather than'; reported by James Bateman on docs@

13 years agoMerge 3.2
Éric Araujo [Fri, 12 Aug 2011 16:03:30 +0000 (18:03 +0200)]
Merge 3.2

13 years agoBrench merge
Éric Araujo [Fri, 12 Aug 2011 15:59:25 +0000 (17:59 +0200)]
Brench merge

13 years agopatchcheck: don’t talk about the test suite when no code file were changed.
Éric Araujo [Fri, 12 Aug 2011 15:50:08 +0000 (17:50 +0200)]
patchcheck: don’t talk about the test suite when no code file were changed.

The line about the test suite will still get printed for changes in
Tools for example, which aren’t covered by the test suite, but it’s not
a big deal IMO.

13 years agoBranch merge
Éric Araujo [Fri, 12 Aug 2011 15:40:25 +0000 (17:40 +0200)]
Branch merge

13 years agoIssue #12672: fix code samples in extending/newtypes.html for PEP-7 compliance
Eli Bendersky [Fri, 12 Aug 2011 08:40:39 +0000 (11:40 +0300)]
Issue #12672: fix code samples in extending/newtypes.html for PEP-7 compliance

13 years agoUse our existing drop-in, no-op decorator instead of redefining it.
Éric Araujo [Thu, 11 Aug 2011 22:15:41 +0000 (00:15 +0200)]
Use our existing drop-in, no-op decorator instead of redefining it.

Patch by Francisco Martin Brugue.

13 years agomerge heads
Benjamin Peterson [Thu, 11 Aug 2011 19:46:49 +0000 (14:46 -0500)]
merge heads

13 years agomake only files which use AST depend on Python-ast.h
Benjamin Peterson [Thu, 11 Aug 2011 19:46:26 +0000 (14:46 -0500)]
make only files which use AST depend on Python-ast.h

13 years agorevert code which conditionally writes Python-ast.h (closes #12727)
Benjamin Peterson [Thu, 11 Aug 2011 19:42:28 +0000 (14:42 -0500)]
revert code which conditionally writes Python-ast.h (closes #12727)

13 years agoIssue #12687: Fix a possible buffering bug when unpickling text mode (protocol 0...
Antoine Pitrou [Thu, 11 Aug 2011 19:15:53 +0000 (21:15 +0200)]
Issue #12687: Fix a possible buffering bug when unpickling text mode (protocol 0, mostly) pickles.

13 years agoIssue #12687: Fix a possible buffering bug when unpickling text mode (protocol 0...
Antoine Pitrou [Thu, 11 Aug 2011 19:04:02 +0000 (21:04 +0200)]
Issue #12687: Fix a possible buffering bug when unpickling text mode (protocol 0, mostly) pickles.

13 years agoAdd doc for Py_RETURN_NOTIMPLEMENTED, added in #12724.
Brian Curtin [Thu, 11 Aug 2011 14:41:31 +0000 (09:41 -0500)]
Add doc for Py_RETURN_NOTIMPLEMENTED, added in #12724.

13 years agoCloses #12718: Merge documentation fix from 3.2.
Vinay Sajip [Thu, 11 Aug 2011 12:46:54 +0000 (13:46 +0100)]
Closes #12718: Merge documentation fix from 3.2.

13 years agoIssue #12718: Add documentation on using custom importers.
Vinay Sajip [Thu, 11 Aug 2011 12:45:48 +0000 (13:45 +0100)]
Issue #12718: Add documentation on using custom importers.

13 years agomerge
Brian Curtin [Thu, 11 Aug 2011 01:34:20 +0000 (20:34 -0500)]
merge

13 years agoNews item for #12724
Brian Curtin [Thu, 11 Aug 2011 01:32:10 +0000 (20:32 -0500)]
News item for #12724

13 years agoReplace Py_NotImplemented returns with the macro form Py_RETURN_NOTIMPLEMENTED.
Brian Curtin [Thu, 11 Aug 2011 01:28:54 +0000 (20:28 -0500)]
Replace Py_NotImplemented returns with the macro form Py_RETURN_NOTIMPLEMENTED.
The macro was introduced in #12724.

13 years agomerge from 3.2
Senthil Kumaran [Thu, 11 Aug 2011 01:25:45 +0000 (09:25 +0800)]
merge from 3.2

13 years agoNews item for Issue10087.
Senthil Kumaran [Thu, 11 Aug 2011 01:24:37 +0000 (09:24 +0800)]
News item for Issue10087.

13 years agoFix closes Issue10087 - fixing the output of calendar display in the html format...
Senthil Kumaran [Thu, 11 Aug 2011 01:22:52 +0000 (09:22 +0800)]
Fix closes Issue10087 -  fixing the output of calendar display in the html format. Patch by Chris Lambacher. Test Contributed by catherine.

13 years agoAdd Py_RETURN_NOTIMPLEMENTED macro. Fixes #12724.
Brian Curtin [Thu, 11 Aug 2011 01:05:21 +0000 (20:05 -0500)]
Add Py_RETURN_NOTIMPLEMENTED macro. Fixes #12724.

13 years agoFix directive markup
Éric Araujo [Wed, 10 Aug 2011 19:43:13 +0000 (21:43 +0200)]
Fix directive markup

13 years agoMerge 3.2
Éric Araujo [Wed, 10 Aug 2011 19:42:23 +0000 (21:42 +0200)]
Merge 3.2

13 years agoRemove unused names in except clauses
Éric Araujo [Wed, 10 Aug 2011 18:54:33 +0000 (20:54 +0200)]
Remove unused names in except clauses

13 years agoUse real word in English text (i.e. not code)
Éric Araujo [Wed, 10 Aug 2011 02:19:03 +0000 (04:19 +0200)]
Use real word in English text (i.e. not code)

13 years agoRevert cosmetic change.
Éric Araujo [Wed, 10 Aug 2011 00:46:33 +0000 (02:46 +0200)]
Revert cosmetic change.

A reminder: distutils only gets bug fixes.  Cosmetic changes, especially
in tests, are not worth the time spent, and can even make future merges
of bugfixes a bit less easy.

13 years agoFix find command in makefile “funny” target
Éric Araujo [Wed, 10 Aug 2011 00:01:32 +0000 (02:01 +0200)]
Fix find command in makefile “funny” target

13 years ago2.x syntax
Benjamin Peterson [Tue, 9 Aug 2011 23:48:02 +0000 (18:48 -0500)]
2.x syntax

13 years agomake this work on 2.4
Benjamin Peterson [Tue, 9 Aug 2011 23:38:57 +0000 (18:38 -0500)]
make this work on 2.4

13 years agomake this work with py2.5
Benjamin Peterson [Tue, 9 Aug 2011 21:49:52 +0000 (16:49 -0500)]
make this work with py2.5

13 years agotypo
Benjamin Peterson [Tue, 9 Aug 2011 21:49:13 +0000 (16:49 -0500)]
typo

13 years agodon't rewrite the header file if it hasn't changed; this reduces development build...
Benjamin Peterson [Tue, 9 Aug 2011 21:28:58 +0000 (16:28 -0500)]
don't rewrite the header file if it hasn't changed; this reduces development build time

13 years agoAvoid unwanted behavior change in shlex.quote (see #9723).
Éric Araujo [Tue, 9 Aug 2011 21:18:06 +0000 (23:18 +0200)]
Avoid unwanted behavior change in shlex.quote (see #9723).

I simplified the quote code to use a regex instead of a loop+test when I
moved pipes.quote to shlex in 5966eeb0457d; Ezio Melotti pointed out
that my regex contained redundant parts (now removed) and allowed
non-ASCII characters (now disallowed).

I think common UNIX shells don’t quote non-ASCII characters, but there’s
no harm in doing so.  We’ll see if users request a change.

13 years agofix indentation
Benjamin Peterson [Tue, 9 Aug 2011 21:17:12 +0000 (16:17 -0500)]
fix indentation

13 years agomerge heads
Benjamin Peterson [Tue, 9 Aug 2011 21:16:33 +0000 (16:16 -0500)]
merge heads

13 years agomerge 3.2 (#12719)
Benjamin Peterson [Tue, 9 Aug 2011 21:15:29 +0000 (16:15 -0500)]
merge 3.2 (#12719)

13 years agoadd a AST validator (closes #12575)
Benjamin Peterson [Tue, 9 Aug 2011 21:15:04 +0000 (16:15 -0500)]
add a AST validator (closes #12575)

13 years agoforgotten in f578ca44193d
Benjamin Peterson [Tue, 9 Aug 2011 21:14:45 +0000 (16:14 -0500)]
forgotten in f578ca44193d

13 years agothe bool asdl type died a while ago
Benjamin Peterson [Tue, 9 Aug 2011 21:10:09 +0000 (16:10 -0500)]
the bool asdl type died a while ago

13 years agoadd a asdl bytes type, so Bytes.s be properly typechecked
Benjamin Peterson [Tue, 9 Aug 2011 21:08:39 +0000 (16:08 -0500)]
add a asdl bytes type, so Bytes.s be properly typechecked

13 years agonote mutating tp_dict is bad (closes #12719)
Benjamin Peterson [Tue, 9 Aug 2011 21:07:01 +0000 (16:07 -0500)]
note mutating tp_dict is bad (closes #12719)

13 years agoTest pipes.quote with a few non-ASCII characters (see #9723).
Éric Araujo [Tue, 9 Aug 2011 21:03:43 +0000 (23:03 +0200)]
Test pipes.quote with a few non-ASCII characters (see #9723).

That pipes.quote thinks all non-ASCII characters need to be quoted may
be a bug, but right now I’m committing this test to make sure I haven’t
introduced a behavior change in 3.3 when I simplified the code to use a
regex (in 5966eeb0457d).

13 years agoAdd support for unary plus and unary minus to collections.Counter()
Raymond Hettinger [Tue, 9 Aug 2011 20:00:40 +0000 (13:00 -0700)]
Add support for unary plus and unary minus to collections.Counter()

13 years agoMerge 3.2
Éric Araujo [Tue, 9 Aug 2011 16:09:21 +0000 (18:09 +0200)]
Merge 3.2

13 years agoBranch merge
Éric Araujo [Tue, 9 Aug 2011 16:01:52 +0000 (18:01 +0200)]
Branch merge

13 years agoBranch merge
Éric Araujo [Tue, 9 Aug 2011 16:01:38 +0000 (18:01 +0200)]
Branch merge

13 years agoIssue #12700: fix test_faulthandler for Mac OS X Lion
Victor Stinner [Mon, 8 Aug 2011 20:43:45 +0000 (22:43 +0200)]
Issue #12700: fix test_faulthandler for Mac OS X Lion

Read from NULL raises SIGILL, not SIGSEGV, on Mac OS X Lion.

13 years agoMerge with 3.2.
Georg Brandl [Mon, 8 Aug 2011 19:45:24 +0000 (21:45 +0200)]
Merge with 3.2.

13 years agoConfirm that the prime example is actually correct. We get so many complaints about...
Georg Brandl [Mon, 8 Aug 2011 19:45:13 +0000 (21:45 +0200)]
Confirm that the prime example is actually correct.  We get so many complaints about a "buggy example" on docs@python, let us hope this cuts them in half at least.

13 years agoMerge 3.2
Éric Araujo [Mon, 8 Aug 2011 14:56:46 +0000 (16:56 +0200)]
Merge 3.2

13 years agoBranch merge
Éric Araujo [Mon, 8 Aug 2011 14:56:17 +0000 (16:56 +0200)]
Branch merge

13 years agoBranch merge
Éric Araujo [Mon, 8 Aug 2011 14:56:00 +0000 (16:56 +0200)]
Branch merge

13 years agoClean up shutil.disk_usage.
Éric Araujo [Mon, 8 Aug 2011 14:51:11 +0000 (16:51 +0200)]
Clean up shutil.disk_usage.

- Move a test from call time to define time
- Add the function name to __all__
- Improve docstring and docs

A few lines are now duplicated (named tuple definition and docstring)
but I think the end result reads better.

13 years ago#12709: merge with 3.2
Sandro Tosi [Mon, 8 Aug 2011 14:38:47 +0000 (16:38 +0200)]
#12709: merge with 3.2

13 years ago#12709: add error_callback argument to map_async documentation
Sandro Tosi [Mon, 8 Aug 2011 14:38:13 +0000 (16:38 +0200)]
#12709: add error_callback argument to map_async documentation

13 years ago#10741: merge with 3.2
Sandro Tosi [Sun, 7 Aug 2011 22:17:43 +0000 (00:17 +0200)]
#10741: merge with 3.2

13 years ago#10741: add documentation for PyGILState_GetThisThreadState()
Sandro Tosi [Sun, 7 Aug 2011 22:16:54 +0000 (00:16 +0200)]
#10741: add documentation for PyGILState_GetThisThreadState()

13 years ago#12677: merge with 3.2
Sandro Tosi [Sun, 7 Aug 2011 15:13:13 +0000 (17:13 +0200)]
#12677: merge with 3.2

13 years ago#12677: correct turtle orientation in doc
Sandro Tosi [Sun, 7 Aug 2011 15:12:19 +0000 (17:12 +0200)]
#12677: correct turtle orientation in doc

13 years agoMerge doc changes from 3.2 (#8617, #10745).
Éric Araujo [Sat, 6 Aug 2011 14:58:15 +0000 (16:58 +0200)]
Merge doc changes from 3.2 (#8617, #10745).

In the install and library docs, I changed the text to refer to
packaging instead of distutils.  I also checked that the documented
paths correctly reflect what’s really defined in sysconfig; the main
difference with paths defined in distutils.install is that include
directories don’t end with the distribution name anymore (i.e. distutils
uses include/python3.3/spam, sysconfig include/python3.3), I have no
idea why.

13 years agoAdd documentation for PEP 370 features in distutils (#10745).
Éric Araujo [Sat, 6 Aug 2011 14:30:42 +0000 (16:30 +0200)]
Add documentation for PEP 370 features in distutils (#10745).

This started out as an easy task, just add a section describing this
alternate scheme, but I found a lot of cleanup to do along the way:

- fixed inverted reST targets
- fixed entries for modules (hi abiflags!) or data files
- avoided duplicating the same options listing five or six times
- added missing entries for C headers locations
- added documentation for --install-lib
- fixed a few misuses of the option role (see #9312), but not all (not
  worth the time, but will do it in packaging docs)
- fixed some markup

The paths fixes were done with an eye on the source code in the install
command, so they really describe what’s actually done.  The situation on
Mac OS X is rather messy: the fix for #8084 touched site and sysconfig,
but distutils doesn’t use these files.  I suspect we have a mismatched
stdlib at the moment, and the fix is not even clear (see the bug report
for further discussion).

13 years agoFix grammar
Eli Bendersky [Sat, 6 Aug 2011 06:32:11 +0000 (09:32 +0300)]
Fix grammar

13 years agoFix grammar
Eli Bendersky [Sat, 6 Aug 2011 06:31:09 +0000 (09:31 +0300)]
Fix grammar

13 years agomerge from 3.2 - Fix closes Issue12697 - Update the usage syntax of timeit module...
Senthil Kumaran [Sat, 6 Aug 2011 05:37:37 +0000 (13:37 +0800)]
merge from 3.2 - Fix closes Issue12697 - Update the usage syntax of timeit module in the docs.

13 years agoFix closes Issue12697 - Update the usage syntax of timeit module in the docs.
Senthil Kumaran [Sat, 6 Aug 2011 05:37:04 +0000 (13:37 +0800)]
Fix closes Issue12697 - Update the usage syntax of timeit module in the docs.

13 years agomerge from 3.2 - Fix closes issue11047 - Correct the 2.7 whatsnew description for...
Senthil Kumaran [Sat, 6 Aug 2011 04:55:06 +0000 (12:55 +0800)]
merge from 3.2 - Fix closes issue11047 - Correct the 2.7 whatsnew description for issue 7902.

13 years agomerge from 2.7 - Fix closes issue11047 - Correct the 2.7 whatsnew description for...
Senthil Kumaran [Sat, 6 Aug 2011 04:54:23 +0000 (12:54 +0800)]
merge from 2.7 - Fix closes issue11047 - Correct the 2.7 whatsnew description for issue 7902.

13 years agomerge from 3.2 - Fix closes issue12698 - make the no_proxy environment variable handl...
Senthil Kumaran [Sat, 6 Aug 2011 04:28:16 +0000 (12:28 +0800)]
merge from 3.2 - Fix closes issue12698 - make the no_proxy environment variable handling a bit lenient (accomodate spaces in between the items)

13 years agoFix closes issue12698 - make the no_proxy environment variable handling a bit lenient...
Senthil Kumaran [Sat, 6 Aug 2011 04:27:40 +0000 (12:27 +0800)]
Fix closes issue12698 - make the no_proxy environment variable handling a bit lenient (accomodate spaces in between the items)

13 years agoImprove documentation for PEP 370 support in site module (#8617).
Éric Araujo [Fri, 5 Aug 2011 23:51:07 +0000 (01:51 +0200)]
Improve documentation for PEP 370 support in site module (#8617).

site.USER_BASE and site.USER_SITE are now fully documented.  PEP 370 is
outdated with respects to the Mac framework situation, but the code in
sysconfig and the example in the 3.2 What’s New document helped me find
the right values to document for Mac OS X.

The command-line interface of the site module, partly documented in the
3.2 What’s New, is fully described in the module docs.

The purpose of the usercustomize module is explained in the site docs,
with a gentle introduction in the tutorial (right after the section that
talks about PYTHONSTARTUP; a comment mentions it should be moved from
the tutorial to another file, but that will be another bug).

Various markup and wording improvements were made along the way in the
site module docs.  Duplicate and incomplete declarations of environment
variables have also been removed (the original bug report was actually
about these entries :).  The site module docs are still a bit messy;
I’ll see about improving them for #11553.

All these sections are copiously interlinked and findable from the doc
indexes.

13 years ago#11572: improvements to copy module tests along with removal of old test suite
Sandro Tosi [Fri, 5 Aug 2011 21:05:35 +0000 (23:05 +0200)]
#11572: improvements to copy module tests along with removal of old test suite

13 years agoFix wrong use of root logger in packaging (also a NameError)
Éric Araujo [Thu, 4 Aug 2011 15:17:07 +0000 (17:17 +0200)]
Fix wrong use of root logger in packaging (also a NameError)

13 years agoIssue #12540: Prevent zombie IDLE processes on Windows due to changes
Ned Deily [Fri, 5 Aug 2011 06:38:19 +0000 (23:38 -0700)]
Issue #12540: Prevent zombie IDLE processes on Windows due to changes
in os.kill().  Original patch by Eli Bendersky.

13 years agoSilence the altered state warning about threadgs when running test_httplib.
Brett Cannon [Fri, 5 Aug 2011 05:43:11 +0000 (22:43 -0700)]
Silence the altered state warning about threadgs when running test_httplib.

13 years agoSilence altered execution state warnings from test_telnetlib involving threads.
Brett Cannon [Fri, 5 Aug 2011 05:37:55 +0000 (22:37 -0700)]
Silence altered execution state warnings from test_telnetlib involving threads.

13 years agoExplicitly close a file to stop raising a ResourceWarning.
Brett Cannon [Fri, 5 Aug 2011 04:34:52 +0000 (21:34 -0700)]
Explicitly close a file to stop raising a ResourceWarning.

13 years agomerge 3.2
Benjamin Peterson [Thu, 4 Aug 2011 16:09:57 +0000 (11:09 -0500)]
merge 3.2

13 years agodosmodule is, thankfully, no more
Benjamin Peterson [Thu, 4 Aug 2011 16:07:42 +0000 (11:07 -0500)]
dosmodule is, thankfully, no more

13 years agomerge from 3.2 - change the extra svn to svn+ssh
Senthil Kumaran [Wed, 3 Aug 2011 14:09:51 +0000 (22:09 +0800)]
merge from 3.2 - change the extra svn to svn+ssh

13 years agochange the redundant svn scheme urljoin test case to svn+ssh scheme.
Senthil Kumaran [Wed, 3 Aug 2011 14:08:46 +0000 (22:08 +0800)]
change the redundant svn scheme urljoin test case to svn+ssh scheme.

13 years agomerge heads
Benjamin Peterson [Wed, 3 Aug 2011 13:54:44 +0000 (08:54 -0500)]
merge heads

13 years agofix arg strings
Benjamin Peterson [Wed, 3 Aug 2011 13:54:26 +0000 (08:54 -0500)]
fix arg strings

13 years agomerged heads
Senthil Kumaran [Wed, 3 Aug 2011 10:46:24 +0000 (18:46 +0800)]
merged heads

13 years agomerge heads
Senthil Kumaran [Wed, 3 Aug 2011 10:45:02 +0000 (18:45 +0800)]
merge heads

13 years agomerge from 3.2 - Fix closes issue12683 - urljoin to work with relative join of svn...
Senthil Kumaran [Wed, 3 Aug 2011 10:44:10 +0000 (18:44 +0800)]
merge from 3.2 - Fix closes issue12683 - urljoin to work with relative join of svn scheme.

13 years agoFix closes issue12683 - urljoin to work with relative join of svn scheme.
Senthil Kumaran [Wed, 3 Aug 2011 10:37:22 +0000 (18:37 +0800)]
Fix closes issue12683 - urljoin to work with relative join of svn scheme.

13 years agoMerge with 3.2.
Georg Brandl [Wed, 3 Aug 2011 06:29:12 +0000 (08:29 +0200)]
Merge with 3.2.

13 years agoFix spacing in string literal.
Georg Brandl [Wed, 3 Aug 2011 06:27:00 +0000 (08:27 +0200)]
Fix spacing in string literal.

13 years agohandle sched_rr_get_interval not working on current
Benjamin Peterson [Wed, 3 Aug 2011 03:19:14 +0000 (22:19 -0500)]
handle sched_rr_get_interval not working on current

13 years agofix punctuation
Benjamin Peterson [Wed, 3 Aug 2011 03:15:40 +0000 (22:15 -0500)]
fix punctuation

13 years agofix indentation
Benjamin Peterson [Wed, 3 Aug 2011 03:10:55 +0000 (22:10 -0500)]
fix indentation

13 years agomerge heads
Benjamin Peterson [Wed, 3 Aug 2011 03:09:56 +0000 (22:09 -0500)]
merge heads

13 years agoOSX doesn't check sched_get_priority_(min/max) argument
Benjamin Peterson [Wed, 3 Aug 2011 03:09:37 +0000 (22:09 -0500)]
OSX doesn't check sched_get_priority_(min/max) argument

13 years agoIssue #11049: fix test_forget on installed Python - add os.curdir to sys.path
Eli Bendersky [Wed, 3 Aug 2011 02:18:33 +0000 (05:18 +0300)]
Issue #11049: fix test_forget on installed Python - add os.curdir to sys.path

13 years agoIssue #12540: Prevent zombie IDLE processes on Windows due to changes
Ned Deily [Wed, 3 Aug 2011 01:47:13 +0000 (18:47 -0700)]
Issue #12540: Prevent zombie IDLE processes on Windows due to changes
in os.kill().  Original patch by Eli Bendersky.

13 years agoneed NULL sentinel
Benjamin Peterson [Wed, 3 Aug 2011 00:56:11 +0000 (19:56 -0500)]
need NULL sentinel