Martin v. Löwis
2f401d7186
Patch #1686451 : Fix return type for PySequence_{Count,Index,Fast_GET_SIZE}.
...
Will backport.
2007-03-23 10:35:49 +00:00
Neal Norwitz
eff49dce56
Add Mark Dickinson for SF # 1675423.
2007-03-23 05:17:23 +00:00
Guido van Rossum
143b564059
- Bug #1683368 : The object.__init__() and object.__new__() methods are
...
now stricter in rejecting excess arguments. The only time when
either allows excess arguments is when it is not overridden and the
other one is. For backwards compatibility, when both are
overridden, it is a deprecation warning (for now; maybe a Py3k
warning later).
When merging this into 3.0, the warnings should become errors.
Note: without the change to string.py, lots of spurious warnings happen.
What's going on there?
2007-03-23 04:58:42 +00:00
Thomas Heller
82730f8d11
Explain the purpose of the b_needsfree flag (forward ported from release25-maint).
2007-03-22 20:34:37 +00:00
Thomas Heller
f493cbd824
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:44:31 +00:00
Georg Brandl
bfcc975527
Bug #1685704 : use -m switch in timeit docs.
2007-03-22 08:05:45 +00:00
Raymond Hettinger
e3146f5aa3
Add test and fix for fromkeys() optional argument.
2007-03-21 20:33:57 +00:00
Žiga Seilnacht
7492e4260e
Bug #1675967 : re patterns pickled with older Python versions can
...
now be unpickled. Will backport.
2007-03-21 20:07:56 +00:00
Facundo Batista
3ff9e55890
Minor clarification, saying that blocking means no timeout (from bug #882297 )
2007-03-21 19:41:24 +00:00
Andrew M. Kuchling
4732c6e164
Put code examples at left margin instead of indenting them
2007-03-21 16:59:20 +00:00
Andrew M. Kuchling
7af1bdf619
Fix sentence, and fix typo in example
2007-03-21 16:57:32 +00:00
Andrew M. Kuchling
8aa30927ab
Add comments on maintenance of this file
2007-03-21 14:32:43 +00:00
Georg Brandl
972ca507aa
Fix #1684254 : split BROWSER contents with shlex to avoid displaying 'URL'.
2007-03-21 11:51:25 +00:00
Georg Brandl
5e0b865b0f
Patch #1684834 : document some utility C API functions.
2007-03-21 09:16:53 +00:00
Georg Brandl
cae9f3d916
New test for rev. 54407 which only uses directories under TESTFN.
2007-03-21 09:10:29 +00:00
Georg Brandl
5cb76c19ba
Patch #1682205 : a TypeError while unpacking an iterable is no longer
...
masked by a generic one with the message "unpack non-sequence".
2007-03-21 09:00:39 +00:00
Neal Norwitz
aa754b70b0
Remove unused file spotted by Paul Hankin
2007-03-21 06:39:48 +00:00
Georg Brandl
b54a809825
Fix for glob.py if filesystem encoding is None.
2007-03-20 23:05:14 +00:00
Raymond Hettinger
0bbbfc4c0b
Extend work on rev 52962 and 53829 eliminating redundant PyObject_Hash() calls and fixing set/dict interoperability.
2007-03-20 21:27:24 +00:00
Neal Norwitz
ce55e21c70
Try to get test_urllib to pass on Windows by closing the file.
...
I'm guessing that's the problem. h.getfile() must be called *after*
h.getreply() and the fp can be None.
I'm not entirely convinced this is the best fix (or even correct).
The buildbots will tell us if things improve or not. I don't
know if this needs to be backported (assuming it actually works).
2007-03-20 08:14:57 +00:00
Neal Norwitz
6cbd8de641
Try to be a little more resilient to errors. This might help the test
...
pass, but my guess is that it won't. I'm guessing that some other
test is leaving this file open which means it can't be removed
under Windows AFAIK.
2007-03-20 06:53:17 +00:00
Neal Norwitz
b0a7d4ec68
Try to make this test more resistant to dropping from previous runs (ie, files that may exist but cause the test to fail). Should be backported (assuming it works :-)
2007-03-20 06:16:26 +00:00
Neal Norwitz
ce2ab351f0
Try to make this test more resistant to dropping from previous runs (ie, files that may exist but cause the test to fail). Should be backported (assuming it works :-)
2007-03-20 06:13:25 +00:00
Neal Norwitz
c990f6454f
Try backing out 54407 to see if it corrects the problems on the Windows
...
buildbots. This rev was backported, so we will need to keep both branches
in sync, pending the outcome of the test after this checkin.
2007-03-20 05:23:09 +00:00
Neal Norwitz
c473d5ebab
Get rid of deprecation warning when testing commands.getstatus()
2007-03-20 05:21:21 +00:00
Neal Norwitz
216f9b0709
Add a comment about 3k migration
2007-03-20 05:08:23 +00:00
Neal Norwitz
b9523df1e6
Add some doc that was left out from some change to platform.py
2007-03-20 05:07:28 +00:00
Georg Brandl
124df8398d
Patch #1683328 : fixes and enhancements for "unparse" demo.
2007-03-19 19:02:48 +00:00
Collin Winter
a8785cc26a
Patch #1630118 : add a SpooledTemporaryFile class to tempfile.
2007-03-19 18:52:08 +00:00
Georg Brandl
d9dbe72056
Patch #1678339 : test case for bug in difflib.
2007-03-18 18:28:25 +00:00
Georg Brandl
1d4b834574
Patch #1682878 : the new socket methods are recv_into and recvfrom_into, not *_buf.
2007-03-18 08:25:00 +00:00
Gregory P. Smith
f09c626a42
move note to the correct section
2007-03-17 22:33:35 +00:00
Georg Brandl
2b869943fa
Patch #1675423 : PyComplex_AsCComplex() now tries to convert an object
...
to complex using its __complex__() method before falling back to the
__float__() method. Therefore, the functions in the cmath module now
can operate on objects that define a __complex__() method.
(backport)
2007-03-17 16:08:45 +00:00
Collin Winter
6f187743ff
Patch 1339796: add a relpath() function to os.path.
2007-03-16 22:16:08 +00:00
Collin Winter
6de691d78c
Remove test/output/test_popen2 (missed in r54417).
2007-03-16 21:15:35 +00:00
Collin Winter
1b4145dbb3
Patch #1676994 : Refactor test_popen2 to use unittest.
2007-03-16 21:13:35 +00:00
Jeremy Hylton
dd2cf1cb84
Clean up formatting of this file.
...
The file should now follow PEP 7, except that it uses 4 space indents
(in the style of Py3k). This particular code would be really hard to
read with the regular tab idents.
Other changes:
- reflow long lines
- change multi-line conditionals to have test at end of line
2007-03-16 15:59:47 +00:00
Jeremy Hylton
26ca925838
Remove warning: funcion declaration isn't a prototype
2007-03-16 14:49:11 +00:00
Žiga Seilnacht
594965d17a
Whitespace cleanup. Also remove the empty lines
...
from the previous check in.
2007-03-16 12:11:11 +00:00
Žiga Seilnacht
6f2d09c949
Patch #1623563 : allow __class__ assignment for classes with __slots__.
...
The old and the new class are still required to have the same slot
names, but the order in which they are specified is not relevant.
2007-03-16 11:59:38 +00:00
Georg Brandl
6ab8452036
RFE #1670167 : fix in isinstance() docs.
2007-03-16 08:33:47 +00:00
Georg Brandl
5a80ff6111
Add \versionadded tag.
2007-03-16 08:24:21 +00:00
Georg Brandl
8844e438b1
Patch #1273829 : os.walk() now has a "followlinks" parameter. If set to
...
True (which is not the default), it visits symlinks pointing to
directories.
2007-03-16 08:22:40 +00:00
Georg Brandl
8f06d02935
Bug #1681228 : the webbrowser module now correctly uses the default
...
GNOME or KDE browser, depending on whether there is a session of one
of those present. Also, it tries the Windows default browser before
trying Mozilla variants.
(backport)
2007-03-16 07:55:09 +00:00
Collin Winter
77c67bd585
Patch #1642547 : Fix an error/crash when encountering syntax errors in complex if statements.
...
Will backport.
2007-03-16 04:11:30 +00:00
Žiga Seilnacht
20f43d3018
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 . Will backport.
2007-03-15 11:44:55 +00:00
Georg Brandl
ab1f4674ad
Patch #1681153 : the wave module now closes a file object it opened if
...
initialization failed.
2007-03-15 07:41:30 +00:00
Georg Brandl
8784bae65d
Patch #1680978 : consistently use "alive" instead of "active" in the
...
thread lib doc.
2007-03-15 07:38:14 +00:00
Neal Norwitz
72d9eec1bb
Wrap a long line and fix a typo (is -> if)
2007-03-15 04:41:20 +00:00
Brett Cannon
ea2835a860
Raise ResourceDenied in test_urllib2net when the Net connection goes bad.
2007-03-14 21:44:15 +00:00