Commit Graph

36506 Commits

Author SHA1 Message Date
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
Brett Cannon ed001842cf Note how test_socket_ssl has various exceptions that deal with a flaky Net
connection are silenced.
2007-03-14 21:40:13 +00:00
Martin v. Löwis cd1210a55f Patch #1559413: Fix test_cmd_line if sys.executable contains a space.
Will backport.
2007-03-14 20:02:31 +00:00
Žiga Seilnacht 71436f0229 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. Will backport.
2007-03-14 12:24:09 +00:00
Georg Brandl f66b6039c1 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.
2007-03-14 08:27:52 +00:00
Gregory P. Smith 90fd76a2b4 Its time to stop listing (Unix, Windows) when we really mean "everything but Mac OS 9"
now that nobody is likely to use Python on Mac OS 9 and most of the (Mac) platform
items are all OS X special API specific since OS X is unixy enough for these modules
to be available out of the box.
2007-03-14 07:19:50 +00:00
Gregory P. Smith 859b7c1b82 correct order and names of the less often used keyword parameters. 2007-03-14 07:17:40 +00:00
Barry Warsaw dcd24ae501 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:59:50 +00:00
Collin Winter 47c52a8b60 Inline PyImport_GetModulesReloading(). 2007-03-13 23:02:15 +00:00
Georg Brandl 4aef7275cb Patch #1185447: binascii.b2a_qp() now correctly quotes binary characters
with ASCII value less than 32. Also, it correctly quotes dots only if
they occur on a single line, as opposed to the previous behavior of
quoting dots if they are the second character of any line.
2007-03-13 22:49:43 +00:00
Georg Brandl 7e2b6bb24f Patch #1194449: correctly detect unbound methods in pydoc. 2007-03-13 22:16:30 +00:00
Georg Brandl 03b90d8cfd Patch #957650: "%var%" environment variable references are now properly
expanded in ntpath.expandvars(), also "~user" home directory references
are recognized and handled on Windows.
2007-03-13 22:07:36 +00:00
Georg Brandl b6ae6aa8ac Patch #1429539: pdb now correctly initializes the __main__ module for
the debugged script, which means that imports from __main__ work
correctly now.
2007-03-13 21:58:44 +00:00
Georg Brandl bad6f1904b NEWS entry for getstatus() deprecation. 2007-03-13 21:32:56 +00:00
Georg Brandl 8044e5bbd4 Deprecate commands.getstatus(). 2007-03-13 21:32:01 +00:00
Georg Brandl 8e84c65660 Patch #1393667: pdb now has a "run" command which restarts the debugged
Python program, optionally with different arguments.
2007-03-13 21:08:15 +00:00
Thomas Heller c3a643192f Add versionadded marker for ctypes.c_bool. 2007-03-13 21:01:39 +00:00
Georg Brandl 5240d7416c Patch #1444529: the builtin compile() now accepts keyword arguments.
(backport)
2007-03-13 20:46:32 +00:00
Thomas Heller 5dc4fe09b7 Patch #1649190: Adding support for _Bool to ctypes as c_bool, by David Remahl. 2007-03-13 20:42:52 +00:00
Georg Brandl 8441f15626 Patch #1530482: add pydoc.render_doc() which returns the documentation
for a thing instead of paging it to stdout, which pydoc.doc() does.
2007-03-13 20:02:57 +00:00
Georg Brandl d9bef35e3c Patch #1533909: the timeit module now accepts callables in addition to
strings for the code to time and the setup code. Also added two
convenience functions for instantiating a Timer and calling its methods.
2007-03-13 19:32:21 +00:00
Georg Brandl 4168c0466f Fix a tab. 2007-03-13 19:18:18 +00:00
Georg Brandl dd5384d16c Acks for recent patches. 2007-03-13 19:00:36 +00:00