Thomas Heller
b151f721a9
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.
2007-03-23 19:56:45 +00:00
Martin v. Löwis
a8ddae6149
Bug #978833 : Revert r50844, as it broke _socketobject.dup.
2007-03-23 13:27:29 +00:00
Martin v. Löwis
fe048e8ee7
Patch #1686451 : Fix return type for PySequence_{Count,Index,Fast_GET_SIZE}.
2007-03-23 10:35:57 +00:00
Thomas Heller
50d1d0bad5
Explain the purpose of the b_needsfree flag. This answers Neals
...
question (well, two months too late).
2007-03-22 20:33:04 +00:00
Thomas Heller
02b8feea9f
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.
2007-03-22 19:43:37 +00:00
Georg Brandl
4d891193d1
Bug #1685704 : use -m switch in timeit docs.
...
(backport from rev. 54524)
2007-03-22 08:05:53 +00:00
Žiga Seilnacht
e5df857cc3
Bug #1675967 : re patterns pickled with older Python versions can
...
now be unpickled.
(backport form rev. 54492)
2007-03-21 20:37:39 +00:00
Raymond Hettinger
7ed0a65831
Test and fix fromkeys optional argument.
2007-03-21 20:36:45 +00:00
Andrew M. Kuchling
e1b4a7e1f9
Add NEWS entry for old item
2007-03-21 16:52:51 +00:00
Georg Brandl
9225f226a3
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)
2007-03-21 11:52:38 +00:00
Georg Brandl
bd9d51321e
Patch #1684834 : document some utility C API functions.
...
(backport from rev. 54483)
2007-03-21 09:17:36 +00:00
Georg Brandl
8a10ea4613
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)
2007-03-21 09:00:55 +00:00
Raymond Hettinger
f94e89c578
Extend work on rev 52962 and 53830 eliminating redundant PyObject_Hash() calls and fixing set/dict interoperability.
2007-03-20 21:45:04 +00:00
Raymond Hettinger
42f4cfa9b6
Add new example
2007-03-20 21:12:23 +00:00
Georg Brandl
c77f6c6ea4
Backport docs for recv_into and recvfrom_into.
2007-03-18 08:26:23 +00:00
Gregory P. Smith
8e92dd0c9c
move note to the correct section
2007-03-17 22:32:49 +00:00
Georg Brandl
d20046622a
RFE #1670167 : fix in isinstance() docs.
...
(backport from rev. 54409)
2007-03-16 08:33:51 +00:00
Collin Winter
7d9ac78384
Patch #1642547 : Fix an error/crash when encountering syntax errors in complex if statements.
...
Backported from r54404.
2007-03-16 04:12:48 +00:00
Žiga Seilnacht
c1b4e8e6e2
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)
2007-03-15 11:47:59 +00:00
Georg Brandl
7cd6ef0913
Also commit the patch ;)
2007-03-15 07:43:22 +00:00
Georg Brandl
385cd40a67
Patch #1681153 : the wave module now closes a file object it opened if
...
initialization failed.
(backport from rev. 54394)
2007-03-15 07:42:22 +00:00
Georg Brandl
abcb4bb276
Patch #1680978 : consistently use "alive" instead of "active" in the
...
thread lib doc.
(backport from rev. 54392)
2007-03-15 07:38:21 +00:00
Martin v. Löwis
7520df439a
Patch #1559413 : Fix test_cmd_line if sys.executable contains a space.
2007-03-14 20:02:38 +00:00
Barry Warsaw
1a5fe58cd4
Document fixed bugs
2007-03-14 18:19:07 +00:00
Žiga Seilnacht
94c887258c
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)
2007-03-14 12:34:30 +00:00
Georg Brandl
027ac24650
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)
2007-03-14 08:27:57 +00:00
Gregory P. Smith
12e8fe63e2
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.
2007-03-14 07:22:35 +00:00
Gregory P. Smith
5cdefad0e0
doc update from HEAD
2007-03-14 07:20:47 +00:00
Barry Warsaw
924d148b98
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.
2007-03-14 04:29:06 +00:00
Collin Winter
2a98ff8eed
Inline PyImport_GetModulesReloading(). Backport from r54368.
2007-03-13 23:04:29 +00:00
Georg Brandl
afa4f485dd
Patch #1194449 : correctly detect unbound methods in pydoc.
...
(backport from rev. 54365)
2007-03-13 22:16:43 +00:00
Georg Brandl
d6e73c1785
Bug #1622896 : fix a rare corner case where the bz2 module raised an
...
error in spite of a succesful compression.
(backport from rev. 54336)
2007-03-13 12:34:35 +00:00
Martin v. Löwis
1300831c48
Patch #1449244 : Support Unicode strings in
...
email.message.Message.{set_charset,get_content_charset}.
2007-03-13 10:24:14 +00:00
Georg Brandl
74fb211445
Patch #1569798 : fix a bug in distutils when building Python from a
...
directory within sys.exec_prefix.
(backport from rev. 54331)
2007-03-13 10:19:35 +00:00
Georg Brandl
6cdcdbcdaa
Patch #1542681 : add entries for "with", "as" and "CONTEXTMANAGERS" to
...
pydoc's help keywords.
(backport from rev. 54329)
2007-03-13 10:07:01 +00:00
Georg Brandl
0a24d10524
Patch #1679379 : add documentation for fnmatch.translate().
...
(backport from rev. 54323)
2007-03-13 07:51:04 +00:00
Collin Winter
e19d7a3c0a
Bug #742342 : make Python stop segfaulting on infinitely-recursive reload()s. Fixed by patch #922167 .
...
Backported from r54291.
2007-03-12 16:49:23 +00:00
Georg Brandl
1817f096f4
Typo fix.
...
(backport from rev. 54292)
2007-03-12 16:15:17 +00:00
Martin v. Löwis
a8cfa2a8cd
Bug #1675511 : Use -Kpic instead of -xcode=pic32 on Solaris/x86.
2007-03-12 10:50:51 +00:00
Barry Warsaw
ef23d7000d
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.
2007-03-12 03:21:28 +00:00
Collin Winter
98d1a4d727
Patch #1678662 : ftp.python.org does not exist. So the testcode in urllib.py must use a more
...
stable FTP.
Backported from r54278.
2007-03-12 01:57:49 +00:00
Vinay Sajip
fbf1f3e602
Fix resource leak reported in SF #1516995 .
2007-03-11 18:37:20 +00:00
Collin Winter
3e43bcc78e
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.
2007-03-11 16:04:01 +00:00
Žiga Seilnacht
ad3d2c2fe4
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)
2007-03-11 16:01:51 +00:00
Georg Brandl
d28d9c8221
Add missing "return" statements in exception handler.
...
(backport from rev. 54268)
2007-03-11 08:28:50 +00:00
Collin Winter
69fe9e478f
Convert an assert to a raise so it works even in the presence of -O.
2007-03-10 14:35:22 +00:00
Georg Brandl
237458b2bf
Revert rev. 54198, it's not really backwards compatible.
2007-03-10 08:06:14 +00:00
Collin Winter
86d8d3520d
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.
2007-03-10 03:31:44 +00:00
Thomas Heller
8bf469ddc1
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.
........
2007-03-09 20:48:57 +00:00
Thomas Heller
f7eed5e2d1
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.
........
2007-03-09 20:21:16 +00:00