Commit Graph

49639 Commits

Author SHA1 Message Date
Éric Araujo
c739066914 Branch merge 2011-05-29 18:08:34 +02:00
Martin v. Löwis
a7eaa41f7f Use bytes in myreceive. 2011-05-29 17:15:44 +02:00
Martin v. Löwis
987475c956 Explain that INET is IPv4 and STREAM is TCP. 2011-05-29 16:54:08 +02:00
Charles-François Natali
2d51721832 Issue #12196: Add PIPE_MAX_SIZE to test.support, constant larger than the
underlying OS pipe buffer size.
2011-05-29 16:36:44 +02:00
Ned Deily
b30eed981f Record null merge of Issue #12205 2011-05-29 02:43:43 -07:00
Ned Deily
6747381007 Record null merge of Issue #12205 2011-05-29 02:42:28 -07:00
Ned Deily
d5a91961dd Issue #12205: Fix test_subprocess failure due to uninstalled test data. 2011-05-29 02:39:02 -07:00
Ned Deily
fbdc25ee24 Null merge to record previous incorrecly merged changeset from 3.2 branch:
changeset:   70465:4f248dd34dd9
branch:      3.2
parent:      70463:7f2e3c466d57
user:        Gregory P. Smith <greg@krypto.org>
date:        Sat May 28 09:06:02 2011 -0700
files:       Lib/test/test_subprocess.py
description:
Fix ProcessTestCasePOSIXPurePython to test the module from import when

changeset:   70466:2c91045d16a6
parent:      70464:2936e8f12e4f
user:        Gregory P. Smith <greg@krypto.org>
date:        Sat May 28 09:06:02 2011 -0700
files:       Lib/test/test_subprocess.py
description:
Fix ProcessTestCasePOSIXPurePython to test the module from import when
2011-05-29 02:16:36 -07:00
Éric Araujo
f21563160e Put version* directives at the right scope 2011-05-29 03:27:48 +02:00
Éric Araujo
bc57789daf Improve example for crypt module. No string exceptions.. 2011-05-29 03:24:45 +02:00
Éric Araujo
7f9b37be45 Port r86353 to packaging (#10359: “;” after function definition is invalid in ISO C) 2011-05-29 02:59:52 +02:00
Éric Araujo
601aba6f15 Merge touch-ups and fixes for #9831 (+port fix to packaging) and #9223 from 3.2 2011-05-29 00:56:39 +02:00
Éric Araujo
c5069e0070 Merge doc touch-ups and fixes for #9831 and #9223 from 3.1 2011-05-29 00:29:56 +02:00
Éric Araujo
456ae893d7 Re-add missing doc stub for the distutils check command 2011-05-29 00:22:06 +02:00
Éric Araujo
000893fab2 Minor touch-ups in distutils.cmd.Command doc 2011-05-29 00:14:45 +02:00
Éric Araujo
489c8ff26b Fix test_build_py when sys.dont_write_bytecode is true (#9831).
The tests now pass all combinations of -O/-OO and -B.  See also #7071
and #6292 for previous variations on the same theme.

test_versionpredicate needs a skip when sys.flags.optimize is true, but
I don’t know how to make that work with a DocTestSuite.
2011-05-28 23:32:50 +02:00
Gregory P. Smith
8281ba8bcb follow on to the last commit, remove the final POSIXPurePythonTestCase
reference.  (the difference between running test_subprocess.py
directly rather than via regrtest.py)
2011-05-28 10:00:14 -07:00
Gregory P. Smith
59fd1bfcc1 The _posixsubprocess module is now required on POSIX.
Remove the pure Python POSIX subprocess implementation.

If non-CPython VMs (are there any for 3.x yet?) were somehow depending
on this, they already have the exact same set of problems with Python
code being executed after os.fork() that _posixsubprocess was written
to deal with.  They should implement an equivalent outside of Python.
2011-05-28 09:32:39 -07:00
Gregory P. Smith
7439e7b7ce Fix ProcessTestCasePOSIXPurePython to test the module from import when
_posixsubprocess doesn't exist rather than simply stubbing it out
after the fact.  This adds coverage for the RuntimeWarning as well as
using the pure python _create_pipe instead of using
_posixsubprocess.cloexec_pipe unintentionally with the pure python
code.

Ironically: I don't think any platform should ever actually _use_ the
pure Python subprocess code on POSIX platforms anymore.  This at least
tests it properly in this stable branch.  The pure python code for
this is likely to be removed in 3.3.
2011-05-28 09:06:02 -07:00
Gregory P. Smith
c80504fb69 Fix ProcessTestCasePOSIXPurePython to test the module from import when
_posixsubprocess doesn't exist rather than simply stubbing it out
after the fact.  This adds coverage for the RuntimeWarning as well as
using the pure python _create_pipe instead of using
_posixsubprocess.cloexec_pipe unintentionally with the pure python
code.

Ironically: I don't think any platform should ever actually _use_ the
pure Python subprocess code on POSIX platforms anymore.  This at least
tests it properly in this stable branch.  The pure python code for
this is likely to be removed in 3.3.
2011-05-28 09:06:02 -07:00
Ned Deily
e4eed06dfa Issue #11217: For 64-bit/32-bit Mac OS X universal framework builds,
ensure "make install" creates symlinks in --prefix bin for the "-32"
files in the framework bin directory like the installer does.
2011-05-28 06:04:02 -07:00
Ned Deily
6e5fd04ce2 Issue #11217: For 64-bit/32-bit Mac OS X universal framework builds,
ensure "make install" creates symlinks in --prefix bin for the "-32"
files in the framework bin directory like the installer does.
2011-05-28 05:59:55 -07:00
Ned Deily
59a333844a Issue #985064: Make plistlib more resilient to faulty input plists.
Patch by Mher Movsisyan.
2011-05-28 03:09:33 -07:00
Ned Deily
32b5cb0a66 Issue #985064: Make plistlib more resilient to faulty input plists.
Patch by Mher Movsisyan.
2011-05-28 03:02:30 -07:00
Ned Deily
b8e59f77e6 Issue #985064: Make plistlib more resilient to faulty input plists.
Patch by Mher Movsisyan.
2011-05-28 02:19:19 -07:00
Ned Deily
61be422bd7 Issue #9670: Increase the default stack size for secondary threads on
Mac OS X and FreeBSD to reduce the chances of a crash instead of a
"maximum recursion depth" RuntimeError exception.
(patch by Ronald Oussoren)
2011-05-28 00:45:52 -07:00
Ned Deily
056f5b9dad Issue #9670: Increase the default stack size for secondary threads on
Mac OS X and FreeBSD to reduce the chances of a crash instead of a
"maximum recursion depth" RuntimeError exception.
(patch by Ronald Oussoren)
2011-05-28 00:36:12 -07:00
Ned Deily
9a7c524dc6 Issue #9670: Increase the default stack size for secondary threads on
Mac OS X and FreeBSD to reduce the chances of a crash instead of a
"maximum recursion depth" RuntimeError exception.
(patch by Ronald Oussoren)
2011-05-28 00:19:56 -07:00
Benjamin Peterson
aeabd5f29c add some with syntax examples 2011-05-27 15:02:03 -05:00
Benjamin Peterson
d8255e0e9e merge 3.2 2011-05-27 14:17:35 -05:00
Benjamin Peterson
a290bac5b1 merge 3.1 2011-05-27 14:17:19 -05:00
Benjamin Peterson
0a5dad9ef1 fix spacing 2011-05-27 14:17:04 -05:00
Benjamin Peterson
4a0f20f5a3 merge 3.2 2011-05-27 14:12:53 -05:00
Benjamin Peterson
5218853c67 merge 3.1 2011-05-27 14:10:36 -05:00
Benjamin Peterson
74897ba46f fix indentation 2011-05-27 14:10:24 -05:00
Benjamin Peterson
7f670e5dad bump ast version 2011-05-27 14:01:01 -05:00
Benjamin Peterson
bf1bbc1452 reflect with statements with multiple items in the AST (closes #12106) 2011-05-27 13:58:08 -05:00
Victor Stinner
0501070669 Revert my commit 3555cf6f9c98: "Issue #8796: codecs.open() calls the builtin
open() function instead of using StreamReaderWriter. Deprecate StreamReader,
StreamWriter, StreamReaderWriter, StreamRecoder and EncodedFile() of the codec
module. Use the builtin open() function or io.TextIOWrapper instead."

"It has not been approved !" wrote Marc-Andre Lemburg.
2011-05-27 16:50:40 +02:00
Victor Stinner
4f2dab5c33 Revert my commit 7ba176c2f558: "Avoid useless "++" at the end of functions
Warnings found by the Clang Static Analyzer."

Most people prefer ++ at the end of functions.
2011-05-27 16:46:51 +02:00
Benjamin Peterson
43b068648e try to use the same str object for all code filenames when compiling or unmarshalling (#12190)
This should reduce memory usage.
2011-05-27 09:08:01 -05:00
Benjamin Peterson
d408503b2c remove unused string WILFE attribute 2011-05-27 07:53:28 -05:00
Éric Araujo
f33de71514 Minor doc addition for clarity 2011-05-27 04:42:47 +02:00
Éric Araujo
e0854f9dbf Add missing closing paren 2011-05-27 04:36:52 +02:00
Nadeem Vawda
4e18ac850f Merge heads 2011-05-27 02:03:06 +02:00
Nadeem Vawda
200e00a904 Update bz2 docs following issue #1625. 2011-05-27 01:52:16 +02:00
Nadeem Vawda
55b4338874 Issue #1625: BZ2File and bz2.decompress() now support multi-stream files.
Initial patch by Nir Aides.
2011-05-27 01:52:15 +02:00
Victor Stinner
98fe1a0c3b Issue #8796: codecs.open() calls the builtin open() function instead of using
StreamReaderWriter. Deprecate StreamReader, StreamWriter, StreamReaderWriter,
StreamRecoder and EncodedFile() of the codec module. Use the builtin open()
function or io.TextIOWrapper instead.
2011-05-27 01:51:18 +02:00
Benjamin Peterson
c556e10b94 fix typo 2011-05-26 17:49:57 -05:00
Éric Araujo
08ae8bb937 Move test_packaging news entries to the tests section 2011-05-26 17:06:47 +02:00
Benjamin Peterson
42fc33a5b6 add ack from 2.7 2011-05-26 09:59:17 -05:00