Raymond Hettinger
113776c411
Check for a common user error with defaultdict().
2007-02-07 21:40:49 +00:00
Raymond Hettinger
20dcf1cb9d
SF #1615701 : make d.update(m) honor __getitem__() and keys() in dict subclasses
2007-02-07 20:01:28 +00:00
Peter Astrand
39e23b2bfa
Applied patch 1124861.3.patch to solve bug #1124861 : Automatically create pipes on Windows, if GetStdHandle fails. Backport from rev 53646.
2007-02-06 15:41:46 +00:00
Georg Brandl
cd7a78e0a4
[Patch #783050 from Patrick Lynch] The emulation of forkpty() is incorrect;
...
the master should close the slave fd.
Added a test to test_pty.py that reads from the master_fd after doing
a pty.fork(); without the fix it hangs forever instead of raising an
exception. (<crossing fingers for the buildbots>)
Backport from trunk rev. 53146.
2007-01-31 07:48:49 +00:00
Georg Brandl
20aa477a2d
Patch #1638243 : the compiler package is now able to correctly compile
...
a with statement; previously, executing code containing a with statement
compiled by the compiler package crashed the interpreter.
(backport from rev. 53575)
2007-01-27 17:43:07 +00:00
Brett Cannon
6d8e5ad09d
Backport fix for bug #1643943 .
2007-01-25 23:22:24 +00:00
Brett Cannon
75ba075110
If you created a weakref in an object's __del__ method to itself it would
...
segfault the interpreter during weakref clean up. Now any new weakrefs created
after __del__ is run are removed silently.
Fixes bug #1377858 and the weakref_in_del crasher for new-style classes.
Classic classes are still affected.
2007-01-23 22:41:20 +00:00
Georg Brandl
1e4bb44048
Bug #1627316 : handle error in condition/ignore pdb commands more gracefully.
...
(backport from rev. 53524)
2007-01-22 21:23:45 +00:00
Georg Brandl
742e39296a
Bug #1249573 : fix rfc822.parsedate not accepting a certain date format
...
(backport from rev. 53522)
2007-01-22 21:10:43 +00:00
Andrew M. Kuchling
f446a9b00a
[Bug #1633678 ] Improve pattern used for mbox 'From' lines; add a simple test
2007-01-22 20:49:44 +00:00
Andrew M. Kuchling
a0a133bea8
Make comment match the code
2007-01-22 20:31:15 +00:00
Peter Astrand
bb6a0edce1
Avoid O(N**2) bottleneck in _communicate_(). Fixes #1598181 . Backport from rev. 53295.
2007-01-21 15:45:25 +00:00
Georg Brandl
962e9165aa
Patch #1627441 : close sockets properly in urllib2.
...
(backport from rev. 53511)
2007-01-21 10:35:14 +00:00
Georg Brandl
8e932e7d68
Bug #1486663 : don't reject keyword arguments for subclasses of builtin
...
types.
(backport from rev. 53509)
2007-01-21 10:28:56 +00:00
Raymond Hettinger
3b77d3d9a7
SF# 1635892: Fix docs for betavariate's input parameters .
2007-01-19 18:03:13 +00:00
Thomas Heller
225755dc36
Merged revisions 53402 via svnmerge from
...
svn+ssh://pythondev@svn.python.org/python/trunk/Lib/ctypes
........
r53402 | thomas.heller | 2007-01-12 21:17:34 +0100 (Fr, 12 Jan 2007) | 6 lines
patch #1610795 : BSD version of ctypes.util.find_library, by Martin
Kammerhofer.
Backported from trunk.
........
2007-01-17 19:53:24 +00:00
Peter Astrand
29794ecd43
Fix for bug #1634343 : allow specifying empty arguments on Windows
2007-01-13 22:37:11 +00:00
Raymond Hettinger
535989ecb6
SF #1486663 -- Allow keyword args in subclasses of set() and frozenset().
2007-01-11 18:21:04 +00:00
Matthias Klose
9e031c7c9d
- idle: Honor the "Cancel" action in the save dialog (Debian bug #299092 ).
2007-01-11 11:42:43 +00:00
Thomas Heller
5131925034
Change the ctypes version number to "1.0.2".
2007-01-10 20:07:29 +00:00
Thomas Heller
346085eb87
Merged revisions 53316 via svnmerge from
...
svn+ssh://pythondev@svn.python.org/python/trunk/Lib/ctypes
........
r53316 | thomas.heller | 2007-01-09 20:19:33 +0100 (Di, 09 Jan 2007) | 4 lines
Verify the sizes of the basic ctypes data types against the struct
module.
Backport from trunk.
........
2007-01-09 19:52:31 +00:00
Raymond Hettinger
5b44cbe6d8
Fix zero-length corner case for iterating over a mutating deque.
2007-01-08 18:05:53 +00:00
Vinay Sajip
f96725af8b
Backported changes from trunk:
...
Made func argument in LogRecord.__init__ optional.
Improved performance of _fixupChildren.
2007-01-08 10:12:29 +00:00
Vinay Sajip
977061142d
Backported change from trunk:
...
Made SysLogHandler more resilient in the face of syslogd failures.
2007-01-08 10:11:58 +00:00
Peter Astrand
6cdc34672c
Re-implemented fix for #1531862 once again, in a way that works with Python 2.2. Fixes bug #1603424 .
2007-01-07 09:00:11 +00:00
Andrew M. Kuchling
3b015c46a5
[Bug #1622533 ] Make docstrings raw strings because they contain control characters (\0, \1)
2007-01-05 14:24:36 +00:00
Gregory P. Smith
1a050f5f52
support linking the _bsddb extension module against BerkeleyDB 4.5
...
[backport of r53252]
2007-01-05 02:09:06 +00:00
Martin v. Löwis
bea1c70144
Bug #1566280 : Explicitly invoke threading._shutdown from Py_Main,
...
to avoid relying on atexit.
2007-01-04 21:06:57 +00:00
Raymond Hettinger
ca516d21ab
Fix stability of heapq's nlargest() and nsmallest().
2007-01-04 17:53:16 +00:00
Raymond Hettinger
9cdf70399f
For sets with cyclical reprs, emit '...' instead of recursing.
2006-12-29 18:49:13 +00:00
Thomas Wouters
04e820443b
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.
2006-12-29 14:42:17 +00:00
Neal Norwitz
e38ecee5c3
SF bug #1623890 , fix argument name in docstring
2006-12-29 03:01:06 +00:00
Lars Gustäbel
f9a2c63c79
Patch #1504073 : Fix tarfile.open() for mode "r" with a fileobj argument.
...
Backport from rev. 53161.
2006-12-27 10:36:58 +00:00
Lars Gustäbel
12e087a1b1
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.
2006-12-23 18:13:57 +00:00
Lars Gustäbel
aedb92e59c
Patch #1230446 : tarfile.py: fix ExFileObject so that read() and tell()
...
work correctly together with readline().
(backport from rev. 53153)
2006-12-23 16:51:47 +00:00
Andrew M. Kuchling
60775f29de
[Patch #827559 from Chris Gonnerman] Make SimpleHTTPServer redirect when a directory URL is missing the trailing slash; this lets relative links work.
2006-12-22 19:08:41 +00:00
Andrew M. Kuchling
bbad84b41a
[Bug #737202 ; fix from Titus Brown] Make CGIHTTPServer work for scripts in sub-directories
2006-12-22 13:28:43 +00:00
Raymond Hettinger
5425a67331
Bug #1590891 : random.randrange don't return correct value for big number
2006-12-20 07:43:59 +00:00
Andrew M. Kuchling
df6994db84
[Patch #1600491 from Jim Jewett] Describe how to build help files on Windows
2006-12-19 15:19:14 +00:00
Andrew M. Kuchling
0faf90acc4
[Patch #1617413 from Dug Song] Fix HTTP Basic authentication via HTTPS
2006-12-19 15:12:23 +00:00
Andrew M. Kuchling
a75d31619c
[Patch #1599256 from David Watson] check that os.fsync is available before using it
2006-12-14 18:59:07 +00:00
Vinay Sajip
4d7ad63210
Stripped whitespace from comma-separated values read from config file
2006-12-14 08:41:39 +00:00
Georg Brandl
9e2423ae8f
Move errno imports back to individual functions.
...
(backport from rev. 52996)
2006-12-11 07:56:43 +00:00
Georg Brandl
2bcf0154d5
Patch #1608267 : fix a race condition in os.makedirs() is the directory
...
to be created is already there.
(backport from rev. 52972)
2006-12-09 09:10:18 +00:00
Thomas Heller
db386544ed
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.
2006-12-08 20:44:19 +00:00
Raymond Hettinger
775ebe29a5
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()
2006-12-08 18:12:24 +00:00
Georg Brandl
25f58f6b5a
Patch #1610437 : fix a tarfile bug with long filename headers.
...
(backport from rev. 52938)
2006-12-06 22:21:23 +00:00
Matthias Klose
fa713e18f6
- Fix build failure on kfreebsd and on the hurd.
2006-12-03 17:13:54 +00:00
Raymond Hettinger
1c305dbf97
Fix nit in comment.
2006-12-02 01:57:21 +00:00
Georg Brandl
2286441a81
Bug #1603321 : make pstats.Stats accept Unicode file paths.
...
(backport from rev. 52845)
2006-11-26 19:27:51 +00:00