]> granicus.if.org Git - python/log
python
13 years agoAdd support for the send/recvmsg API to the socket module. Patch by David Watson...
Nick Coghlan [Mon, 22 Aug 2011 01:55:57 +0000 (11:55 +1000)]
Add support for the send/recvmsg API to the socket module. Patch by David Watson and Heiko Wundram. (Closes #6560)

13 years agoNull merge; fix already present in default branch.
Nadeem Vawda [Sun, 21 Aug 2011 20:36:27 +0000 (22:36 +0200)]
Null merge; fix already present in default branch.

13 years agoIssue #12678: Fix distutils sdist test on Windows.
Nadeem Vawda [Sun, 21 Aug 2011 20:35:41 +0000 (22:35 +0200)]
Issue #12678: Fix distutils sdist test on Windows.

Patch by Jeremy Kloth.

13 years agoFix test_command_install_dist in shared Python builds
Éric Araujo [Sun, 21 Aug 2011 15:38:56 +0000 (17:38 +0200)]
Fix test_command_install_dist in shared Python builds

13 years agoFactor out the build_ext fixup for shared Python builds.
Éric Araujo [Sun, 21 Aug 2011 15:38:36 +0000 (17:38 +0200)]
Factor out the build_ext fixup for shared Python builds.

I need this to fix the failing test_command_install_dist.

13 years agoRemove obsolete code
Éric Araujo [Sun, 21 Aug 2011 15:37:36 +0000 (17:37 +0200)]
Remove obsolete code

13 years agoMerge build_ext fix from 3.2
Éric Araujo [Sun, 21 Aug 2011 15:10:50 +0000 (17:10 +0200)]
Merge build_ext fix from 3.2

13 years agoFix distutils test_install for shared CPython builds
Éric Araujo [Sun, 21 Aug 2011 15:03:19 +0000 (17:03 +0200)]
Fix distutils test_install for shared CPython builds

13 years agoFactor out the build_ext fixup for shared Python builds.
Éric Araujo [Sun, 21 Aug 2011 15:02:07 +0000 (17:02 +0200)]
Factor out the build_ext fixup for shared Python builds.

I need this to fix the failing test_install.

13 years agoUpdate README section on testing following issue #11651.
Nadeem Vawda [Sun, 21 Aug 2011 14:48:54 +0000 (16:48 +0200)]
Update README section on testing following issue #11651.

13 years agoIssue #12804: Prevent "make test" from using network resources.
Nadeem Vawda [Sun, 21 Aug 2011 14:41:03 +0000 (16:41 +0200)]
Issue #12804: Prevent "make test" from using network resources.

13 years agoMerge 3.2
Éric Araujo [Sun, 21 Aug 2011 12:30:00 +0000 (14:30 +0200)]
Merge 3.2

13 years agoAdd missing name in shutil
Éric Araujo [Sun, 21 Aug 2011 12:29:18 +0000 (14:29 +0200)]
Add missing name in shutil

13 years agoMerge 3.2
Éric Araujo [Sun, 21 Aug 2011 10:54:06 +0000 (12:54 +0200)]
Merge 3.2

13 years agoAdd missing closing paren in docstring (thanks Ezio)
Éric Araujo [Sun, 21 Aug 2011 10:53:37 +0000 (12:53 +0200)]
Add missing closing paren in docstring (thanks Ezio)

13 years agoIssue #12783: Fix test_posix failures on FreeBSD buildbots, due to
Charles-François Natali [Sun, 21 Aug 2011 10:41:43 +0000 (12:41 +0200)]
Issue #12783: Fix test_posix failures on FreeBSD buildbots, due to
sched_setparam() returning EINVAL for processes with SCHED_OTHER scheduling
policy.

13 years agoIssue #12326: update sys.platform doc for Linux
Victor Stinner [Sun, 21 Aug 2011 10:08:11 +0000 (12:08 +0200)]
Issue #12326: update sys.platform doc for Linux

13 years agoIssue #12326: refactor usage of sys.platform
Victor Stinner [Sat, 20 Aug 2011 22:39:18 +0000 (00:39 +0200)]
Issue #12326: refactor usage of sys.platform

 * Use str.startswith(tuple): I didn't know this Python feature, Python rocks!
 * Replace sometimes sys.platform.startswith('linux') with
   sys.platform == 'linux'
 * sys.platform doesn't contain the major version on Cygwin on Mac OS X
   (it's just 'cygwin' and 'darwin')

13 years ago#5301: merge with 3.2
Sandro Tosi [Sat, 20 Aug 2011 22:16:49 +0000 (00:16 +0200)]
#5301: merge with 3.2

13 years ago#5301: add image/vnd.microsoft.icon (.ico) MIME type
Sandro Tosi [Sat, 20 Aug 2011 22:16:18 +0000 (00:16 +0200)]
#5301: add image/vnd.microsoft.icon (.ico) MIME type

13 years agoIssue #12326: woops, I really mean 'linux', not 'linux2'
Victor Stinner [Sat, 20 Aug 2011 22:00:16 +0000 (00:00 +0200)]
Issue #12326: woops, I really mean 'linux', not 'linux2'

Copy/paste (from Python 3.2) failure

13 years agoClose #12326: sys.platform is now always 'linux' on Linux
Victor Stinner [Sat, 20 Aug 2011 21:39:26 +0000 (23:39 +0200)]
Close #12326: sys.platform is now always 'linux' on Linux

On Linux, sys.platform doesn't contain the major version anymore. It is now
always 'linux', instead of 'linux2' or 'linux3' depending on the Linux version
used to build Python.

13 years agoMerge 3.2
Éric Araujo [Sat, 20 Aug 2011 18:02:04 +0000 (20:02 +0200)]
Merge 3.2

13 years agoBranch merge
Éric Araujo [Sat, 20 Aug 2011 18:00:07 +0000 (20:00 +0200)]
Branch merge

13 years agoBranch merge
Éric Araujo [Sat, 20 Aug 2011 17:57:42 +0000 (19:57 +0200)]
Branch merge

13 years agoBranch merge
Éric Araujo [Sat, 20 Aug 2011 17:55:58 +0000 (19:55 +0200)]
Branch merge

13 years agoFix sdist test on Windows (#12678). Patch by Jeremy Kloth.
Éric Araujo [Sat, 20 Aug 2011 17:52:07 +0000 (19:52 +0200)]
Fix sdist test on Windows (#12678).  Patch by Jeremy Kloth.

13 years agoIssue #12213: make it clear that BufferedRWPair shouldn't be called with the
Antoine Pitrou [Sat, 20 Aug 2011 17:50:32 +0000 (19:50 +0200)]
Issue #12213: make it clear that BufferedRWPair shouldn't be called with the
same object as reader and writer, and deemphasize it in document order.

13 years agoIssue #12213: make it clear that BufferedRWPair shouldn't be called with the
Antoine Pitrou [Sat, 20 Aug 2011 17:48:43 +0000 (19:48 +0200)]
Issue #12213: make it clear that BufferedRWPair shouldn't be called with the
same object as reader and writer, and deemphasize it in document order.

13 years ago#12787: merge with 3.2
Sandro Tosi [Sat, 20 Aug 2011 15:06:38 +0000 (17:06 +0200)]
#12787: merge with 3.2

13 years ago#12787: link original MultiCall proposal to webarchive and in a footnote
Sandro Tosi [Sat, 20 Aug 2011 15:05:56 +0000 (17:05 +0200)]
#12787: link original MultiCall proposal to webarchive and in a footnote

13 years agoIssue #12213: Fix a buffering bug with interleaved reads and writes that
Antoine Pitrou [Sat, 20 Aug 2011 12:52:04 +0000 (14:52 +0200)]
Issue #12213: Fix a buffering bug with interleaved reads and writes that
could appear on BufferedRandom streams.

13 years agoIssue #12213: Fix a buffering bug with interleaved reads and writes that
Antoine Pitrou [Sat, 20 Aug 2011 12:39:23 +0000 (14:39 +0200)]
Issue #12213: Fix a buffering bug with interleaved reads and writes that
could appear on BufferedRandom streams.

13 years agoIssue #12791: Break reference cycles early when a generator exits with an exception.
Antoine Pitrou [Sat, 20 Aug 2011 12:18:25 +0000 (14:18 +0200)]
Issue #12791: Break reference cycles early when a generator exits with an exception.

13 years agoIssue #12791: Break reference cycles early when a generator exits with an exception.
Antoine Pitrou [Sat, 20 Aug 2011 12:15:03 +0000 (14:15 +0200)]
Issue #12791: Break reference cycles early when a generator exits with an exception.

13 years agoIssue #12326: sys.platform is now always 'linux2' on Linux
Victor Stinner [Sat, 20 Aug 2011 12:01:05 +0000 (14:01 +0200)]
Issue #12326: sys.platform is now always 'linux2' on Linux

Even if Python is compiled on Linux 3.

13 years agoAdd a simple test for the packaging RECORD file.
Éric Araujo [Sat, 20 Aug 2011 07:31:25 +0000 (09:31 +0200)]
Add a simple test for the packaging RECORD file.

The existing test_record is not easily extendable to add script files or
extension modules: it collects all files from fake_dists and generates a
RECORD file at runtime.  I felt more comfortable adding a new test
written from scratch more self-contained (just one project with
well-defined files) and more stupid (the checksums and sizes are
computed once and hard-coded).

13 years agoMinor cleanup
Éric Araujo [Sat, 20 Aug 2011 07:19:25 +0000 (09:19 +0200)]
Minor cleanup

- Rename an attribute and create it in initialize_options instead of
  finalize_options to match the other install_* classes
- Remove unnecessary method call in tests

13 years agoAdd a test for extension modules in the old-style record file
Éric Araujo [Sat, 20 Aug 2011 05:42:56 +0000 (07:42 +0200)]
Add a test for extension modules in the old-style record file

13 years agoRework test_old_record a bit to make the test more exact
Éric Araujo [Sat, 20 Aug 2011 05:34:43 +0000 (07:34 +0200)]
Rework test_old_record a bit to make the test more exact
(i.e. to check the files found are what we expect)

13 years agoRefactor the copying of xxmodule.c in packaging tests (#12141).
Éric Araujo [Sat, 20 Aug 2011 05:27:47 +0000 (07:27 +0200)]
Refactor the copying of xxmodule.c in packaging tests (#12141).

I need to copy this file in another test too, so I moved the support
code to distutils.tests.support and improved it to use proper skip
machinery instead of custom print/return/test suite fiddling.

Contrary to my similar change in distutils tests, I did not add support
for finding xxmodule.c when running a test from the tests directory,
because in that case my compiler didn’t find Python.h, so I figured it’s
better to skip than to fail.

13 years agoDedent example in docstring
Éric Araujo [Sat, 20 Aug 2011 05:25:39 +0000 (07:25 +0200)]
Dedent example in docstring

13 years agoMerge 3.2
Éric Araujo [Sat, 20 Aug 2011 05:10:54 +0000 (07:10 +0200)]
Merge 3.2

13 years agoAdd a test for extension modules in the distutils record file.
Éric Araujo [Sat, 20 Aug 2011 05:08:51 +0000 (07:08 +0200)]
Add a test for extension modules in the distutils record file.

I made a note a month ago that install --record wrote incorrect entries
for extension modules (I think the problem was that the first character
of the file was stripped), so I’m now adding a test to try to reproduce
that in the current versions.

13 years agoRework test_record a bit to make the test more exact
Éric Araujo [Sat, 20 Aug 2011 05:00:41 +0000 (07:00 +0200)]
Rework test_record a bit to make the test more exact

13 years agoRefactor the copying of xxmodule.c in distutils tests (#12141).
Éric Araujo [Sat, 20 Aug 2011 04:27:18 +0000 (06:27 +0200)]
Refactor the copying of xxmodule.c in distutils tests (#12141).

I need to copy this file in another test too, so I moved the support
code to distutils.tests.support and improved it:

- don’t skip when run from the Lib/distutils/tests directory
- use proper skip machinery instead of custom print/return/test suite
  fiddling.

13 years agoFix compilation under Windows
Antoine Pitrou [Sat, 20 Aug 2011 01:19:34 +0000 (03:19 +0200)]
Fix compilation under Windows

13 years agomerge with 3.2
Sandro Tosi [Fri, 19 Aug 2011 20:55:24 +0000 (22:55 +0200)]
merge with 3.2

13 years agofix description of \r; thanks to Thomas Waldmann from docs@
Sandro Tosi [Fri, 19 Aug 2011 20:54:50 +0000 (22:54 +0200)]
fix description of \r; thanks to Thomas Waldmann from docs@

13 years agoFix typo in test names
Antoine Pitrou [Fri, 19 Aug 2011 18:33:11 +0000 (20:33 +0200)]
Fix typo in test names

13 years agoFix typo in test names
Antoine Pitrou [Fri, 19 Aug 2011 18:32:34 +0000 (20:32 +0200)]
Fix typo in test names

13 years agomerge with 3.2
Sandro Tosi [Fri, 19 Aug 2011 16:40:56 +0000 (18:40 +0200)]
merge with 3.2

13 years agomention RFC1123 as origin of 4-year digit; thanks to John Haxby from docs@
Sandro Tosi [Fri, 19 Aug 2011 16:40:21 +0000 (18:40 +0200)]
mention RFC1123 as origin of 4-year digit; thanks to John Haxby from docs@

13 years agoIssue #12778: Reduce memory consumption when JSON-encoding a large container of many...
Antoine Pitrou [Fri, 19 Aug 2011 16:03:14 +0000 (18:03 +0200)]
Issue #12778: Reduce memory consumption when JSON-encoding a large container of many small objects.

13 years agoRestore $HOME after test has run (should fix #12765)
Éric Araujo [Fri, 19 Aug 2011 15:47:52 +0000 (17:47 +0200)]
Restore $HOME after test has run (should fix #12765)

13 years agoMerge 3.2
Éric Araujo [Fri, 19 Aug 2011 12:23:47 +0000 (14:23 +0200)]
Merge 3.2

13 years agoBranch merge
Éric Araujo [Fri, 19 Aug 2011 12:22:52 +0000 (14:22 +0200)]
Branch merge

13 years agoBranch merge
Éric Araujo [Fri, 19 Aug 2011 12:22:28 +0000 (14:22 +0200)]
Branch merge

13 years agoMerge fixes for #12256 and typos from 3.2
Éric Araujo [Fri, 19 Aug 2011 07:36:59 +0000 (09:36 +0200)]
Merge fixes for #12256 and typos from 3.2

13 years agoTypo
Éric Araujo [Fri, 19 Aug 2011 07:28:46 +0000 (09:28 +0200)]
Typo

13 years agoMention virtual subclasses in the glossary entry for ABCs (#12256).
Éric Araujo [Fri, 19 Aug 2011 07:07:46 +0000 (09:07 +0200)]
Mention virtual subclasses in the glossary entry for ABCs (#12256).

I added a link from the term “virtual subclass” to the glossary entry
for ABCs but this was not enough, now the glossary briefly defines
“virtual” and links to the abc module doc which contains more mentions
of virtual subclasses.

13 years agoIssue #12780: Merged fix from 3.2.
Vinay Sajip [Fri, 19 Aug 2011 06:15:45 +0000 (07:15 +0100)]
Issue #12780: Merged fix from 3.2.

13 years agoIssue #12780: Removed checks in logging for .pyc/.pyo in __file__.
Vinay Sajip [Fri, 19 Aug 2011 06:14:40 +0000 (07:14 +0100)]
Issue #12780: Removed checks in logging for .pyc/.pyo in __file__.

13 years agoMerge from 3.2
Eli Bendersky [Fri, 19 Aug 2011 03:31:10 +0000 (06:31 +0300)]
Merge from 3.2
Issue #12672: remove confusing part of sentence in documentation

13 years agoIssue #12672: remove confusing part of sentence in documentation
Eli Bendersky [Fri, 19 Aug 2011 03:29:51 +0000 (06:29 +0300)]
Issue #12672: remove confusing part of sentence in documentation

13 years agoMerge: Fix ResourceWarnings in test_subprocess.
Nadeem Vawda [Fri, 19 Aug 2011 03:14:40 +0000 (05:14 +0200)]
Merge: Fix ResourceWarnings in test_subprocess.

13 years agoFix ResourceWarnings in test_subprocess.
Nadeem Vawda [Fri, 19 Aug 2011 03:12:01 +0000 (05:12 +0200)]
Fix ResourceWarnings in test_subprocess.

13 years agoMark abc.abstractproperty as a property
Éric Araujo [Fri, 19 Aug 2011 01:53:51 +0000 (03:53 +0200)]
Mark abc.abstractproperty as a property

13 years agoFix typo in command name
Éric Araujo [Fri, 19 Aug 2011 01:44:36 +0000 (03:44 +0200)]
Fix typo in command name

13 years agoMerge 3.2
Éric Araujo [Fri, 19 Aug 2011 01:19:36 +0000 (03:19 +0200)]
Merge 3.2

13 years agoFix instance I missed in 59f7bbe1236c (#1626300)
Éric Araujo [Fri, 19 Aug 2011 01:12:38 +0000 (03:12 +0200)]
Fix instance I missed in 59f7bbe1236c (#1626300)

13 years agoMake logging call lazy
Éric Araujo [Fri, 19 Aug 2011 00:55:11 +0000 (02:55 +0200)]
Make logging call lazy

13 years agoRemove obsolete term + indicate how to find the program (#1626300).
Éric Araujo [Fri, 19 Aug 2011 00:30:15 +0000 (02:30 +0200)]
Remove obsolete term + indicate how to find the program (#1626300).

Suggested by Terry J. Reedy.

13 years agoLink isinstance/issubclass to the ABC glossary entry (#12256)
Éric Araujo [Fri, 19 Aug 2011 00:17:03 +0000 (02:17 +0200)]
Link isinstance/issubclass to the ABC glossary entry (#12256)

13 years agoDon’t quote characters twice.
Éric Araujo [Thu, 18 Aug 2011 23:45:12 +0000 (01:45 +0200)]
Don’t quote characters twice.

``code`` markup is enough to mark command-line fragments or to talk
about a character.  ``'c'`` is still used for actual Python string
objects.  I did a similar change in optparse.rst in r86521.

I’ve also ported two minor changes from the 3.3 version of the file
(removing an unnecessary module name in a class directive, adding a
comma).

13 years agoDon’t use “arg” for “argument”
Éric Araujo [Thu, 18 Aug 2011 23:30:26 +0000 (01:30 +0200)]
Don’t use “arg” for “argument”

13 years agoImprove “pysetup create” help messages.
Éric Araujo [Thu, 18 Aug 2011 22:56:57 +0000 (00:56 +0200)]
Improve “pysetup create” help messages.

The example version numbers were invalid and “package” was misused.  I
also made lines shorter, replaced “e-mail” with “email” (more common in
the stdlib and I believe in English generally) and tweaked a few other
things.

13 years agoFix typo
Éric Araujo [Thu, 18 Aug 2011 22:53:20 +0000 (00:53 +0200)]
Fix typo

13 years agoRemove class that was only useful with Sphinx autodoc
Éric Araujo [Thu, 18 Aug 2011 22:53:04 +0000 (00:53 +0200)]
Remove class that was only useful with Sphinx autodoc

13 years agoAdd a few missing source links from 2.7 and harmonize lib docs headers
Éric Araujo [Thu, 18 Aug 2011 22:49:18 +0000 (00:49 +0200)]
Add a few missing source links from 2.7 and harmonize lib docs headers

13 years agoMinor improvements to BadZipFile and BadZipfile docs.
Éric Araujo [Thu, 18 Aug 2011 22:44:31 +0000 (00:44 +0200)]
Minor improvements to BadZipFile and BadZipfile docs.

I made the doc for the compat alias BadZipfile shorter and used a
directive to document deprecation.

I figured there was no point of talking about zipfile.error (“the old
name” that’s older than the other old name BadZipfile) in the 3.x docs
so I just removed it.

13 years agoFix markup to get a target instead of a comment
Éric Araujo [Thu, 18 Aug 2011 22:41:23 +0000 (00:41 +0200)]
Fix markup to get a target instead of a comment

13 years agoFix a typo and touch up blank lines
Éric Araujo [Thu, 18 Aug 2011 22:40:46 +0000 (00:40 +0200)]
Fix a typo and touch up blank lines

13 years agoAdd missing reST target for one section of this file
Éric Araujo [Thu, 18 Aug 2011 22:39:57 +0000 (00:39 +0200)]
Add missing reST target for one section of this file

13 years agoAvoid splitting a word between a link and text
Éric Araujo [Thu, 18 Aug 2011 22:39:19 +0000 (00:39 +0200)]
Avoid splitting a word between a link and text

13 years agoIssue #12650: fix failures on some buildbots, when a subprocess takes a long
Charles-François Natali [Thu, 18 Aug 2011 22:25:07 +0000 (00:25 +0200)]
Issue #12650: fix failures on some buildbots, when a subprocess takes a long
time to spawn.

13 years agoIssue #12650: fix failures on some buildbots, when a subprocess takes a long
Charles-François Natali [Thu, 18 Aug 2011 22:24:00 +0000 (00:24 +0200)]
Issue #12650: fix failures on some buildbots, when a subprocess takes a long
time to spawn.

13 years agomerge heads
Benjamin Peterson [Thu, 18 Aug 2011 18:55:38 +0000 (13:55 -0500)]
merge heads

13 years agomerge 3.2
Benjamin Peterson [Thu, 18 Aug 2011 18:55:31 +0000 (13:55 -0500)]
merge 3.2

13 years agomerge heads
Benjamin Peterson [Thu, 18 Aug 2011 18:54:16 +0000 (13:54 -0500)]
merge heads

13 years agomerge 3.2
Benjamin Peterson [Thu, 18 Aug 2011 18:52:19 +0000 (13:52 -0500)]
merge 3.2

13 years agothe named of the character is actually NUL
Benjamin Peterson [Thu, 18 Aug 2011 18:51:47 +0000 (13:51 -0500)]
the named of the character is actually NUL

13 years agoIssue #12650: Fix a race condition where a subprocess.Popen could leak
Charles-François Natali [Thu, 18 Aug 2011 17:11:29 +0000 (19:11 +0200)]
Issue #12650: Fix a race condition where a subprocess.Popen could leak
resources (FD/zombie) when killed at the wrong time.

13 years agoIssue #12650: Fix a race condition where a subprocess.Popen could leak
Charles-François Natali [Thu, 18 Aug 2011 16:49:39 +0000 (18:49 +0200)]
Issue #12650: Fix a race condition where a subprocess.Popen could leak
resources (FD/zombie) when killed at the wrong time.

13 years agomerge 3.2
Benjamin Peterson [Thu, 18 Aug 2011 15:49:16 +0000 (10:49 -0500)]
merge 3.2

13 years agoNUL -> NULL
Benjamin Peterson [Thu, 18 Aug 2011 15:48:50 +0000 (10:48 -0500)]
NUL -> NULL

13 years agoIssue #12326: don't test the major version of sys.platform
Victor Stinner [Wed, 17 Aug 2011 18:49:41 +0000 (20:49 +0200)]
Issue #12326: don't test the major version of sys.platform

Use startswith, instead of ==, when testing sys.platform to support
new platforms like Linux 3 or OpenBSD 5.

13 years agochange word
Benjamin Peterson [Wed, 17 Aug 2011 17:05:13 +0000 (12:05 -0500)]
change word

13 years agomake __doc__ mutable on heaptypes (closes #12773)
Benjamin Peterson [Wed, 17 Aug 2011 17:03:47 +0000 (12:03 -0500)]
make __doc__ mutable on heaptypes (closes #12773)

13 years agofactor out common checks for setting special type attributes
Benjamin Peterson [Wed, 17 Aug 2011 16:54:03 +0000 (11:54 -0500)]
factor out common checks for setting special type attributes