]> granicus.if.org Git - python/log
python
17 years agoRecommit r54805:
Barry Warsaw [Mon, 23 Apr 2007 01:58:33 +0000 (01:58 +0000)]
Recommit r54805:

Add code to read from master_fd in the parent, breaking when we get an OSError
(EIO can occur on Linux) or there's no more data to read.  Without this,
test_pty.py can hang on the waitpid() because the child is blocking on the
stdout write.  This will definitely happen on Mac OS X and could potentially
happen on other platforms.  See the comment for details.

17 years agoProperly implement Georg Brandl's Patch #1185447 to the 2.5 maintainance branch
Kristján Valur Jónsson [Sun, 22 Apr 2007 10:18:46 +0000 (10:18 +0000)]
Properly implement Georg Brandl's Patch #1185447 to the 2.5 maintainance branch

17 years agoBug #1704790: bind name "sys" locally in __del__ method so that it is
Georg Brandl [Sat, 21 Apr 2007 20:35:49 +0000 (20:35 +0000)]
Bug #1704790: bind name "sys" locally in __del__ method so that it is
not cleared before __del__ is run.
 (backport from rev. 54918)

17 years agoFix various minor issues discovered with static analysis using Visual Studio 2005...
Kristján Valur Jónsson [Sat, 21 Apr 2007 12:46:49 +0000 (12:46 +0000)]
Fix various minor issues discovered with static analysis using Visual Studio 2005 Team System.
Removed obsolete comment, since .dll modules are no longer supported on windows, only .pyd.

17 years agoBug #1704156: Support for unicode strings as input filenames is
Lars Gustäbel [Sat, 21 Apr 2007 12:20:09 +0000 (12:20 +0000)]
Bug #1704156: Support for unicode strings as input filenames is
neither documented nor intended but works in Python 2.4 under certain
conditions. This stopped working in 2.5 because struct.pack is used.
This small patch restores the old behaviour. A more solid solution is
planned for 2.6.

17 years agoBackport r54786:
Walter Dörwald [Sat, 21 Apr 2007 10:31:43 +0000 (10:31 +0000)]
Backport r54786:
Fix utf-8-sig incremental decoder, which didn't recognise a BOM when the
first chunk fed to the decoder started with a BOM, but was longer than 3 bytes.

17 years agoBackport r54671 - fix in python.sty.
Georg Brandl [Sat, 21 Apr 2007 07:30:52 +0000 (07:30 +0000)]
Backport r54671 - fix in python.sty.

17 years agoBackport r54762: exceptions are no longer old-style instances.
Georg Brandl [Sat, 21 Apr 2007 07:28:26 +0000 (07:28 +0000)]
Backport r54762: exceptions are no longer old-style instances.

17 years agoBackport r54763: repair missing spaces after \UNIX.
Georg Brandl [Sat, 21 Apr 2007 07:25:39 +0000 (07:25 +0000)]
Backport r54763: repair missing spaces after \UNIX.

17 years agoBackport r54787 - better error messages in rexec and bastion
Georg Brandl [Sat, 21 Apr 2007 07:23:36 +0000 (07:23 +0000)]
Backport r54787 - better error messages in rexec and bastion

17 years agoBackport r54757 - missing NULL checks.
Georg Brandl [Sat, 21 Apr 2007 07:22:57 +0000 (07:22 +0000)]
Backport r54757 - missing NULL checks.

17 years agoPatch #1695229: Fix a regression with tarfile.open() and a missing name
Lars Gustäbel [Fri, 20 Apr 2007 20:10:59 +0000 (20:10 +0000)]
Patch #1695229: Fix a regression with tarfile.open() and a missing name
argument.

17 years agoFix directory names to have only one trailing slash.
Lars Gustäbel [Fri, 20 Apr 2007 14:49:02 +0000 (14:49 +0000)]
Fix directory names to have only one trailing slash.
A regression from rev. 52525.

17 years agoTagging for release of Python 2.5.1
Anthony Baxter [Wed, 18 Apr 2007 03:53:15 +0000 (03:53 +0000)]
Tagging for release of Python 2.5.1

17 years ago2.5.1 final v2.5.1
Anthony Baxter [Wed, 18 Apr 2007 03:35:45 +0000 (03:35 +0000)]
2.5.1 final

17 years agoRevert 53667
Raymond Hettinger [Wed, 18 Apr 2007 02:02:15 +0000 (02:02 +0000)]
Revert 53667

17 years agoRevert SF #1615701 (rev 53655): dict.update() does *not* call __getitem__() or
Neal Norwitz [Mon, 16 Apr 2007 06:59:13 +0000 (06:59 +0000)]
Revert SF #1615701 (rev 53655): dict.update() does *not* call __getitem__() or
keys() if subclassed.  This is to remain consistent with 2.5.

See discussion here:
  http://mail.python.org/pipermail/python-dev/2007-April/072565.html

17 years agoRevert 54805 for 2.5.1 release. Can be applied after 2.5 branch is unfrozen.
Neal Norwitz [Mon, 16 Apr 2007 06:20:14 +0000 (06:20 +0000)]
Revert 54805 for 2.5.1 release. Can be applied after 2.5 branch is unfrozen.

17 years agoRevert 54813 for 2.5.1 release. Can be applied after 2.5 branch is unfrozen.
Neal Norwitz [Mon, 16 Apr 2007 06:19:52 +0000 (06:19 +0000)]
Revert 54813 for 2.5.1 release. Can be applied after 2.5 branch is unfrozen.

17 years agoRevert 54815 for 2.5.1 release. Can be applied after 2.5 branch is unfrozen.
Neal Norwitz [Mon, 16 Apr 2007 06:19:32 +0000 (06:19 +0000)]
Revert 54815 for 2.5.1 release. Can be applied after 2.5 branch is unfrozen.

17 years agoSF #1701207: svnversion_init assertion failed
Neal Norwitz [Mon, 16 Apr 2007 06:12:02 +0000 (06:12 +0000)]
SF #1701207: svnversion_init assertion failed

Revert bogus asserts (added to the wrong place) from rev 52501.

Approved by Anthony.

17 years agoFix potential crash in path manipulation on windows
Kristján Valur Jónsson [Fri, 13 Apr 2007 22:21:07 +0000 (22:21 +0000)]
Fix potential crash in path manipulation on windows

17 years agoFix a bug when using the __lltrace__ opcode tracer, and a problem sith signed chars...
Kristján Valur Jónsson [Fri, 13 Apr 2007 22:09:59 +0000 (22:09 +0000)]
Fix a bug when using the __lltrace__ opcode tracer, and a problem sith signed chars in frameobject.c which can occur with opcodes > 127

17 years agoAdd code to read from master_fd in the parent, breaking when we get an OSError
Barry Warsaw [Fri, 13 Apr 2007 16:12:02 +0000 (16:12 +0000)]
Add code to read from master_fd in the parent, breaking when we get an OSError
(EIO can occur on Linux) or there's no more data to read.  Without this,
test_pty.py can hang on the waitpid() because the child is blocking on the
stdout write.  This will definitely happen on Mac OS X and could potentially
happen on other platforms.  See the comment for details.

17 years agoDescribe undocumented third argument to touchline()
Andrew M. Kuchling [Wed, 11 Apr 2007 13:47:58 +0000 (13:47 +0000)]
Describe undocumented third argument to touchline()

17 years agoTagging for release of Python 2.5.1c1
Anthony Baxter [Thu, 5 Apr 2007 06:37:33 +0000 (06:37 +0000)]
Tagging for release of Python 2.5.1c1

17 years agoFix unpack so it works on 64-bit platforms. v2.5.1c1
Neal Norwitz [Thu, 5 Apr 2007 05:06:49 +0000 (05:06 +0000)]
Fix unpack so it works on 64-bit platforms.

17 years agopreparing for 2.5.1c1
Anthony Baxter [Thu, 5 Apr 2007 04:52:06 +0000 (04:52 +0000)]
preparing for 2.5.1c1

17 years agoFix-up error-exits on struct_unpack().
Raymond Hettinger [Wed, 4 Apr 2007 21:57:12 +0000 (21:57 +0000)]
Fix-up error-exits on struct_unpack().

17 years agoBug #1563759: struct.unpack doens't support buffer protocol objects
Raymond Hettinger [Wed, 4 Apr 2007 20:32:03 +0000 (20:32 +0000)]
Bug #1563759: struct.unpack doens't support buffer protocol objects

17 years agoBug #1686475: Support stat'ing open files on Windows again.
Martin v. Löwis [Wed, 4 Apr 2007 18:30:56 +0000 (18:30 +0000)]
Bug #1686475: Support stat'ing open files on Windows again.

17 years ago- Fix an off-by-one bug in locale.strxfrm().
Matthias Klose [Tue, 3 Apr 2007 04:39:34 +0000 (04:39 +0000)]
- Fix an off-by-one bug in locale.strxfrm().

  Patch taken from http://bugs.debian.org/416934.

17 years agoSF #1382213: Tutorial section 9.5.1 ignores MRO for new-style classes
Raymond Hettinger [Tue, 3 Apr 2007 01:37:56 +0000 (01:37 +0000)]
SF #1382213:  Tutorial section 9.5.1 ignores MRO for new-style classes

17 years agoSF 1602378 Clarify docstrings for bisect
Raymond Hettinger [Tue, 3 Apr 2007 00:01:09 +0000 (00:01 +0000)]
SF 1602378 Clarify docstrings for bisect

17 years agoArray module's buffer interface can now handle empty arrays.
Raymond Hettinger [Mon, 2 Apr 2007 22:39:08 +0000 (22:39 +0000)]
Array module's buffer interface can now handle empty arrays.

17 years agoSF #1693079 Array module cannot pickle empty arrays
Raymond Hettinger [Mon, 2 Apr 2007 17:03:46 +0000 (17:03 +0000)]
SF #1693079 Array module cannot pickle empty arrays

17 years agoBackport 54644:
Neal Norwitz [Sun, 1 Apr 2007 18:29:47 +0000 (18:29 +0000)]
Backport 54644:
SF #1685563, MSVCCompiler creates redundant and long PATH strings

If MSVCCompiler.initialize() was called multiple times, the path
would get duplicated.  On Windows, this is a problem because the
path is limited to 4k.  There's no benefit in adding a path multiple
times, so prevent that from occuring.  We also normalize the path
before checking for duplicates so things like /a and /a/ won't both
be stored.

17 years agoBump the patch level version of distutils since there were a few bug fixes
Marc-André Lemburg [Sat, 31 Mar 2007 21:02:43 +0000 (21:02 +0000)]
Bump the patch level version of distutils since there were a few bug fixes
since the 2.5.0 release.

Backport of r54615.

17 years agoBug #1655392: don't add -L/usr/lib/pythonX.Y/config to the LDFLAGS
Georg Brandl [Sat, 31 Mar 2007 18:58:21 +0000 (18:58 +0000)]
Bug #1655392: don't add -L/usr/lib/pythonX.Y/config to the LDFLAGS
returned by python-config if Python was built with --enable-shared
because that prevented the shared library from being used.
  (backport from rev. 54634)

17 years agoBackport 54594:
Neal Norwitz [Sat, 31 Mar 2007 18:56:11 +0000 (18:56 +0000)]
Backport 54594:
Fix SF #1688393, sock.recvfrom(-24) crashes

Also fix some method names that were copied incorrectly (trunk fixed).

17 years agoAdd item
Andrew M. Kuchling [Fri, 30 Mar 2007 17:58:16 +0000 (17:58 +0000)]
Add item

17 years agoIn Windows' time.clock(), when QueryPerformanceFrequency() fails,
Georg Brandl [Thu, 29 Mar 2007 12:42:16 +0000 (12:42 +0000)]
In Windows' time.clock(), when QueryPerformanceFrequency() fails,
the C lib's clock() is used, but it must be divided by CLOCKS_PER_SEC
as for the POSIX implementation (thanks to #pypy).
 (backport from rev. 54606)

17 years agoPatch #1489771: update syntax rules in Python Reference Manual.
Žiga Seilnacht [Sat, 24 Mar 2007 14:27:21 +0000 (14:27 +0000)]
Patch #1489771: update syntax rules in Python Reference Manual.
Python 2.5 added support for explicit relative import statements and
yield expressions, which were missing in the manual.
Also fix grammar productions that used the names from the Grammar file,
markup that broke the generated grammar.txt, and wrap some lines that
broke the pdf output.
 (backport from rev. 54559)

17 years agoPrevent creation (followed by a segfault) of array types when the size
Thomas Heller [Fri, 23 Mar 2007 19:56:45 +0000 (19:56 +0000)]
Prevent creation (followed by a segfault) of array types when the size
overflows the valid Py_ssize_t range.  Check return values of
PyMem_Malloc.

Backported from trunk.

17 years agoBug #978833: Revert r50844, as it broke _socketobject.dup.
Martin v. Löwis [Fri, 23 Mar 2007 13:27:29 +0000 (13:27 +0000)]
Bug #978833: Revert r50844, as it broke _socketobject.dup.

17 years agoPatch #1686451: Fix return type for PySequence_{Count,Index,Fast_GET_SIZE}.
Martin v. Löwis [Fri, 23 Mar 2007 10:35:57 +0000 (10:35 +0000)]
Patch #1686451: Fix return type for PySequence_{Count,Index,Fast_GET_SIZE}.

17 years agoExplain the purpose of the b_needsfree flag. This answers Neals
Thomas Heller [Thu, 22 Mar 2007 20:33:04 +0000 (20:33 +0000)]
Explain the purpose of the b_needsfree flag.  This answers Neals
question (well, two months too late).

17 years agoBack out "Patch #1643874: memory leak in ctypes fixed."
Thomas Heller [Thu, 22 Mar 2007 19:43:37 +0000 (19:43 +0000)]
Back out "Patch #1643874: memory leak in ctypes fixed."

The code in this patch leaves no way to give up the ownership of a
BSTR instance.

17 years agoBug #1685704: use -m switch in timeit docs.
Georg Brandl [Thu, 22 Mar 2007 08:05:53 +0000 (08:05 +0000)]
Bug #1685704: use -m switch in timeit docs.
 (backport from rev. 54524)

17 years agoBug #1675967: re patterns pickled with older Python versions can
Žiga Seilnacht [Wed, 21 Mar 2007 20:37:39 +0000 (20:37 +0000)]
Bug #1675967: re patterns pickled with older Python versions can
now be unpickled.
 (backport form rev. 54492)

17 years agoTest and fix fromkeys optional argument.
Raymond Hettinger [Wed, 21 Mar 2007 20:36:45 +0000 (20:36 +0000)]
Test and fix fromkeys optional argument.

17 years agoAdd NEWS entry for old item
Andrew M. Kuchling [Wed, 21 Mar 2007 16:52:51 +0000 (16:52 +0000)]
Add NEWS entry for old item

17 years agoBug #1684254: webbrowser now uses shlex to split any command lines
Georg Brandl [Wed, 21 Mar 2007 11:52:38 +0000 (11:52 +0000)]
Bug #1684254: webbrowser now uses shlex to split any command lines
given to get(). It also detects when you use '&' as the last argument
and creates a BackgroundBrowser then.
 (backport -- this is a regression from 2.4 and therefore backported)

17 years agoPatch #1684834: document some utility C API functions.
Georg Brandl [Wed, 21 Mar 2007 09:17:36 +0000 (09:17 +0000)]
Patch #1684834: document some utility C API functions.
 (backport from rev. 54483)

17 years agoPatch #1682205: a TypeError while unpacking an iterable is no longer
Georg Brandl [Wed, 21 Mar 2007 09:00:55 +0000 (09:00 +0000)]
Patch #1682205: a TypeError while unpacking an iterable is no longer
masked by a generic one with the message "unpack non-sequence".
 (backport from rev. 54480)

17 years agoExtend work on rev 52962 and 53830 eliminating redundant PyObject_Hash() calls and...
Raymond Hettinger [Tue, 20 Mar 2007 21:45:04 +0000 (21:45 +0000)]
Extend work on rev 52962 and 53830 eliminating redundant PyObject_Hash() calls and fixing set/dict interoperability.

17 years agoAdd new example
Raymond Hettinger [Tue, 20 Mar 2007 21:12:23 +0000 (21:12 +0000)]
Add new example

17 years agoBackport docs for recv_into and recvfrom_into.
Georg Brandl [Sun, 18 Mar 2007 08:26:23 +0000 (08:26 +0000)]
Backport docs for recv_into and recvfrom_into.

17 years agomove note to the correct section
Gregory P. Smith [Sat, 17 Mar 2007 22:32:49 +0000 (22:32 +0000)]
move note to the correct section

17 years agoRFE #1670167: fix in isinstance() docs.
Georg Brandl [Fri, 16 Mar 2007 08:33:51 +0000 (08:33 +0000)]
RFE #1670167: fix in isinstance() docs.
 (backport from rev. 54409)

17 years agoPatch #1642547: Fix an error/crash when encountering syntax errors in complex if...
Collin Winter [Fri, 16 Mar 2007 04:12:48 +0000 (04:12 +0000)]
Patch #1642547: Fix an error/crash when encountering syntax errors in complex if statements.
Backported from r54404.

17 years agoPatch #1462488: prevent a segfault in object_reduce_ex() by splitting
Žiga Seilnacht [Thu, 15 Mar 2007 11:47:59 +0000 (11:47 +0000)]
Patch #1462488: prevent a segfault in object_reduce_ex() by splitting
the implementation for __reduce__ and __reduce_ex__ into two separate
functions. Fixes bug #931877.
 (backport from rev. 54397)

17 years agoAlso commit the patch ;)
Georg Brandl [Thu, 15 Mar 2007 07:43:22 +0000 (07:43 +0000)]
Also commit the patch ;)

17 years agoPatch #1681153: the wave module now closes a file object it opened if
Georg Brandl [Thu, 15 Mar 2007 07:42:22 +0000 (07:42 +0000)]
Patch #1681153: the wave module now closes a file object it opened if
initialization failed.
 (backport from rev. 54394)

17 years agoPatch #1680978: consistently use "alive" instead of "active" in the
Georg Brandl [Thu, 15 Mar 2007 07:38:21 +0000 (07:38 +0000)]
Patch #1680978: consistently use "alive" instead of "active" in the
thread lib doc.
 (backport from rev. 54392)

17 years agoPatch #1559413: Fix test_cmd_line if sys.executable contains a space.
Martin v. Löwis [Wed, 14 Mar 2007 20:02:38 +0000 (20:02 +0000)]
Patch #1559413: Fix test_cmd_line if sys.executable contains a space.

17 years agoDocument fixed bugs
Barry Warsaw [Wed, 14 Mar 2007 18:19:07 +0000 (18:19 +0000)]
Document fixed bugs

17 years agoPatch #1680015: Don't modify __slots__ tuple if it contains an unicode
Žiga Seilnacht [Wed, 14 Mar 2007 12:34:30 +0000 (12:34 +0000)]
Patch #1680015: Don't modify __slots__ tuple if it contains an unicode
name. Remove a reference leak that happened if the name could not be
converted to string.
 (backport from rev. 54378)

17 years agoBug #767111: fix long-standing bug in urllib which caused an
Georg Brandl [Wed, 14 Mar 2007 08:27:57 +0000 (08:27 +0000)]
Bug #767111: fix long-standing bug in urllib which caused an
AttributeError instead of an IOError when the server's response didn't
contain a valid HTTP status line.
 (backport from rev. 54376)

17 years agodoc update from HEAD. don't list "Unix, Windows" as a platform since that
Gregory P. Smith [Wed, 14 Mar 2007 07:22:35 +0000 (07:22 +0000)]
doc update from HEAD.  don't list "Unix, Windows" as a platform since that
covers everything now that Mac OS 9 isn't a popular issue.

17 years agodoc update from HEAD
Gregory P. Smith [Wed, 14 Mar 2007 07:20:47 +0000 (07:20 +0000)]
doc update from HEAD

17 years agoSF bug #1582282; decode_header() incorrectly splits not-conformant RFC
Barry Warsaw [Wed, 14 Mar 2007 04:29:06 +0000 (04:29 +0000)]
SF bug #1582282; decode_header() incorrectly splits not-conformant RFC
2047-like headers where there is no whitespace between encoded words.  This
fix changes the matching regexp to include a trailing lookahead assertion that
the closing ?= must be followed by whitespace, newline, or end-of-string.
This also changes the regexp to add the MULTILINE flag.

17 years agoInline PyImport_GetModulesReloading(). Backport from r54368.
Collin Winter [Tue, 13 Mar 2007 23:04:29 +0000 (23:04 +0000)]
Inline PyImport_GetModulesReloading(). Backport from r54368.

17 years agoPatch #1194449: correctly detect unbound methods in pydoc.
Georg Brandl [Tue, 13 Mar 2007 22:16:43 +0000 (22:16 +0000)]
Patch #1194449: correctly detect unbound methods in pydoc.
 (backport from rev. 54365)

17 years agoBug #1622896: fix a rare corner case where the bz2 module raised an
Georg Brandl [Tue, 13 Mar 2007 12:34:35 +0000 (12:34 +0000)]
Bug #1622896: fix a rare corner case where the bz2 module raised an
error in spite of a succesful compression.
 (backport from rev. 54336)

17 years agoPatch #1449244: Support Unicode strings in
Martin v. Löwis [Tue, 13 Mar 2007 10:24:14 +0000 (10:24 +0000)]
Patch #1449244: Support Unicode strings in
email.message.Message.{set_charset,get_content_charset}.

17 years agoPatch #1569798: fix a bug in distutils when building Python from a
Georg Brandl [Tue, 13 Mar 2007 10:19:35 +0000 (10:19 +0000)]
Patch #1569798: fix a bug in distutils when building Python from a
directory within sys.exec_prefix.
 (backport from rev. 54331)

17 years agoPatch #1542681: add entries for "with", "as" and "CONTEXTMANAGERS" to
Georg Brandl [Tue, 13 Mar 2007 10:07:01 +0000 (10:07 +0000)]
Patch #1542681: add entries for "with", "as" and "CONTEXTMANAGERS" to
pydoc's help keywords.
 (backport from rev. 54329)

17 years agoPatch #1679379: add documentation for fnmatch.translate().
Georg Brandl [Tue, 13 Mar 2007 07:51:04 +0000 (07:51 +0000)]
Patch #1679379: add documentation for fnmatch.translate().
 (backport from rev. 54323)

17 years agoBug #742342: make Python stop segfaulting on infinitely-recursive reload()s. Fixed...
Collin Winter [Mon, 12 Mar 2007 16:49:23 +0000 (16:49 +0000)]
Bug #742342: make Python stop segfaulting on infinitely-recursive reload()s. Fixed by patch #922167.
Backported from r54291.

17 years agoTypo fix.
Georg Brandl [Mon, 12 Mar 2007 16:15:17 +0000 (16:15 +0000)]
Typo fix.
 (backport from rev. 54292)

17 years agoBug #1675511: Use -Kpic instead of -xcode=pic32 on Solaris/x86.
Martin v. Löwis [Mon, 12 Mar 2007 10:50:51 +0000 (10:50 +0000)]
Bug #1675511: Use -Kpic instead of -xcode=pic32 on Solaris/x86.

17 years agoTokio Kikuchi's fix for SF bug #1629369; folding whitespace allowed in the
Barry Warsaw [Mon, 12 Mar 2007 03:21:28 +0000 (03:21 +0000)]
Tokio Kikuchi's fix for SF bug #1629369; folding whitespace allowed in the
display name of an email address, e.g.

Foo
\tBar <foo@example.com>

Test case added by Barry.

17 years agoPatch #1678662: ftp.python.org does not exist. So the testcode in urllib.py must...
Collin Winter [Mon, 12 Mar 2007 01:57:49 +0000 (01:57 +0000)]
Patch #1678662: ftp.python.org does not exist. So the testcode in urllib.py must use a more
stable FTP.
Backported from r54278.

17 years agoFix resource leak reported in SF #1516995.
Vinay Sajip [Sun, 11 Mar 2007 18:37:20 +0000 (18:37 +0000)]
Fix resource leak reported in SF #1516995.

17 years agoPatch #1192590: Fix pdb's "ignore" and "condition" commands so they trap the IndexErr...
Collin Winter [Sun, 11 Mar 2007 16:04:01 +0000 (16:04 +0000)]
Patch #1192590: Fix pdb's "ignore" and "condition" commands so they trap the IndexError caused by passing in an invalid breakpoint number.
Backport of r54271.

17 years agoPatch #1675981: remove unreachable code from type.__new__() method.
Žiga Seilnacht [Sun, 11 Mar 2007 16:01:51 +0000 (16:01 +0000)]
Patch #1675981: remove unreachable code from type.__new__() method.
__dict__ and __weakref__ are removed from the slots tuple earlier
in the code, in the loop that mangles slot names.
 (backport from rev. 54270)

17 years agoAdd missing "return" statements in exception handler.
Georg Brandl [Sun, 11 Mar 2007 08:28:50 +0000 (08:28 +0000)]
Add missing "return" statements in exception handler.
 (backport from rev. 54268)

17 years agoConvert an assert to a raise so it works even in the presence of -O.
Collin Winter [Sat, 10 Mar 2007 14:35:22 +0000 (14:35 +0000)]
Convert an assert to a raise so it works even in the presence of -O.

17 years agoRevert rev. 54198, it's not really backwards compatible.
Georg Brandl [Sat, 10 Mar 2007 08:06:14 +0000 (08:06 +0000)]
Revert rev. 54198, it's not really backwards compatible.

17 years agoBug #1531963: Make SocketServer.TCPServer's server_address always be equal to calling...
Collin Winter [Sat, 10 Mar 2007 03:31:44 +0000 (03:31 +0000)]
Bug #1531963: Make SocketServer.TCPServer's server_address always be equal to calling getsockname() on the server's socket. Fixed by patch #1545011.
Backported from r54253.

17 years agoMerged revisions 54248 via svnmerge from
Thomas Heller [Fri, 9 Mar 2007 20:48:57 +0000 (20:48 +0000)]
Merged revisions 54248 via svnmerge from
svn+ssh://pythondev@svn.python.org/python/trunk/Lib/ctypes

........
  r54248 | thomas.heller | 2007-03-09 21:39:22 +0100 (Fr, 09 Mär 2007) | 7 lines

  Bug #1651235: When a tuple was passed to a ctypes function call,
  Python would crash instead of raising an error.

  The crash was caused by a section of code that should have been
  removed long ago, at that time ctypes had other ways to pass
  parameters to function calls.
........

17 years agoMerged revisions 54244 via svnmerge from
Thomas Heller [Fri, 9 Mar 2007 20:21:16 +0000 (20:21 +0000)]
Merged revisions 54244 via svnmerge from
svn+ssh://pythondev@svn.python.org/python/trunk/Lib/ctypes

........
  r54244 | thomas.heller | 2007-03-09 20:21:28 +0100 (Fr, 09 Mär 2007) | 3 lines

  Fix bug #1646630: ctypes.string_at(buf, 0) and ctypes.wstring_at(buf, 0)
  returned string up to the first NUL character.
........

17 years agoFix SF #1676971, Complex OverflowError has a typo
Neal Norwitz [Fri, 9 Mar 2007 06:01:28 +0000 (06:01 +0000)]
Fix SF #1676971, Complex OverflowError has a typo

17 years agoManual backport of r54233. This will help prevent spurious Buildbot failures
Brett Cannon [Fri, 9 Mar 2007 04:57:00 +0000 (04:57 +0000)]
Manual backport of r54233.  This will help prevent spurious Buildbot failures
by HTTPS connections that time out.

17 years agoSF #1637850: make_table in difflib did not work with unicode
Raymond Hettinger [Thu, 8 Mar 2007 21:30:55 +0000 (21:30 +0000)]
SF #1637850:  make_table in difflib did not work with unicode

17 years agoBackported r54226 from p3yk: Move test_unittest, test_doctest and test_doctest2 highe...
Collin Winter [Thu, 8 Mar 2007 19:58:46 +0000 (19:58 +0000)]
Backported r54226 from p3yk: Move test_unittest, test_doctest and test_doctest2 higher up in the testing order.

17 years agoSF 1676321: empty() returned wrong result
Raymond Hettinger [Thu, 8 Mar 2007 19:23:25 +0000 (19:23 +0000)]
SF 1676321:  empty() returned wrong result

17 years agoAdd a NEWS entry for rev. 54207,8.
Georg Brandl [Thu, 8 Mar 2007 18:37:35 +0000 (18:37 +0000)]
Add a NEWS entry for rev. 54207,8.
 (backport from rev. 54222)

17 years agoFix #1676656: \em is different from \emph...
Georg Brandl [Thu, 8 Mar 2007 17:49:17 +0000 (17:49 +0000)]
Fix #1676656: \em is different from \emph...
 (backport from rev. 54220)