]> git.ipfire.org Git - thirdparty/Python/cpython.git/log
thirdparty/Python/cpython.git
19 years agotake 3 v2.4.3c1
Anthony Baxter [Thu, 23 Mar 2006 02:49:35 +0000 (02:49 +0000)] 
take 3

19 years agoaarrrrghhh
Anthony Baxter [Thu, 23 Mar 2006 02:49:17 +0000 (02:49 +0000)] 
aarrrrghhh

19 years ago2.4.3c1
Anthony Baxter [Thu, 23 Mar 2006 02:26:32 +0000 (02:26 +0000)] 
2.4.3c1

19 years agoupdate - still some old .cvsignore files lying around
Anthony Baxter [Thu, 23 Mar 2006 02:26:07 +0000 (02:26 +0000)] 
update - still some old .cvsignore files lying around

19 years agotake2...
Anthony Baxter [Thu, 23 Mar 2006 02:25:51 +0000 (02:25 +0000)] 
take2...

19 years agoTagging for 2.4.3c1
Anthony Baxter [Thu, 23 Mar 2006 02:22:32 +0000 (02:22 +0000)] 
Tagging for 2.4.3c1

19 years agoupdate svn:ignore across the board
Anthony Baxter [Thu, 23 Mar 2006 02:21:49 +0000 (02:21 +0000)] 
update svn:ignore across the board

19 years ago2.4.3c1
Anthony Baxter [Thu, 23 Mar 2006 02:20:57 +0000 (02:20 +0000)] 
2.4.3c1

19 years ago2.4.3c1
Anthony Baxter [Thu, 23 Mar 2006 02:13:43 +0000 (02:13 +0000)] 
2.4.3c1

19 years agoChange SystemError into SyntaxError, when a Unicode string
Martin v. Löwis [Wed, 22 Mar 2006 13:55:50 +0000 (13:55 +0000)] 
Change SystemError into SyntaxError, when a Unicode string
containing an encoding declaration is compile()d. Fixes
#1115379.

19 years ago2.4.3c1 preparations
Anthony Baxter [Wed, 22 Mar 2006 04:00:19 +0000 (04:00 +0000)] 
2.4.3c1 preparations

19 years agoBackport of r41629: hotshot generated half-meaningless numbers since the
Armin Rigo [Mon, 20 Mar 2006 09:37:16 +0000 (09:37 +0000)] 
Backport of r41629: hotshot generated half-meaningless numbers since the
introduction of C calls profiling events.

19 years agoCatch situations where currentframe() returns None. See SF patch #1447410, this is...
Vinay Sajip [Mon, 20 Mar 2006 09:22:40 +0000 (09:22 +0000)] 
Catch situations where currentframe() returns None. See SF patch #1447410, this is a different implementation.

19 years agoThe new fetch_data_files.py downloads all the input data files
Tim Peters [Mon, 20 Mar 2006 06:06:07 +0000 (06:06 +0000)] 
The new fetch_data_files.py downloads all the input data files
used by encoding tests.  Fiddled the Windows buildbot helper
scripts to invoke this if needed.  Note that this isn't needed
on the trunk (the encoding tests download input files automatically
in 2.5).

19 years agoMerge revs 42842, 42844, and part of a whitespace normalization
Tim Peters [Mon, 20 Mar 2006 02:12:05 +0000 (02:12 +0000)] 
Merge revs 42842, 42844, and part of a whitespace normalization
patch from the trunk.

This stops test_socket_ssl from dying with:

    TypeError: 'NoneType' object is not callable

in urlparsre.py's urljoin() when the tests are run in this order:

    test_???
    test_importhooks
    test_socket_ssl

"test_???" can be various things, but must be there.  For
example, test_urllibnet "works" to provoke the failure.

Alas, nobody actually understands _why_ test_socket_ssl fails
then, or why this hack makes the problem go away.

Amazingly, the tests just happened to run in the right order on
the 2.4 branch on two Windows buildbot slaves today, causing them
both to fail their most recent test runs before this patch.

19 years agoBackport 43147:
Neal Norwitz [Mon, 20 Mar 2006 02:05:58 +0000 (02:05 +0000)] 
Backport 43147:
Fix problem spotted by Coverity that occurs if tzinfo.tzname().replace()
returns a non-string when converting %Z.

19 years ago Source file f.flush() after writing; trying to avoid lossage if user
Kurt B. Kaiser [Sun, 19 Mar 2006 22:12:03 +0000 (22:12 +0000)] 
 Source file f.flush() after writing; trying to avoid lossage if user
 kills GUI.  Report from Bruce Sherwood.

19 years agoMerge rev 43091 from the trunk.
Tim Peters [Sat, 18 Mar 2006 02:47:38 +0000 (02:47 +0000)] 
Merge rev 43091 from the trunk.

"""
Try to find a host that responds slower from python.org so this test
does not fail on macteagle (G4 OSX.4 in buildbot)
"""

Since testConnectTimeout() frequently fails in the same way in 2.4
branch, and this patch seems to have fixed it on the trunk, it
should fix it on the 2.4 branch too.

19 years agoBackport: Fix missing NULL checks after PyTuple_New, PyList_New, PyDict_New
Georg Brandl [Fri, 17 Mar 2006 19:04:15 +0000 (19:04 +0000)] 
Backport: Fix missing NULL checks after PyTuple_New, PyList_New, PyDict_New

19 years agoMerge rev 43081 from trunk.
Tim Peters [Thu, 16 Mar 2006 18:56:35 +0000 (18:56 +0000)] 
Merge rev 43081 from trunk.

Set eol-style to native.

19 years agoMerge rev 43079 from the trunk. This should allow test_winsound to pass
Tim Peters [Thu, 16 Mar 2006 18:52:17 +0000 (18:52 +0000)] 
Merge rev 43079 from the trunk.  This should allow test_winsound to pass
on a box without a sound card.

Update test_winsound to check for a configured sound card (using a VBScript
helper written by Roger Upole and Mark Hammond) and adjust the expected
PlaySoundTest case results accordingly.

19 years agoMerge rev 43063 from trunk.
Tim Peters [Thu, 16 Mar 2006 02:33:55 +0000 (02:33 +0000)] 
Merge rev 43063 from trunk.

Oops!  Use python_d.exe _before_ it's destroyed :-)

19 years agoMerge rev 43061 from the trunk.
Tim Peters [Thu, 16 Mar 2006 01:56:34 +0000 (01:56 +0000)] 
Merge rev 43061 from the trunk.

Change the Windows buildbot "clean" step to remove
stale .pyc files.

19 years agoBackport 43037:
Neal Norwitz [Wed, 15 Mar 2006 05:44:35 +0000 (05:44 +0000)] 
Backport 43037:

Move test code out of xxmodule and into _testcapimodule.c where it belongs.

19 years agoBackport 42932:
Neal Norwitz [Tue, 14 Mar 2006 06:47:07 +0000 (06:47 +0000)] 
Backport 42932:

Try to be a bit more consistent on all platforms:
 python .
 python < .

both print a message, return non-zero and do not core dump.
This hopefully fixes the failure on Solaris.

19 years agoBackport 43022:
Neal Norwitz [Tue, 14 Mar 2006 06:10:22 +0000 (06:10 +0000)] 
Backport 43022:

Fix and test (manually w/xx module) passing NULLs to PyObject_Str() and
PyObject_Unicode().  This problem was originally reported from Coverity
and addresses mail on python-dev "checkin r43015".

This inlines the conversion of the string to unicode and cleans
up/simplifies some code at the end of the PyObject_Unicode().

We really need a complete C API test module for all public APIs
and passing good and bad parameter values.

19 years agoFix bug found by Coverity: don't allow NULL argument to PyUnicode_CheckExact
Georg Brandl [Mon, 13 Mar 2006 22:22:15 +0000 (22:22 +0000)] 
Fix bug found by Coverity: don't allow NULL argument to PyUnicode_CheckExact
 (backport from rev. 43014)

19 years agoBackport of 42994:
Martin v. Löwis [Mon, 13 Mar 2006 13:08:41 +0000 (13:08 +0000)] 
Backport of 42994:

Let the buildbot make a single pass in the test suite only.

19 years agoBackport of 42993:
Martin v. Löwis [Mon, 13 Mar 2006 13:06:46 +0000 (13:06 +0000)] 
Backport of 42993:

Update to bzip2 1.0.3
Make buildbot slaves automatically fetch bzip2 1.0.3.

19 years agoBackport from trunk r42989:
Hye-Shik Chang [Mon, 13 Mar 2006 10:24:31 +0000 (10:24 +0000)] 
Backport from trunk r42989:

Bug #1448490: Fixed a bug that ISO-2022 codecs could not handle
SS2 (single-shift 2) escape sequences correctly.

19 years agoMerge rev 42963 from the trunk.
Tim Peters [Mon, 13 Mar 2006 05:53:04 +0000 (05:53 +0000)] 
Merge rev 42963 from the trunk.

When the new -w option (yay! great idea) reruns a
failed test, first display the name of the test (else
it's not always clear from the output which test is
getting run).

19 years agoMerge rev 41859 from the trunk.
Tim Peters [Mon, 13 Mar 2006 04:50:34 +0000 (04:50 +0000)] 
Merge rev 41859 from the trunk.

test_main():  Restore the original root logger level after running
the tests.  This stops the confusing/annoying:

    No handlers could be found for logger "cookielib"

message we got whenever some test running after test_logging
happened to use cookielib.py (when not using regrtest's -r,
this happened during test_urllib2; when using -r, it varied).

19 years agoMerge rev 42984 from trunk.
Tim Peters [Mon, 13 Mar 2006 04:17:40 +0000 (04:17 +0000)] 
Merge rev 42984 from trunk.

Adding the /useenv means that one's PATH actually gets through. This is
important for the _ssl.vproj build. It calls build_ssl.py which tries to
find a Perl to use. Without "/useenv" Visual Studio is getting a PATH
from somewhere else (presumably from its internal environment
configuration). The result is that build_ssl.py fallsback to its
"well-known" locations for a Perl install.

19 years agoMove buildbot scripts to Tools/buildbot.
Martin v. Löwis [Sun, 12 Mar 2006 09:51:52 +0000 (09:51 +0000)] 
Move buildbot scripts to Tools/buildbot.

19 years agoAdd a do-nothing "clean" operation to the _ssl project,
Tim Peters [Sun, 12 Mar 2006 07:05:34 +0000 (07:05 +0000)] 
Add a do-nothing "clean" operation to the _ssl project,
so the buildbot's "clean" step doesn't fail due to
_ssl whining that it can't spawn an empty string.

19 years agoCopied from the trunk for buildbot use.
Tim Peters [Sun, 12 Mar 2006 07:01:31 +0000 (07:01 +0000)] 
Copied from the trunk for buildbot use.

19 years agoCopy from the trunk, for the buildbot.
Tim Peters [Sun, 12 Mar 2006 06:49:18 +0000 (06:49 +0000)] 
Copy from the trunk, for the buildbot.

19 years agoCopy from the trunk, for the buildbot.
Tim Peters [Sun, 12 Mar 2006 06:48:57 +0000 (06:48 +0000)] 
Copy from the trunk, for the buildbot.

19 years agoMerge rev 42904 from the trunk.
Tim Peters [Sat, 11 Mar 2006 04:55:45 +0000 (04:55 +0000)] 
Merge rev 42904 from the trunk.

_hotshot hotshot_profiler():  If write_header() returned
an error code, this let `self` leak.  This is a disaster
on Windows, since `self` already points to a newly-opened
file object, and it was impossible for Python code to
close the thing since the only reference to it was in a
blob of leaked C memory.

test_hotshot test_bad_sys_path():  This new test provoked
the C bug above.  This test passed, but left an open
"@test" file behind, which caused a massive cascade of
bogus test failures in later, unrelated tests on Windows.
Changed the test code to remove the @test file it leaves
behind, which relies on the change above to close that
file first.

19 years agoBackport of 42551 (EXTRATESTOPTS).
Martin v. Löwis [Fri, 10 Mar 2006 22:56:20 +0000 (22:56 +0000)] 
Backport of 42551 (EXTRATESTOPTS).

19 years agoBackport of 42960, to support the options buildbot uses.
Martin v. Löwis [Fri, 10 Mar 2006 22:15:48 +0000 (22:15 +0000)] 
Backport of 42960, to support the options buildbot uses.

19 years agoBug #1445901: os.path.realpath() is available on Win/Mac too.
Georg Brandl [Wed, 8 Mar 2006 20:59:12 +0000 (20:59 +0000)] 
Bug #1445901: os.path.realpath() is available on Win/Mac too.
 (backport from rev. 42923)

19 years agoFix pydoc.synopsis() so that it doesn't error out with an unreadable
Georg Brandl [Wed, 8 Mar 2006 09:34:57 +0000 (09:34 +0000)] 
Fix pydoc.synopsis() so that it doesn't error out with an unreadable
module.
 (backport from rev. 42912)

19 years agoBackport fixes reported by Coverity.
Neal Norwitz [Wed, 8 Mar 2006 06:39:50 +0000 (06:39 +0000)] 
Backport fixes reported by Coverity.

19 years agoTypo fix
Andrew M. Kuchling [Tue, 7 Mar 2006 16:17:09 +0000 (16:17 +0000)] 
Typo fix

19 years agoBackport r42894: SF #1444030 Fix several potential defects found
Hye-Shik Chang [Tue, 7 Mar 2006 15:59:09 +0000 (15:59 +0000)] 
Backport r42894: SF #1444030 Fix several potential defects found
by Coverity.

19 years agoBackport trunk's r42890 (thomas.wouters):
Thomas Wouters [Tue, 7 Mar 2006 14:16:02 +0000 (14:16 +0000)] 
Backport trunk's r42890 (thomas.wouters):

Coverity found bug: test result of PyTuple_New() against NULL before use.

and r42891 (thomas.wouters):

Fix gcc 4.0.x warning about use of uninitialized value.

19 years agoBackport trunk's r42888 (thomas.wouters):
Thomas Wouters [Tue, 7 Mar 2006 14:06:31 +0000 (14:06 +0000)] 
Backport trunk's r42888 (thomas.wouters):

Coverity found refleak: need to free 'v' after calling Tkinter_Error().

19 years agoBackport trunk's r42885 (thomas.wouters):
Thomas Wouters [Tue, 7 Mar 2006 13:39:26 +0000 (13:39 +0000)] 
Backport trunk's r42885 (thomas.wouters):

Coverity-found bug: don't use temp->next *before* checking it for NULL. Also
return rather than use it again.

19 years agoBackport trunk's r42878 (neal.norwitz):
Thomas Wouters [Tue, 7 Mar 2006 12:08:42 +0000 (12:08 +0000)] 
Backport trunk's r42878 (neal.norwitz):

Thanks to Coverity, these were all reported by their Prevent tool.

and r42881 (thomas.wouters):

Don't DECREF a borrowed reference.

19 years agoBackport revision 42872:
Walter Dörwald [Mon, 6 Mar 2006 22:44:03 +0000 (22:44 +0000)] 
Backport revision 42872:
If size is specified, try to read at least size characters.
This is a alternative version of patch #1379332.

19 years agoSkip codecs tests on Python 2.3.
Barry Warsaw [Mon, 6 Mar 2006 00:55:25 +0000 (00:55 +0000)] 
Skip codecs tests on Python 2.3.

19 years agoBackport: SF #1442767, docs for os.statvfs miss f_bsize parameter.
Neal Norwitz [Fri, 3 Mar 2006 23:13:19 +0000 (23:13 +0000)] 
Backport: SF #1442767, docs for os.statvfs miss f_bsize parameter.

19 years agoBackport of memory leak fixes.
Martin v. Löwis [Wed, 1 Mar 2006 21:36:32 +0000 (21:36 +0000)] 
Backport of memory leak fixes.

19 years agoReturn value off PyErr_Warn() for raising string exceptions was not being
Brett Cannon [Mon, 27 Feb 2006 23:15:56 +0000 (23:15 +0000)] 
Return value off PyErr_Warn() for raising string exceptions was not being
checked.  Problem when 'warnings' was set to "error" and thus would re-raise a
new exception.

19 years agodo_mkvalue(): Squash compiler warnings about mixing
Tim Peters [Mon, 27 Feb 2006 17:49:41 +0000 (17:49 +0000)] 
do_mkvalue():  Squash compiler warnings about mixing
signed and unsigned types in comparison.

19 years agoMerge rev 42607 from the trunk.
Tim Peters [Mon, 27 Feb 2006 17:47:02 +0000 (17:47 +0000)] 
Merge rev 42607 from the trunk.

Patch 1413181, by Gabriel Becedillas.

PyThreadState_Delete():  if the auto-GIL-state machinery knows about
the thread state, forget it (since the thread state is being deleted,
continuing to remember it can't help, but can hurt if another thread
happens to get created with the same thread id).

19 years agoTrimmed trailing whitespace.
Tim Peters [Mon, 27 Feb 2006 17:22:16 +0000 (17:22 +0000)] 
Trimmed trailing whitespace.

19 years agobackport
Skip Montanaro [Sat, 25 Feb 2006 21:04:03 +0000 (21:04 +0000)] 
backport

19 years agoBackport 41753:
Neal Norwitz [Tue, 21 Feb 2006 09:19:45 +0000 (09:19 +0000)] 
Backport 41753:
  Bug #1378022, UTF-8 files with a leading BOM crashed the interpreter.
  Also bug #1435487 (dup).

19 years agoBug #947571: By default, urllib.urlopen() does not raise IOErrors
Georg Brandl [Mon, 20 Feb 2006 21:26:29 +0000 (21:26 +0000)] 
Bug #947571: By default, urllib.urlopen() does not raise IOErrors
on server error codes. Make this clear.

19 years agoBug #1210377: close bsddb cursor correctly after NotFoundError.
Georg Brandl [Mon, 20 Feb 2006 20:29:56 +0000 (20:29 +0000)] 
Bug #1210377: close bsddb cursor correctly after NotFoundError.

19 years agoPatch #931938: prevent setting sys.prefix to ""
Georg Brandl [Mon, 20 Feb 2006 17:37:39 +0000 (17:37 +0000)] 
Patch #931938: prevent setting sys.prefix to ""

19 years agoBug #1102649: add a note to pickle docs that pickle files should be
Georg Brandl [Mon, 20 Feb 2006 13:12:07 +0000 (13:12 +0000)] 
Bug #1102649: add a note to pickle docs that pickle files should be
opened in binary mode.

19 years agoBug #1323369: document possible values of sys.getwindowsversion()
Georg Brandl [Mon, 20 Feb 2006 12:15:26 +0000 (12:15 +0000)] 
Bug #1323369: document possible values of sys.getwindowsversion()
platform field

19 years agoBug #1101233: fix test_fcntl on netbsd2 platform.
Georg Brandl [Mon, 20 Feb 2006 10:32:05 +0000 (10:32 +0000)] 
Bug #1101233: fix test_fcntl on netbsd2 platform.

19 years agoBackported from r41842.
Armin Rigo [Mon, 20 Feb 2006 10:21:14 +0000 (10:21 +0000)] 
Backported from r41842.

19 years agoBug #854823: socketmodule now builds on Sun platforms even when
Georg Brandl [Mon, 20 Feb 2006 09:42:37 +0000 (09:42 +0000)] 
Bug #854823: socketmodule now builds on Sun platforms even when
INET_ADDRSTRLEN is not defined.

19 years agoMake clear that patch #1336582 wasn't a new feature.
Georg Brandl [Sun, 19 Feb 2006 13:22:58 +0000 (13:22 +0000)] 
Make clear that patch #1336582 wasn't a new feature.

19 years agoPatch #1337756: fileinput now accepts Unicode filenames.
Georg Brandl [Sun, 19 Feb 2006 09:51:33 +0000 (09:51 +0000)] 
Patch #1337756: fileinput now accepts Unicode filenames.

19 years agoPatch #1352711: make zipimport raise a complete IOError
Georg Brandl [Sun, 19 Feb 2006 09:39:02 +0000 (09:39 +0000)] 
Patch #1352711: make zipimport raise a complete IOError

19 years agoBug #801349: document that start/stop/step slice arguments can be None
Georg Brandl [Sun, 19 Feb 2006 00:12:46 +0000 (00:12 +0000)] 
Bug #801349: document that start/stop/step slice arguments can be None

19 years agoPatch #1415507: clarify docs on reference stealing
Georg Brandl [Sat, 18 Feb 2006 22:56:02 +0000 (22:56 +0000)] 
Patch #1415507: clarify docs on reference stealing

19 years agoBug #1366000: cleanup BZ2File.seek() logic. Fixes the case of whence=2, offset>=0.
Georg Brandl [Sat, 18 Feb 2006 21:57:28 +0000 (21:57 +0000)] 
Bug #1366000: cleanup BZ2File.seek() logic. Fixes the case of whence=2, offset>=0.

19 years agoBackport: This should get test_timeout to pass when running on any python.org host.
Neal Norwitz [Sat, 18 Feb 2006 21:25:56 +0000 (21:25 +0000)] 
Backport: This should get test_timeout to pass when running on any python.org host.

19 years agoPatch #1373643: The chunk module can now read chunks larger than
Georg Brandl [Sat, 18 Feb 2006 21:10:59 +0000 (21:10 +0000)] 
Patch #1373643: The chunk module can now read chunks larger than
two gigabytes.

19 years agoRemove soundex from "undocumented modules".
Georg Brandl [Fri, 17 Feb 2006 11:51:20 +0000 (11:51 +0000)] 
Remove soundex from "undocumented modules".

19 years agoBug #1430298: It is now possible to send a mail with an empty
Georg Brandl [Fri, 17 Feb 2006 09:53:00 +0000 (09:53 +0000)] 
Bug #1430298: It is now possible to send a mail with an empty
return address using smtplib.

19 years agoBug #1432260: better handle lambda functions' names in pydoc
Georg Brandl [Fri, 17 Feb 2006 09:47:47 +0000 (09:47 +0000)] 
Bug #1432260: better handle lambda functions' names in pydoc

19 years agoPatch #1432345: Make python compile on DragonFly.
Martin v. Löwis [Fri, 17 Feb 2006 08:39:55 +0000 (08:39 +0000)] 
Patch #1432345: Make python compile on DragonFly.

19 years agoCast assignments to ``unsigned char *`` from PyString_AS_STRING() calls to
Brett Cannon [Thu, 16 Feb 2006 07:01:45 +0000 (07:01 +0000)] 
Cast assignments to ``unsigned char *`` from PyString_AS_STRING() calls to
silence compiler warnings on gcc 4.0.1 .

19 years agouse correct function in example (backport of trunk revision 42377)
Fred Drake [Wed, 15 Feb 2006 06:56:35 +0000 (06:56 +0000)] 
use correct function in example (backport of trunk revision 42377)

19 years agoSend failures to python-checkins, cc/me.
Neal Norwitz [Wed, 15 Feb 2006 05:02:00 +0000 (05:02 +0000)] 
Send failures to python-checkins, cc/me.

19 years agoAdd build.sh to 2.4 so we can build the docs (and only the docs).
Neal Norwitz [Tue, 14 Feb 2006 08:16:01 +0000 (08:16 +0000)] 
Add build.sh to 2.4 so we can build the docs (and only the docs).

19 years agoTry to improve name based on discussion on python-checkins with Jim Jewett
Neal Norwitz [Mon, 13 Feb 2006 00:37:09 +0000 (00:37 +0000)] 
Try to improve name based on discussion on python-checkins with Jim Jewett

19 years agoBackport r42314 which fixed Windows breakage when checking that socket
Neal Norwitz [Sun, 12 Feb 2006 21:07:17 +0000 (21:07 +0000)] 
Backport r42314 which fixed Windows breakage when checking that socket
descriptors fit in fd_set.

Introduce Py_SOCKET_FD_CAN_BE_GE_FD_SETSIZE.
Proposed by Tim Peters implemented by Martin von Loewis.

19 years agoEven more copyright locations!
Georg Brandl [Sat, 11 Feb 2006 18:21:44 +0000 (18:21 +0000)] 
Even more copyright locations!

19 years agoPatch #428494: Prefer linking against ncursesw over ncurses library
Martin v. Löwis [Sat, 11 Feb 2006 15:55:22 +0000 (15:55 +0000)] 
Patch #428494: Prefer linking against ncursesw over ncurses library

19 years agoUpdate general copyright year to 2006.
Georg Brandl [Sat, 11 Feb 2006 15:30:59 +0000 (15:30 +0000)] 
Update general copyright year to 2006.

19 years agoPort of r42279 to email 3.0, but without the Python 2.1 backward compatible
Barry Warsaw [Thu, 9 Feb 2006 04:10:03 +0000 (04:10 +0000)] 
Port of r42279 to email 3.0, but without the Python 2.1 backward compatible
nonsense.

Resolve SF bug 1409403: email.Message should supress warning from uu.decode.

19 years agoPort of r42271 from the trunk -- relevant patches for SF 1409455 for email
Barry Warsaw [Wed, 8 Feb 2006 14:58:55 +0000 (14:58 +0000)] 
Port of r42271 from the trunk -- relevant patches for SF 1409455 for email
3.0/Python 2.4.

19 years agoBackport:
Neal Norwitz [Tue, 7 Feb 2006 07:17:37 +0000 (07:17 +0000)] 
Backport:
Bug #876637, prevent stack corruption when socket descriptor
is larger than FD_SETSIZE.

This can only be acheived with ulimit -n SOME_NUMBER_BIGGER_THAN_FD_SETSIZE
which is typically only available to root.  Since this wouldn't normally
be run in a test (ie, run as root), it doesn't seem too worthwhile to
add a normal test.  The bug report has one version of a test.  I've
written another.  Not sure what the best thing to do is.

Do the check before calling internal_select() because we can't set
an error in between Py_BEGIN_ALLOW_THREADS and Py_END_ALLOW_THREADS.
This seemed the clearest solution.

19 years agoBackport:
Neal Norwitz [Sun, 5 Feb 2006 06:00:54 +0000 (06:00 +0000)] 
Backport:
  Patch #1407135, bug #1424041: mmap.mmap(-1, size, ...) can return
  anonymous memory again on Unix.

19 years agoResolves SF bug #1423972.
Barry Warsaw [Sat, 4 Feb 2006 23:45:12 +0000 (23:45 +0000)] 
Resolves SF bug #1423972.

19 years agoSF bug 1415455, fix typo in module name
Neal Norwitz [Sat, 4 Feb 2006 22:59:56 +0000 (22:59 +0000)] 
SF bug 1415455, fix typo in module name

19 years agoFix typo
Neal Norwitz [Sat, 4 Feb 2006 03:29:52 +0000 (03:29 +0000)] 
Fix typo

19 years agoPort r42228 from the trunk.
Barry Warsaw [Fri, 3 Feb 2006 05:41:33 +0000 (05:41 +0000)] 
Port r42228 from the trunk.

19 years agoWork around a Solaris peculiarity that caused test_pty to sometimes fail: a
Thomas Wouters [Sat, 28 Jan 2006 12:08:39 +0000 (12:08 +0000)] 
Work around a Solaris peculiarity that caused test_pty to sometimes fail: a
tty opened by os.openpty() isn't always a tty according to os.isatty(), when
it's tested inside the process that opened it. Doesn't affect actual
functionality, as using a tty this way is rarely, if ever, useful. Ignoring
the failure allows the test for actual functionality to continue.

19 years agoFix PyGC_Collect() to be exported from the built DLL on Windows. (Fix given
Barry Warsaw [Thu, 26 Jan 2006 18:49:57 +0000 (18:49 +0000)] 
Fix PyGC_Collect() to be exported from the built DLL on Windows.  (Fix given
by Matt Messier).

19 years agoBackport 42173: get bsddb test_associate to pass with BSDDB 4.1
Neal Norwitz [Thu, 26 Jan 2006 05:19:56 +0000 (05:19 +0000)] 
Backport 42173: get bsddb test_associate to pass with BSDDB 4.1