]> git.ipfire.org Git - thirdparty/Python/cpython.git/log
thirdparty/Python/cpython.git
19 years agoBackport r45774:
Neal Norwitz [Sat, 29 Apr 2006 03:22:45 +0000 (03:22 +0000)] 
Backport r45774:
Try to really fix the slow buildbots this time.
Printing to stdout, doesn't mean the data was actually written.
It depends on the buffering, so we need to flush.  This will hopefully
really fix the buildbots getting killed due to no output on the slow bots.

19 years agoBug #1478429: make datetime.datetime.fromtimestamp accept every float,
Georg Brandl [Fri, 28 Apr 2006 19:09:29 +0000 (19:09 +0000)] 
Bug #1478429: make datetime.datetime.fromtimestamp accept every float,
possibly "rounding up" to the next whole second.
 (backport from rev. 45792)

19 years agoBug #1478326: don't allow '/' in distutils.util.get_platform machine names
Georg Brandl [Fri, 28 Apr 2006 16:58:56 +0000 (16:58 +0000)] 
Bug #1478326: don't allow '/' in distutils.util.get_platform machine names
since this value is used to name the build directory.
 (backport from rev. 45786)

19 years agocorrect a dead link(backport from rev.45783)
George Yoshida [Fri, 28 Apr 2006 16:41:24 +0000 (16:41 +0000)] 
correct a dead link(backport from rev.45783)

19 years agoBug #1475009: clarify ntpath.join behavior with absolute components
Georg Brandl [Fri, 28 Apr 2006 16:36:58 +0000 (16:36 +0000)] 
Bug #1475009: clarify ntpath.join behavior with absolute components
 (backport from rev. 45781)

19 years agofix markup glitch(backport from rev.45778)
George Yoshida [Fri, 28 Apr 2006 16:11:51 +0000 (16:11 +0000)] 
fix markup glitch(backport from rev.45778)

19 years agoMention xmlrpclib.Error base class; import Error in example
Andrew M. Kuchling [Thu, 27 Apr 2006 12:48:56 +0000 (12:48 +0000)] 
Mention xmlrpclib.Error base class; import Error in example

19 years ago[Bug #1477102] Add necessary import to example
Andrew M. Kuchling [Thu, 27 Apr 2006 12:35:34 +0000 (12:35 +0000)] 
[Bug #1477102] Add necessary import to example

19 years agoBackport trunk's r45715:
Thomas Wouters [Tue, 25 Apr 2006 15:33:48 +0000 (15:33 +0000)] 
Backport trunk's r45715:

Define MAXPATHLEN to be at least PATH_MAX, if that's defined. Python uses
MAXPATHLEN-sized buffers for various output-buffers (like to realpath()),
and that's correct on BSD platforms, but not Linux (which uses PATH_MAX, and
does not define MAXPATHLEN.) Cursory googling suggests Linux is following a
newer standard than BSD, but in cases like this, who knows. Using the
greater of PATH_MAX and 1024 as a fallback for MAXPATHLEN seems to be the
most portable solution.

19 years agoBackport trunk's 45708: Fix markup glitch in unittest docs.
Thomas Wouters [Tue, 25 Apr 2006 12:29:43 +0000 (12:29 +0000)] 
Backport trunk's 45708: Fix markup glitch in unittest docs.

19 years agoPut break at correct level so *all* root HKEYs acutally get checked for
Trent Mick [Tue, 25 Apr 2006 00:34:35 +0000 (00:34 +0000)] 
Put break at correct level so *all* root HKEYs acutally get checked for
an installed VC6. Otherwise only the first such tree gets checked and this
warning doesn't get displayed.

19 years agoMerge rev 45677 from the trunk.
Tim Peters [Mon, 24 Apr 2006 02:07:13 +0000 (02:07 +0000)] 
Merge rev 45677 from the trunk.

Bug #1337990: clarified that ``doctest`` does not support examples
requiring both expected output and an exception.

19 years agowrap SyntaxError with \exception{}
George Yoshida [Sun, 23 Apr 2006 09:28:10 +0000 (09:28 +0000)] 
wrap SyntaxError with \exception{}

19 years agofix tex markup
George Yoshida [Sun, 23 Apr 2006 08:46:03 +0000 (08:46 +0000)] 
fix tex markup

19 years agoTypo fixes
George Yoshida [Sat, 22 Apr 2006 15:12:37 +0000 (15:12 +0000)] 
Typo fixes

19 years agoTypo fixes
Andrew M. Kuchling [Sat, 22 Apr 2006 01:52:18 +0000 (01:52 +0000)] 
Typo fixes

19 years agoOops! 2.5 news about setuptools snuck into 2.4 when
Tim Peters [Fri, 21 Apr 2006 21:35:20 +0000 (21:35 +0000)] 
Oops!  2.5 news about setuptools snuck into 2.4 when
I resolved merge conflicts from a recent backport.

19 years agoMerge rev 45631 from trunk.
Tim Peters [Fri, 21 Apr 2006 21:22:00 +0000 (21:22 +0000)] 
Merge rev 45631 from trunk.

SF bug #1473760 TempFile can hang on Windows.

Python 2.4 changed ntpath.abspath to do an import
inside the function.  As a result, due to Python's
import lock, anything calling abspath on Windows
(directly, or indirectly like tempfile.TemporaryFile)
hung when it was called from a thread spawned as a
side effect of importing a module.

This is a depressingly frequent problem, and
deserves a more general fix.  I'm settling for
a micro-fix here because this specific one accounts
for a report of Zope Corp's ZEO hanging on Windows,
and it was an odd way to change abspath to begin
with (ntpath needs a different implementation
depending on whether we're actually running on
Windows, and the _obvious_ way to arrange for that
is not to bury a possibly-failing import _inside_
the function).

Note that if/when other micro-fixes of this kind
get made, the new Lib/test/threaded_import_hangers.py
is a convenient place to add tests for them.

19 years agoTypo, grammar fixes
Andrew M. Kuchling [Fri, 21 Apr 2006 12:59:12 +0000 (12:59 +0000)] 
Typo, grammar fixes

19 years agoTypo fixes
Andrew M. Kuchling [Fri, 21 Apr 2006 12:40:03 +0000 (12:40 +0000)] 
Typo fixes

19 years agofix typo
George Yoshida [Tue, 18 Apr 2006 16:20:09 +0000 (16:20 +0000)] 
fix typo

19 years agoMerge rev 45516 from trunk.
Tim Peters [Tue, 18 Apr 2006 03:30:43 +0000 (03:30 +0000)] 
Merge rev 45516 from trunk.

Finally figured out why this module did its imports at the
bottom of the file.  Restored that, and added a comment
explaining why this is necessary.  Hint:  on my box, and
yours, it's not :-(

Also added an __all__ list.

19 years agoMerge rev 45498 from trunk.
Tim Peters [Mon, 17 Apr 2006 21:15:53 +0000 (21:15 +0000)] 
Merge rev 45498 from trunk.

local.__del__():  This didn't actually do anything, because of too
much convolution <0.5 wink>.  Simplified to the point that it works,
and test_threading_local no longer reports leaks under -R.  Thanks
to Thomas Wouters for initial analysis.

19 years agoAdd missing SVN eol-style property to text files.
Tim Peters [Sun, 16 Apr 2006 22:13:11 +0000 (22:13 +0000)] 
Add missing SVN eol-style property to text files.

19 years agoPatch #1191700: Adjust column alignment in bdb breakpoint lists.
Martin v. Löwis [Sat, 15 Apr 2006 08:40:53 +0000 (08:40 +0000)] 
Patch #1191700: Adjust column alignment in bdb breakpoint lists.

19 years agoPatch #1191065: Fix preprocessor problems on systems where recvfrom
Martin v. Löwis [Sat, 15 Apr 2006 08:35:45 +0000 (08:35 +0000)] 
Patch #1191065: Fix preprocessor problems on systems where recvfrom
is a macro.

19 years agomention bsddb open cachesize parameter bugfix
Gregory P. Smith [Thu, 13 Apr 2006 19:24:47 +0000 (19:24 +0000)] 
mention bsddb open cachesize parameter bugfix

19 years agoAdd missing word
Andrew M. Kuchling [Thu, 13 Apr 2006 11:40:42 +0000 (11:40 +0000)] 
Add missing word

19 years agoBackport 45338:
Neal Norwitz [Thu, 13 Apr 2006 07:15:30 +0000 (07:15 +0000)] 
Backport 45338:
test_compile can be really long if we are using -u compiler.
This may be causing the debian sparc buildbot to fail.
Print a little message to let the user ^w buildbot know it's still thinking.

We may want to adjust the time period which is currently 5 minutes.

19 years agoreverting r45322 - "traceback.format_exception_only() now prepends
Anthony Baxter [Thu, 13 Apr 2006 01:29:10 +0000 (01:29 +0000)] 
reverting r45322 -  "traceback.format_exception_only() now prepends
the exception's module name to non-builtin exceptions, like the
interpreter itself does."

Reverting because:
A - broke tests
B - changed behaviour of 2.4.

19 years agoPatch #860326: traceback.format_exception_only() now prepends the
Georg Brandl [Wed, 12 Apr 2006 21:14:12 +0000 (21:14 +0000)] 
Patch #860326: traceback.format_exception_only() now prepends the
exception's module name to non-builtin exceptions, like the interpreter
itself does.
 (backport from rev. 45321)

19 years agobackport 43519. fixes SF bug 1117761.
Gregory P. Smith [Wed, 12 Apr 2006 20:37:58 +0000 (20:37 +0000)] 
backport 43519.   fixes SF bug 1117761.

bsddb.*open() methods were failing when the cachesize parameter was
supplied.

19 years agoIgnore the references to the dummy objects used as deleted keys
Armin Rigo [Wed, 12 Apr 2006 17:06:58 +0000 (17:06 +0000)] 
Ignore the references to the dummy objects used as deleted keys
in dicts and sets when computing the total number of references.

19 years agoPatch #1468808: don't complain if Tkinter is already deleted at the time Font.__del__...
Georg Brandl [Wed, 12 Apr 2006 15:28:52 +0000 (15:28 +0000)] 
Patch #1468808: don't complain if Tkinter is already deleted at the time Font.__del__ is run.
 (backport from rev. 45310)

19 years agoBackport of r45303: buffer overflow.
Armin Rigo [Wed, 12 Apr 2006 12:04:10 +0000 (12:04 +0000)] 
Backport of r45303: buffer overflow.

19 years agoStreamHandler now checks explicitly for None before using sys.stderr as the stream...
Vinay Sajip [Wed, 12 Apr 2006 10:02:00 +0000 (10:02 +0000)] 
StreamHandler now checks explicitly for None before using sys.stderr as the stream (see SF bug #1463840).

19 years agoClear errno before calling opendir() and readdir().
Georg Brandl [Tue, 11 Apr 2006 07:04:09 +0000 (07:04 +0000)] 
Clear errno before calling opendir() and readdir().
 (backport from rev. 45262)

19 years agoBug #1467952: backport: make os.listdir() raise if readdir() fails
Georg Brandl [Tue, 11 Apr 2006 06:51:25 +0000 (06:51 +0000)] 
Bug #1467952: backport: make os.listdir() raise if readdir() fails

19 years agoPatch #1466993: remove wrong comment in socket.py
Georg Brandl [Sun, 9 Apr 2006 14:28:16 +0000 (14:28 +0000)] 
Patch #1466993: remove wrong comment in socket.py
 (backport from rev. 43746)

19 years agoWhitespace normalization.
Tim Peters [Sat, 8 Apr 2006 12:24:57 +0000 (12:24 +0000)] 
Whitespace normalization.

19 years agoMerge rev 43734 from the trunk.
Tim Peters [Sat, 8 Apr 2006 12:12:56 +0000 (12:12 +0000)] 
Merge rev 43734 from the trunk.

test_timeout():  This test was added during Bug Day, but disabled
soon after because the gmail address it connects to started timing
out on all the buildbot slaves.  Rewrote the test to produce a
warning message (instead of failing) when the address times out.

Also removed the special case for Windows -- this test started to
work on Windows as soon as bug 1462352 was fixed.

19 years agoDefine WIN32, to get proper struct alignment in WinSock2.h.
Martin v. Löwis [Sat, 8 Apr 2006 09:14:56 +0000 (09:14 +0000)] 
Define WIN32, to get proper struct alignment in WinSock2.h.
Fixes #1462352.

19 years agoFix bsddb.db.DBError derived exceptions so they can be unpickled.
Gregory P. Smith [Sat, 8 Apr 2006 07:34:08 +0000 (07:34 +0000)] 
Fix bsddb.db.DBError derived exceptions so they can be unpickled.
(backport of trunk commit 43729)

19 years agoBug #1464658: make clear that PyList_GetItem doesn't take negative indices.
Georg Brandl [Thu, 6 Apr 2006 12:45:54 +0000 (12:45 +0000)] 
Bug #1464658: make clear that PyList_GetItem doesn't take negative indices.
 (backport from rev. 43704)

19 years agoBug #1465619: rot13 codec decodes to a Unicode string.
Georg Brandl [Thu, 6 Apr 2006 11:25:37 +0000 (11:25 +0000)] 
Bug #1465619: rot13 codec decodes to a Unicode string.
 (backport from rev. 43701)

19 years agoBug #1465600: note encoding issue in ZipFile.write().
Georg Brandl [Thu, 6 Apr 2006 10:03:36 +0000 (10:03 +0000)] 
Bug #1465600: note encoding issue in ZipFile.write().
 (backport from rev. 43699)

19 years agobackport of 43688:
Anthony Baxter [Thu, 6 Apr 2006 07:36:26 +0000 (07:36 +0000)] 
backport of 43688:
Fix for failure of test_urllib2 breaking test_mimetypes (SF bug 1464978)
will backport.

19 years agobackport:
Anthony Baxter [Thu, 6 Apr 2006 07:15:06 +0000 (07:15 +0000)] 
backport:
In some environments (under screen, in a chroot) curses doesn't support
mouse events. This makes the test fail. Catch that case and don't run
the tests. Should make the debian/ubuntu buildbots that run in a chroot
work again.

19 years agoBug #1451341: find fuzzy marks correctly.
Georg Brandl [Thu, 6 Apr 2006 06:44:37 +0000 (06:44 +0000)] 
Bug #1451341: find fuzzy marks correctly.
 (backport from rev. 43684)

19 years agoupdate URL to reflect new website
Fred Drake [Thu, 6 Apr 2006 00:26:19 +0000 (00:26 +0000)] 
update URL to reflect new website

19 years agomove the uuids out to a separate file
Anthony Baxter [Wed, 5 Apr 2006 16:42:30 +0000 (16:42 +0000)] 
move the uuids out to a separate file

19 years agoFix 43537, using quadrigraphs properly.
Martin v. Löwis [Tue, 4 Apr 2006 06:08:17 +0000 (06:08 +0000)] 
Fix 43537, using quadrigraphs properly.

19 years agoRev 43597 on the branch purported to merge rev 43578 from the trunk,
Tim Peters [Mon, 3 Apr 2006 23:44:28 +0000 (23:44 +0000)] 
Rev 43597 on the branch purported to merge rev 43578 from the trunk,
but neglected to incorporate 43578's changes to
Lib/email/test/test_email.py.  As a result, all the buildbots have
failed test_email on the branch since then.  This should repair it.

19 years agopost 2.4.3.
Anthony Baxter [Mon, 3 Apr 2006 17:54:50 +0000 (17:54 +0000)] 
post 2.4.3.

19 years agonote parsedate_tz backport
Anthony Baxter [Mon, 3 Apr 2006 16:43:22 +0000 (16:43 +0000)] 
note parsedate_tz backport

19 years agobackport r43579
Anthony Baxter [Mon, 3 Apr 2006 16:42:41 +0000 (16:42 +0000)] 
backport r43579
Deal with openbsd's different style of default /etc/hosts by forcing the fqdn
lookup to use the IP address returned by gethosbyname.

19 years agobackport of r43578
Anthony Baxter [Mon, 3 Apr 2006 16:40:28 +0000 (16:40 +0000)] 
backport of r43578
The email module's parsedate_tz function now sets the daylight savings
flag to -1 (unknown) since it can't tell from the date whether it should
be set.
patch from Aldo Cortesi

19 years agoBackport of 43584: Add check_soundcard.vbs.
Martin v. Löwis [Mon, 3 Apr 2006 12:16:00 +0000 (12:16 +0000)] 
Backport of 43584: Add check_soundcard.vbs.

19 years agoBackport 43568:
Neal Norwitz [Mon, 3 Apr 2006 05:30:45 +0000 (05:30 +0000)] 
Backport 43568:

Fix test_pty on OSF/1 (Tru64).  The problem is that the newline gets
converted to CR CR NL.  There may be a way to fix this with tcsetattr,
but I couldn't find it.  There was a similar problem on IRIX.

Just normalize the output and compare that.

19 years agoBackport of r39612: some more fixes for inspect.getsource().
Armin Rigo [Sun, 2 Apr 2006 10:48:07 +0000 (10:48 +0000)] 
Backport of r39612: some more fixes for inspect.getsource().
Tests not included (the format changes and I can't be bothered
to port them).

19 years agopatch #1416559: don't define _XOPEN_SOURCE on Mac OS Panther
Georg Brandl [Sat, 1 Apr 2006 08:51:29 +0000 (08:51 +0000)] 
patch #1416559: don't define _XOPEN_SOURCE on Mac OS Panther
 (backport from rev. 43536)

19 years agoBackport 43470:
Neal Norwitz [Sat, 1 Apr 2006 08:50:35 +0000 (08:50 +0000)] 
Backport 43470:
Get gcc to do strict IEEE math.  This flag was already used for cc, just not
gcc.  Without this flag, doing pretty much anything with NaNs causes
a Floating Point Exception signal.  This causes the interpreter to quit.
The failing tests this fixes are:  test_long.
This is somewhat equivalent to doing signal(SIGFPE, SIG_IGN).

19 years agoBug #1458017: make distutils.Log._log more forgiving when passing in
Georg Brandl [Sat, 1 Apr 2006 07:46:57 +0000 (07:46 +0000)] 
Bug #1458017: make distutils.Log._log more forgiving when passing in
msg strings with '%', but without format args.
 (backport from rev. 43529)

19 years agoPatch #1462496: typo in libsignal.tex
Georg Brandl [Sat, 1 Apr 2006 07:42:44 +0000 (07:42 +0000)] 
Patch #1462496: typo in libsignal.tex
 (backport from rev. 43527)

19 years agoPatch #1459631: documnent zlib.Decompress.flush() length parameter.
Georg Brandl [Sat, 1 Apr 2006 07:39:45 +0000 (07:39 +0000)] 
Patch #1459631: documnent zlib.Decompress.flush() length parameter.
 (backport from rev. 43525)

19 years agoBug #1460564: document that socket.fromfd() duplicates the given
Georg Brandl [Sat, 1 Apr 2006 07:33:22 +0000 (07:33 +0000)] 
Bug #1460564: document that socket.fromfd() duplicates the given
file descriptor.
 (backport from rev. 43523)

19 years agobug #1462278: small fix in documentation of __op__ vs __rop__ methods
Georg Brandl [Sat, 1 Apr 2006 07:23:12 +0000 (07:23 +0000)] 
bug #1462278: small fix in documentation of __op__ vs __rop__ methods
 (backport from rev. 43521)

19 years agoMerge rev 43518 from trunk.
Tim Peters [Sat, 1 Apr 2006 01:35:10 +0000 (01:35 +0000)] 
Merge rev 43518 from trunk.

Fix stupid typo.

19 years agoMerge rev 43516 from trunk.
Tim Peters [Sat, 1 Apr 2006 01:31:04 +0000 (01:31 +0000)] 
Merge rev 43516 from trunk.

test_timeout():  Disable this new test on all platforms.

The

    s.connect(("gmail.org", 995))

line has been timing out on all buildbot slaves for hours
now, causing the test to fail.

19 years agoMerge rev 43511 from the trunk.
Tim Peters [Sat, 1 Apr 2006 00:41:10 +0000 (00:41 +0000)] 
Merge rev 43511 from the trunk.

Another crack at bug #1460340:  make random.sample(dict)
work, this time by ugly brute force.

19 years agoBackport trunk's r43510: In the fdopen(fd, 'a') case on UNIX, don't try to
Thomas Wouters [Fri, 31 Mar 2006 22:39:56 +0000 (22:39 +0000)] 
Backport trunk's r43510: In the fdopen(fd, 'a') case on UNIX, don't try to
set fd's flags to -1 if fcntl() and fdopen() both fail.

19 years agoMake test_socket_ssl pass on Windows
Georg Brandl [Fri, 31 Mar 2006 21:13:20 +0000 (21:13 +0000)] 
Make test_socket_ssl pass on Windows

19 years agoBug #1177964: make file iterator raise MemoryError on too big files
Georg Brandl [Fri, 31 Mar 2006 20:31:05 +0000 (20:31 +0000)] 
Bug #1177964: make file iterator raise MemoryError on too big files
 (backport from rev. 43506)

19 years agoAdd guards against fcntl() not being available on Windows.
Georg Brandl [Fri, 31 Mar 2006 20:27:27 +0000 (20:27 +0000)] 
Add guards against fcntl() not being available on Windows.
 (backport from rev. 43504)

19 years agobug #1461855: make os.fdopen() add the O_APPEND flag if using "a" mode.
Georg Brandl [Fri, 31 Mar 2006 20:00:15 +0000 (20:00 +0000)] 
bug #1461855: make os.fdopen() add the O_APPEND flag if using "a" mode.
glibc, for example, does this already on its own, but it seems that
the solaris libc doesn't. This leads to Python code being able to over-
write file contents even though having specified "a" mode.
 (backport from rev. 43501)

19 years agobug #1257988: don't bail out on gethostbyname(gethostname()) failure
Georg Brandl [Fri, 31 Mar 2006 19:34:17 +0000 (19:34 +0000)] 
bug #1257988: don't bail out on gethostbyname(gethostname()) failure
 (backport from rev. 43499)

19 years agoPatch #1462313, bug #1443328: the pickle modules now can handle classes
Georg Brandl [Fri, 31 Mar 2006 18:25:48 +0000 (18:25 +0000)] 
Patch #1462313, bug #1443328: the pickle modules now can handle classes
that have __private names in their __slots__.
 (backport from rev. 43493)

19 years agoPatch #1380952: fix SSL objects timing out on consecutive read()s
Georg Brandl [Fri, 31 Mar 2006 18:01:24 +0000 (18:01 +0000)] 
Patch #1380952: fix SSL objects timing out on consecutive read()s
 (backport from rev. 43491)

19 years agoBug #1461610: xmlrpclib has no function "binary".
Georg Brandl [Fri, 31 Mar 2006 14:35:13 +0000 (14:35 +0000)] 
Bug #1461610: xmlrpclib has no function "binary".
 (backport from rev. 43477)

19 years ago- update the refcount information (late, but not a bad thing to do...)
Fred Drake [Thu, 30 Mar 2006 02:51:38 +0000 (02:51 +0000)] 
- update the refcount information (late, but not a bad thing to do...)
- clarify that PyGen_New() steals a reference

19 years agoSF bug #1460340: random.sample can raise KeyError
Raymond Hettinger [Wed, 29 Mar 2006 08:54:54 +0000 (08:54 +0000)] 
SF bug #1460340:  random.sample can raise KeyError

Fix the hit and miss style of testing for sets and dicts.

19 years agoTagging for release of Python 2.4.3
Anthony Baxter [Wed, 29 Mar 2006 00:52:29 +0000 (00:52 +0000)] 
Tagging for release of Python 2.4.3

19 years agoRelocate the misplaced heading. v2.4.3
Hye-Shik Chang [Tue, 28 Mar 2006 08:36:44 +0000 (08:36 +0000)] 
Relocate the misplaced heading.

19 years agoUbuntu bug #29289: Fixed a bug that the gb18030 codec raises
Hye-Shik Chang [Tue, 28 Mar 2006 08:27:27 +0000 (08:27 +0000)] 
Ubuntu bug #29289: Fixed a bug that the gb18030 codec raises
RuntimeError on encoding surrogate pair area on UCS4 build.
This is a partial backport of r43320. (Approved by Anthony Baxter)

19 years agoit never ends! more ignoring
Anthony Baxter [Tue, 28 Mar 2006 08:21:00 +0000 (08:21 +0000)] 
it never ends! more ignoring

19 years agoignore more generated files (*.pyo, libpython.2.4.a)
Anthony Baxter [Tue, 28 Mar 2006 08:04:57 +0000 (08:04 +0000)] 
ignore more generated files (*.pyo, libpython.2.4.a)

19 years agoafter discussions with perky, reverted fix for Bug #1379994: Builtin
Anthony Baxter [Tue, 28 Mar 2006 07:32:36 +0000 (07:32 +0000)] 
after discussions with perky, reverted fix for Bug #1379994: Builtin
unicode_escape and raw_unicode_escape codec now encodes backslash correctly.

This caused another issue for unicode repr strings being double-escaped
(SF Bug #1459029). Correct fix will be in 2.5, but is too risky for 2.4.3.

Added a testcase for #1459029.

19 years agonews for test_capi change
Anthony Baxter [Tue, 28 Mar 2006 07:18:33 +0000 (07:18 +0000)] 
news for test_capi change

19 years agoMerge rev 43181 from the trunk.
Tim Peters [Tue, 28 Mar 2006 07:09:33 +0000 (07:09 +0000)] 
Merge rev 43181 from the trunk.

Try to repair at least one segfault on the Mac buildbot,
as diagnosed by Nick Coghlan.

test_capi.py:  A test module should never spawn a thread as
a side effect of being imported.  Because this one did, the
segfault one of its thread tests caused didn't occur until
a few tests after test_regrtest.py thought test_capi was
finished.  Repair that.  Also join() the thread spawned
at the end, so that test_capi is truly finished when
regrtest reports that it's done.

_testcapimodule.c test_thread_state():  this spawns a
couple of non-threading.py threads, passing them a PyObject*
argument, but did nothing to ensure that those threads
finished before returning.  As a result, the PyObject*
_could_ (although this was unlikely) get decref'ed out of
existence before the threads got around to using it.
Added explicit synchronization (via a Python mutex) so
that test_thread_state can reliably wait for its spawned
threads to finish.

19 years agopreparing for 2.4.3 final
Anthony Baxter [Tue, 28 Mar 2006 06:32:00 +0000 (06:32 +0000)] 
preparing for 2.4.3 final

19 years agoFix the refleak from test_unicode.
Neal Norwitz [Tue, 28 Mar 2006 06:05:21 +0000 (06:05 +0000)] 
Fix the refleak from test_unicode.
Backport 42973 (lots of whitespace changes intermixed):

 - Reindent a confusingly indented piece of code (no intended code changes
    there)
 - Add missing DECREFs of inner-scope 'temp' variable
 - Add various missing DECREFs by changing 'return NULL' into 'goto onError'
 - Avoid double DECREF when last _PyUnicode_Resize() fails

Coverity found one of the missing DECREFs, but oddly enough not the others.

19 years agoBackport of compile.c part of r41531 (neal.norwitz, 2005-11-24):
Martin v. Löwis [Mon, 27 Mar 2006 21:47:54 +0000 (21:47 +0000)] 
Backport of compile.c part of r41531 (neal.norwitz, 2005-11-24):
Fix a ref leak.

19 years agoBackport of r41530 (neal.norwitz, 2005-11-24):
Martin v. Löwis [Mon, 27 Mar 2006 21:38:32 +0000 (21:38 +0000)] 
Backport of r41530 (neal.norwitz, 2005-11-24):
Move registration of the codec search function to the module scope
so it is only executed once.  Otherwise the same search function is
repeated added to the codec search path when regrtest is run with -R
and leaks are reported.

19 years agoBackport Ka-Ping Yee's trunk checkin r41400:
Thomas Wouters [Mon, 27 Mar 2006 12:50:42 +0000 (12:50 +0000)] 
Backport Ka-Ping Yee's trunk checkin r41400:

Fix SF bug #417833 (pydoc HTTP reload failure) by removing from
sys.modules all submodules of a the given module/package path
when trying to reload a module.

19 years agoBackport:
Neal Norwitz [Sun, 26 Mar 2006 04:10:42 +0000 (04:10 +0000)] 
Backport:
Handle sys.getfilesystemencoding() returning None.
ascii seems like the safest bet, it should exist.  I wonder if utf-8
would be a better choice?  This should get test_fileinput passing on OpenBSD.

19 years agoFix mark-up.
Raymond Hettinger [Sun, 26 Mar 2006 01:43:15 +0000 (01:43 +0000)] 
Fix mark-up.

19 years agoGuarantee evaluation order for izip(). Document its creative uses and its limitations.
Raymond Hettinger [Sun, 26 Mar 2006 01:33:11 +0000 (01:33 +0000)] 
Guarantee evaluation order for izip().  Document its creative uses and its limitations.

19 years agoBackport of rev 43312:
Neal Norwitz [Sat, 25 Mar 2006 21:27:08 +0000 (21:27 +0000)] 
Backport of rev 43312:

SF bug # 1457358 and patch # 1458419, floor division not documented.  Patch by Andy.

19 years agoBackport:
Neal Norwitz [Fri, 24 Mar 2006 05:41:48 +0000 (05:41 +0000)] 
Backport:
SF bug #1457411, fix errors using variables that don't exist.

Rename file -> filename to be clear.

19 years agoAdd 2.4.3 UUIDs.
Martin v. Löwis [Thu, 23 Mar 2006 19:16:48 +0000 (19:16 +0000)] 
Add 2.4.3 UUIDs.