]> granicus.if.org Git - python/log
python
18 years agoFix stability of heapq's nlargest() and nsmallest().
Raymond Hettinger [Thu, 4 Jan 2007 17:53:16 +0000 (17:53 +0000)]
Fix stability of heapq's nlargest() and nsmallest().

18 years agoSF #1627373, fix typo in CarbonEvt.
Neal Norwitz [Thu, 4 Jan 2007 06:26:22 +0000 (06:26 +0000)]
SF #1627373, fix typo in CarbonEvt.

18 years agoFor sets with cyclical reprs, emit '...' instead of recursing.
Raymond Hettinger [Fri, 29 Dec 2006 18:49:13 +0000 (18:49 +0000)]
For sets with cyclical reprs, emit '...' instead of recursing.

18 years agoBackport trunk checkin r51565:
Thomas Wouters [Fri, 29 Dec 2006 14:42:17 +0000 (14:42 +0000)]
Backport trunk checkin r51565:

Fix SF bug #1545837: array.array borks on deepcopy. array.__deepcopy__()
needs to take an argument, even if it doesn't actually use it.

18 years agoSF bug #1623890, fix argument name in docstring
Neal Norwitz [Fri, 29 Dec 2006 03:01:06 +0000 (03:01 +0000)]
SF bug #1623890, fix argument name in docstring

18 years agoRemove a stray (old) macro name left around (I guess)
Neal Norwitz [Thu, 28 Dec 2006 04:39:54 +0000 (04:39 +0000)]
Remove a stray (old) macro name left around (I guess)

18 years agoPatch #1504073: Fix tarfile.open() for mode "r" with a fileobj argument.
Lars Gustäbel [Wed, 27 Dec 2006 10:36:58 +0000 (10:36 +0000)]
Patch #1504073: Fix tarfile.open() for mode "r" with a fileobj argument.

Backport from rev. 53161.

18 years agoPatch #1262036: Prevent TarFiles from being added to themselves under
Lars Gustäbel [Sat, 23 Dec 2006 18:13:57 +0000 (18:13 +0000)]
Patch #1262036: Prevent TarFiles from being added to themselves under
certain conditions.

(backport from rev. 53155)

Moved message from my previous change to the right place in
Misc/NEWS.

18 years agoPatch #1230446: tarfile.py: fix ExFileObject so that read() and tell()
Lars Gustäbel [Sat, 23 Dec 2006 16:51:47 +0000 (16:51 +0000)]
Patch #1230446: tarfile.py: fix ExFileObject so that read() and tell()
work correctly together with readline().

(backport from rev. 53153)

18 years ago[Patch #827559 from Chris Gonnerman] Make SimpleHTTPServer redirect when a directory...
Andrew M. Kuchling [Fri, 22 Dec 2006 19:08:41 +0000 (19:08 +0000)]
[Patch #827559 from Chris Gonnerman] Make SimpleHTTPServer redirect when a directory URL is missing the trailing slash; this lets relative links work.

18 years ago[Bug #737202; fix from Titus Brown] Make CGIHTTPServer work for scripts in sub-direct...
Andrew M. Kuchling [Fri, 22 Dec 2006 13:28:43 +0000 (13:28 +0000)]
[Bug #737202; fix from Titus Brown] Make CGIHTTPServer work for scripts in sub-directories

18 years agoFix wrong markup of an argument in a method signature.
Thomas Heller [Thu, 21 Dec 2006 18:31:36 +0000 (18:31 +0000)]
Fix wrong markup of an argument in a method signature.
Backported from trunk.

18 years agoMention the os.SEEK_* constants
Andrew M. Kuchling [Thu, 21 Dec 2006 13:41:46 +0000 (13:41 +0000)]
Mention the os.SEEK_* constants

18 years ago[Bug #1619680] in_dll() arguments are documented in the wrong order
Andrew M. Kuchling [Wed, 20 Dec 2006 20:20:56 +0000 (20:20 +0000)]
[Bug #1619680] in_dll() arguments are documented in the wrong order

18 years agoBackport doc changes from rev. 53112, 53115: use 'iterable' in various
Andrew M. Kuchling [Wed, 20 Dec 2006 20:15:08 +0000 (20:15 +0000)]
Backport doc changes from rev. 53112, 53115: use 'iterable' in various
places instead of 'sequence'.

18 years agoTwo grammar fixes
Andrew M. Kuchling [Wed, 20 Dec 2006 19:58:18 +0000 (19:58 +0000)]
Two grammar fixes

18 years agoBug #1590891: random.randrange don't return correct value for big number
Raymond Hettinger [Wed, 20 Dec 2006 07:43:59 +0000 (07:43 +0000)]
Bug #1590891:   random.randrange don't return correct value for big number

18 years agoUpdated documentation for findCaller() to indicate that a 3-tuple is now returned...
Vinay Sajip [Tue, 19 Dec 2006 18:31:22 +0000 (18:31 +0000)]
Updated documentation for findCaller() to indicate that a 3-tuple is now returned, rather than a 2-tuple.

18 years ago[Patch #1600491 from Jim Jewett] Describe how to build help files on Windows
Andrew M. Kuchling [Tue, 19 Dec 2006 15:19:14 +0000 (15:19 +0000)]
[Patch #1600491 from Jim Jewett] Describe how to build help files on Windows

18 years agoAdd NEWS item
Andrew M. Kuchling [Tue, 19 Dec 2006 15:13:44 +0000 (15:13 +0000)]
Add NEWS item

18 years ago[Patch #1617413 from Dug Song] Fix HTTP Basic authentication via HTTPS
Andrew M. Kuchling [Tue, 19 Dec 2006 15:12:23 +0000 (15:12 +0000)]
[Patch #1617413 from Dug Song] Fix HTTP Basic authentication via HTTPS

18 years agoAdd forgotten NEWS item for previous commit
Andrew M. Kuchling [Mon, 18 Dec 2006 20:27:30 +0000 (20:27 +0000)]
Add forgotten NEWS item for previous commit

18 years ago[Patch #1615868 by Lars Gustaebel] Use Py_off_t to fix BZ2File.seek() for offsets...
Andrew M. Kuchling [Mon, 18 Dec 2006 19:26:13 +0000 (19:26 +0000)]
[Patch #1615868 by Lars Gustaebel] Use Py_off_t to fix BZ2File.seek() for offsets > 2Gb

18 years ago[Bug #1618083] Add missing word; make a few grammar fixes
Andrew M. Kuchling [Mon, 18 Dec 2006 17:13:10 +0000 (17:13 +0000)]
[Bug #1618083] Add missing word; make a few grammar fixes

18 years ago[Patch #1599256 from David Watson] check that os.fsync is available before using it
Andrew M. Kuchling [Thu, 14 Dec 2006 18:59:07 +0000 (18:59 +0000)]
[Patch #1599256 from David Watson] check that os.fsync is available before using it

18 years agoStripped whitespace from comma-separated values read from config file
Vinay Sajip [Thu, 14 Dec 2006 08:41:39 +0000 (08:41 +0000)]
Stripped whitespace from comma-separated values read from config file

18 years agoMove errno imports back to individual functions.
Georg Brandl [Mon, 11 Dec 2006 07:56:43 +0000 (07:56 +0000)]
Move errno imports back to individual functions.
 (backport from rev. 52996)

18 years ago- Fix the build of the library reference in info format.
Matthias Klose [Sat, 9 Dec 2006 12:13:02 +0000 (12:13 +0000)]
- Fix the build of the library reference in info format.

18 years agoPatch #1608267: fix a race condition in os.makedirs() is the directory
Georg Brandl [Sat, 9 Dec 2006 09:10:18 +0000 (09:10 +0000)]
Patch #1608267: fix a race condition in os.makedirs() is the directory
to be created is already there.
 (backport from rev. 52972)

18 years ago#1577756: svnversion doesn't react to LANG=C, use LC_ALL=C to force
Georg Brandl [Fri, 8 Dec 2006 20:46:13 +0000 (20:46 +0000)]
#1577756: svnversion doesn't react to LANG=C, use LC_ALL=C to force
English output.
 (backport from rev. 52970)

18 years agoPrint the results of ctypes.util.find_library("c") and
Thomas Heller [Fri, 8 Dec 2006 20:44:19 +0000 (20:44 +0000)]
Print the results of ctypes.util.find_library("c") and
ctypes.util.find_library("m") so that we can see if it works on the
buildbots.

18 years agoBackport fixes to set objects:
Raymond Hettinger [Fri, 8 Dec 2006 18:12:24 +0000 (18:12 +0000)]
Backport fixes to set objects:

rev 52964 sf 1576657 KeyError unpacks tuple arguments
rev 52963 sf 1456209 obscure resizing vulnerability
rev 52962 redundant calls to PyObject_Hash()

18 years agoRFE #1592899: mention string.maketrans() in docs for str.translate,
Georg Brandl [Thu, 7 Dec 2006 09:30:11 +0000 (09:30 +0000)]
RFE #1592899: mention string.maketrans() in docs for str.translate,
remove reference to the old regex module in the former's doc.
 (backport from rev. 52951)

18 years agoPatch #1610437: fix a tarfile bug with long filename headers.
Georg Brandl [Wed, 6 Dec 2006 22:21:23 +0000 (22:21 +0000)]
Patch #1610437: fix a tarfile bug with long filename headers.
 (backport from rev. 52938)

18 years agoFix pickle doc typo
George Yoshida [Tue, 5 Dec 2006 05:40:57 +0000 (05:40 +0000)]
Fix pickle doc typo
Patch #1608758
(backport from r52917)

18 years ago- Fix build failure on kfreebsd and on the hurd.
Matthias Klose [Sun, 3 Dec 2006 17:13:54 +0000 (17:13 +0000)]
- Fix build failure on kfreebsd and on the hurd.

18 years agoPatch #1544279: Improve thread-safety of the socket module by moving
Martin v. Löwis [Sun, 3 Dec 2006 11:24:00 +0000 (11:24 +0000)]
Patch #1544279: Improve thread-safety of the socket module by moving
the sock_addr_t storage out of the socket object.

18 years agoFix nit in comment.
Raymond Hettinger [Sat, 2 Dec 2006 01:57:21 +0000 (01:57 +0000)]
Fix nit in comment.

18 years agoBackport of r52862.
Armin Rigo [Wed, 29 Nov 2006 22:07:38 +0000 (22:07 +0000)]
Backport of r52862.

18 years agoFix #1563807: _ctypes built on AIX fails with ld ffi error.
Thomas Heller [Tue, 28 Nov 2006 20:43:11 +0000 (20:43 +0000)]
Fix #1563807: _ctypes built on AIX fails with ld ffi error.

The contents of ffi_darwin.c must be compiled unless __APPLE__ is
defined and __ppc__ is not.

Backport from trunk.

18 years agoBug #1603789: grammatical error in Tkinter docs.
Georg Brandl [Mon, 27 Nov 2006 18:46:47 +0000 (18:46 +0000)]
Bug #1603789: grammatical error in Tkinter docs.
 (backport from rev. 52850)

18 years agoBug #1603321: make pstats.Stats accept Unicode file paths.
Georg Brandl [Sun, 26 Nov 2006 19:27:51 +0000 (19:27 +0000)]
Bug #1603321: make pstats.Stats accept Unicode file paths.
 (backport from rev. 52845)

18 years agoDisable _XOPEN_SOURCE on NetBSD 1.x.
Martin v. Löwis [Sat, 25 Nov 2006 15:39:28 +0000 (15:39 +0000)]
Disable _XOPEN_SOURCE on NetBSD 1.x.

18 years agoFix bug #1598620: A ctypes structure cannot contain itself.
Thomas Heller [Fri, 24 Nov 2006 19:00:39 +0000 (19:00 +0000)]
Fix bug #1598620: A ctypes structure cannot contain itself.

Backport from trunk.

18 years agoBug #1601630: little improvement to getopt docs
Georg Brandl [Thu, 23 Nov 2006 09:55:10 +0000 (09:55 +0000)]
Bug #1601630: little improvement to getopt docs
 (backport from rev. 52833)

18 years agoBackport checkin:
Walter Dörwald [Thu, 23 Nov 2006 05:06:31 +0000 (05:06 +0000)]
Backport checkin:
Change decode() so that it works with a buffer (i.e. unicode(..., 'utf-8-sig'))
SF bug #1601501.

18 years agoConditionalize definition of _CRT_SECURE_NO_DEPRECATE
Martin v. Löwis [Tue, 21 Nov 2006 18:21:34 +0000 (18:21 +0000)]
Conditionalize definition of _CRT_SECURE_NO_DEPRECATE
and _CRT_NONSTDC_NO_DEPRECATE.

18 years agoFix SF #1599879, socket.gethostname should ref getfqdn directly.
Neal Norwitz [Tue, 21 Nov 2006 06:25:09 +0000 (06:25 +0000)]
Fix SF #1599879, socket.gethostname should ref getfqdn directly.

18 years agoOops, convert tabs to spaces
Neal Norwitz [Tue, 21 Nov 2006 05:49:41 +0000 (05:49 +0000)]
Oops, convert tabs to spaces

18 years agoBackport of 52811:
Neal Norwitz [Tue, 21 Nov 2006 05:29:34 +0000 (05:29 +0000)]
Backport of 52811:
Bug #1599782: Fix segfault on bsddb.db.DB().type().

The problem is that _DB_get_type() can't be called without the GIL
because it calls a bunch of PyErr_* APIs when an error occurs.
There were no other cases in this file that it was called without the GIL.
Removing the BEGIN/END THREAD around _DB_get_type() made everything work.

18 years agoJython compatibility fix: if uu.decode() opened its output file, be sure to
Andrew M. Kuchling [Mon, 20 Nov 2006 13:39:57 +0000 (13:39 +0000)]
Jython compatibility fix: if uu.decode() opened its output file, be sure to
close it.

18 years agoAdd extra SHA tests
Andrew M. Kuchling [Mon, 20 Nov 2006 13:31:09 +0000 (13:31 +0000)]
Add extra SHA tests

18 years agoPatch #1472877: Fix Tix subwidget name resolution.
Martin v. Löwis [Sat, 18 Nov 2006 18:42:22 +0000 (18:42 +0000)]
Patch #1472877: Fix Tix subwidget name resolution.

18 years agoPatch #1594554: Always close a tkSimpleDialog on ok(), even
Martin v. Löwis [Sat, 18 Nov 2006 18:05:57 +0000 (18:05 +0000)]
Patch #1594554: Always close a tkSimpleDialog on ok(), even
if an exception occurs.

18 years agoPatch #1538878: Don't make tkSimpleDialog dialogs transient if
Martin v. Löwis [Sat, 18 Nov 2006 18:00:34 +0000 (18:00 +0000)]
Patch #1538878: Don't make tkSimpleDialog dialogs transient if
the parent window is withdrawn. This mirrors what dialog.tcl
does.

18 years agoRemove locking of individual message files in MH.pack().
Andrew M. Kuchling [Fri, 17 Nov 2006 16:16:28 +0000 (16:16 +0000)]
Remove locking of individual message files in MH.pack().

[Backport of rev52776 from the trunk.]

18 years agoBug #1588217: don't parse "= " as a soft line break in binascii's
Georg Brandl [Thu, 16 Nov 2006 17:08:48 +0000 (17:08 +0000)]
Bug #1588217: don't parse "= " as a soft line break in binascii's
a2b_qp() function, instead leave it in the string as quopri.decode()
does.
 (backport from rev. 52765)

18 years agoBug #1597576: mention that the new base64 api has been introduced in py2.4.
Georg Brandl [Thu, 16 Nov 2006 15:05:19 +0000 (15:05 +0000)]
Bug #1597576: mention that the new base64 api has been introduced in py2.4.
 (backport from rev. 52762)

18 years agoBug #1594809: add a note to README regarding PYTHONPATH and make install.
Georg Brandl [Wed, 15 Nov 2006 17:42:07 +0000 (17:42 +0000)]
Bug #1594809: add a note to README regarding PYTHONPATH and make install.
 (backport from rev. 52754)

18 years agoPatch #1360200: Use unmangled_version RPM spec field to deal with
Martin v. Löwis [Sun, 12 Nov 2006 18:56:18 +0000 (18:56 +0000)]
Patch #1360200: Use unmangled_version RPM spec field to deal with
file name mangling.

18 years agoPatch #1359217: Ignore 2xx response before 150 response.
Martin v. Löwis [Sun, 12 Nov 2006 18:48:30 +0000 (18:48 +0000)]
Patch #1359217: Ignore 2xx response before 150 response.

18 years agoBug #1594758: wording improvement for dict.update() docs.
Georg Brandl [Sat, 11 Nov 2006 18:32:50 +0000 (18:32 +0000)]
Bug #1594758: wording improvement for dict.update() docs.
 (backport from rev. 52733)

18 years agoBug #1594742: wrong word in stringobject doc.
Georg Brandl [Sat, 11 Nov 2006 18:29:15 +0000 (18:29 +0000)]
Bug #1594742: wrong word in stringobject doc.
 (backport from rev. 52731)

18 years agoFix SF#1566719: not creating site-packages (or other target directory) when
Phillip J. Eby [Fri, 10 Nov 2006 17:13:29 +0000 (17:13 +0000)]
Fix SF#1566719: not creating site-packages (or other target directory) when
installing .egg-info for a project that contains no modules or packages,
while using --root (as in bdist_rpm).  (Backport from trunk)

18 years ago[Feature request #1542920] Link to wsgi.org
Andrew M. Kuchling [Fri, 10 Nov 2006 14:39:17 +0000 (14:39 +0000)]
[Feature request #1542920] Link to wsgi.org

18 years ago[Patch #1514543] mailbox (Maildir): avoid losing messages on name clash
Andrew M. Kuchling [Fri, 10 Nov 2006 13:15:58 +0000 (13:15 +0000)]
[Patch #1514543] mailbox (Maildir): avoid losing messages on name clash

Two changes:

Where possible, use link()/remove() to move files into a directory; this
makes it easier to avoid overwriting an existing file.

Use _create_carefully() to create files in tmp/, which uses O_EXCL.

18 years ago[Patch #1514544 by David Watson] use fsync() to ensure data is really on disk
Andrew M. Kuchling [Fri, 10 Nov 2006 13:08:03 +0000 (13:08 +0000)]
[Patch #1514544 by David Watson] use fsync() to ensure data is really on disk

18 years agoBackport checkin:
Walter Dörwald [Thu, 9 Nov 2006 16:30:39 +0000 (16:30 +0000)]
Backport checkin:
Replace C++ comment with C comment (fixes SF bug #1593525).

18 years ago[Bug #1569790] mailbox.Maildir.get_folder() loses factory information
Andrew M. Kuchling [Thu, 9 Nov 2006 13:33:53 +0000 (13:33 +0000)]
[Bug #1569790] mailbox.Maildir.get_folder() loses factory information

Both the Maildir and MH classes had this bug; the patch fixes both classes
and adds a test.

18 years agoPatch #838546: Make terminal become controlling in pty.fork().
Martin v. Löwis [Thu, 9 Nov 2006 11:06:30 +0000 (11:06 +0000)]
Patch #838546: Make terminal become controlling in pty.fork().

18 years agoBug #1592533: rename variable in heapq doc example, to avoid shadowing
Georg Brandl [Wed, 8 Nov 2006 10:04:32 +0000 (10:04 +0000)]
Bug #1592533: rename variable in heapq doc example, to avoid shadowing
"sorted".
 (backport from rev. 52668)

18 years agoPatch #1592072: fix docs for return value of PyErr_CheckSignals.
Georg Brandl [Wed, 8 Nov 2006 07:46:01 +0000 (07:46 +0000)]
Patch #1592072: fix docs for return value of PyErr_CheckSignals.
 (backport from rev. 52666)

18 years agoCorrectly forward exception in instance_contains().
Martin v. Löwis [Wed, 8 Nov 2006 06:46:49 +0000 (06:46 +0000)]
Correctly forward exception in instance_contains().
Fixes #1591996. Patch contributed by Neal Norwitz.

18 years agoAdd missing word
Andrew M. Kuchling [Tue, 7 Nov 2006 20:39:58 +0000 (20:39 +0000)]
Add missing word

18 years agoFix markup and grammatical errors. Backport from trunk
Thomas Heller [Tue, 7 Nov 2006 18:23:14 +0000 (18:23 +0000)]
Fix markup and grammatical errors. Backport from trunk

18 years agobackport of revision 52644
Ronald Oussoren [Tue, 7 Nov 2006 15:54:38 +0000 (15:54 +0000)]
backport of revision 52644

18 years agobackport: note that user can control directory location even if default dir is used
Skip Montanaro [Mon, 6 Nov 2006 14:35:34 +0000 (14:35 +0000)]
backport: note that user can control directory location even if default dir is used

18 years agoBackport 52621:
Neal Norwitz [Sat, 4 Nov 2006 19:32:54 +0000 (19:32 +0000)]
Backport 52621:
Bug #1588287: fix invalid assertion for `1,2` in debug builds.

18 years agoPatch #1060577: Extract list of RPM files from spec file in
Martin v. Löwis [Sat, 4 Nov 2006 18:14:22 +0000 (18:14 +0000)]
Patch #1060577: Extract list of RPM files from spec file in
bdist_rpm

18 years agoFix code example by adding a missing import.
Thomas Heller [Thu, 2 Nov 2006 20:24:26 +0000 (20:24 +0000)]
Fix code example by adding a missing import.

Fixes #1557890.

Backported from trunk.

18 years agoReplace the XXX marker in the 'Arrays and pointers' reference manual
Thomas Heller [Thu, 2 Nov 2006 19:52:43 +0000 (19:52 +0000)]
Replace the XXX marker in the 'Arrays and pointers' reference manual
section with a link to the tutorial sections.

Backported from trunk.

18 years agoFix refleak
Neal Norwitz [Sun, 29 Oct 2006 23:42:59 +0000 (23:42 +0000)]
Fix refleak

18 years agoBug #1576657: when setting a KeyError for a tuple key, make sure that
Georg Brandl [Sun, 29 Oct 2006 18:31:45 +0000 (18:31 +0000)]
Bug #1576657: when setting a KeyError for a tuple key, make sure that
the tuple isn't used as the "exception arguments tuple".
 (backport from rev. 52535)

18 years agoBug #1586773: extend hashlib docstring.
Georg Brandl [Sun, 29 Oct 2006 18:01:12 +0000 (18:01 +0000)]
Bug #1586773: extend hashlib docstring.
 (backport from rev. 52532)

18 years agoI thought I had already fixed this error in the test.
Georg Brandl [Sun, 29 Oct 2006 15:22:43 +0000 (15:22 +0000)]
I thought I had already fixed this error in the test.

18 years agoBug #1586613: fix zlib and bz2 codecs' incremental en/decoders.
Georg Brandl [Sun, 29 Oct 2006 14:39:13 +0000 (14:39 +0000)]
Bug #1586613: fix zlib and bz2 codecs' incremental en/decoders.
 (backport from rev. 52529)

18 years agoFix the new EncodedFile test to work with big endian platforms.
Georg Brandl [Sun, 29 Oct 2006 09:32:19 +0000 (09:32 +0000)]
Fix the new EncodedFile test to work with big endian platforms.
 (backport from rev. 52527)

18 years agoPatch #1583880: fix tarfile's problems with long names and posix/
Georg Brandl [Sun, 29 Oct 2006 09:16:15 +0000 (09:16 +0000)]
Patch #1583880: fix tarfile's problems with long names and posix/
GNU modes.
 (backport from rev. 52524)

18 years agoBug #1357915: allow all sequence types for shell arguments in
Georg Brandl [Sun, 29 Oct 2006 09:05:08 +0000 (09:05 +0000)]
Bug #1357915: allow all sequence types for shell arguments in
subprocess.
 (backport from rev. 52522)

18 years agoFix codecs.EncodedFile which did not use file_encoding in 2.5.0, and
Georg Brandl [Sun, 29 Oct 2006 08:39:27 +0000 (08:39 +0000)]
Fix codecs.EncodedFile which did not use file_encoding in 2.5.0, and
fix all codecs file wrappers to work correctly with the "with"
statement (bug #1586513).
 (backport from rev. 52517)

18 years agoFrom SF 1557890, fix problem of using wrong type in example.
Neal Norwitz [Sat, 28 Oct 2006 22:13:22 +0000 (22:13 +0000)]
From SF 1557890, fix problem of using wrong type in example.

18 years agoBackport 52506:
Neal Norwitz [Sat, 28 Oct 2006 21:39:31 +0000 (21:39 +0000)]
Backport 52506:
Don't inline Py_ADDRESS_IN_RANGE with gcc 4+ either.

18 years agoBackport 52505:
Neal Norwitz [Sat, 28 Oct 2006 21:39:10 +0000 (21:39 +0000)]
Backport 52505:
Prevent crash if alloc of garbage fails.  Found by Typo.pl.

18 years agoBackport 52504:
Neal Norwitz [Sat, 28 Oct 2006 21:38:43 +0000 (21:38 +0000)]
Backport 52504:
Fix bug #1565514, SystemError not raised on too many nested blocks.
It seems like this should be a different error than SystemError, but
I don't have any great ideas and SystemError was raised in 2.4 and earlier.

18 years agoBackport 52503:
Neal Norwitz [Sat, 28 Oct 2006 21:37:42 +0000 (21:37 +0000)]
Backport 52503:
Fix crash in test on HP-UX.  Apparently, it's not possible to delete a lock if
it's held (even by the current thread).

18 years agoBackport 52502:
Neal Norwitz [Sat, 28 Oct 2006 21:37:16 +0000 (21:37 +0000)]
Backport 52502:
Fix warnings with HP's C compiler.  It doesn't recognize that infinite
loops are, um, infinite.  These conditions should not be able to happen.

18 years agoBackport 52501:
Neal Norwitz [Sat, 28 Oct 2006 21:36:37 +0000 (21:36 +0000)]
Backport 52501:
Add some asserts.  In sysmodule, I think these were to try to silence
some warnings from Klokwork.  They verify the assumptions of the format
of svn version output.

The assert in the thread module helped debug a problem on HP-UX.

18 years agoFix nth() itertool recipe.
Georg Brandl [Sat, 28 Oct 2006 16:04:07 +0000 (16:04 +0000)]
Fix nth() itertool recipe.
 (backport from rev. 52497)

18 years agoPatch #1552024: add decorator support to unparse.py demo script.
Georg Brandl [Fri, 27 Oct 2006 20:39:47 +0000 (20:39 +0000)]
Patch #1552024: add decorator support to unparse.py demo script.
 (backport from rev. 52488)

18 years agoWindowsError.str should display the windows error code,
Thomas Heller [Fri, 27 Oct 2006 18:47:29 +0000 (18:47 +0000)]
WindowsError.str should display the windows error code,
not the posix error code; with test.
Fixes #1576174.

Backported from trunk, revision 52485.