Commit Graph

4195 Commits

Author SHA1 Message Date
Gregory P. Smith 07aec08a01 reapply of r57378 to fix bug 1725856 2007-08-24 05:32:10 +00:00
Guido van Rossum 28bbe4252e math.floor(<int>) now returns the argument,
so the overflow test no longer matters.
2007-08-24 03:46:30 +00:00
Guido van Rossum 10ab4aeb86 Patch by Keir Mierle so that sets can be compared to other objects that know
how to compare themselves to sets.  (Prep work for making dict views more
set-like.)
2007-08-23 23:57:24 +00:00
Guido van Rossum 13e05de9ef Fix math.ceil() and math.floor() to fall back to __ceil__ and __floor__
methods (respectively).  With Keir Mierle.
2007-08-23 22:56:55 +00:00
Guido van Rossum 2fa33db12b Finish the work on __round__ and __trunc__.
With Alex Martelli and Keir Mierle.
2007-08-23 22:07:24 +00:00
Alex Martelli ae211f9abf Implement the round functionality for PEP 3141, and add tests for it. 2007-08-22 23:21:33 +00:00
Alex Martelli 86d8b3497f Implement the trunc builtin for PEP 3141 2007-08-22 22:39:42 +00:00
Guido van Rossum 23cfc9845c Convert sunaudio.py to bytes. (It has no unit test of its own!)
Fix test_ossaudiodev by closing the dsp properly (it can't be opened
multiple times on my box).
2007-08-21 22:49:52 +00:00
Lars Gustäbel 3741effcf8 Fall back to 'ascii' encoding if sys.getfilesystemencoding() returns
None. Remove encoding and errors argument from pax create methods in
TarInfo, pax always uses UTF-8.
Adapt the documentation and tests to the new string/unicode concept.
2007-08-21 12:17:05 +00:00
Guido van Rossum 4566c71e0e Fix fallout from making __private variables in threading.py _protected.
(Maybe we need to pick less obvious names for some of those?)
2007-08-21 03:36:47 +00:00
Guido van Rossum c1e315d2b0 Rename __whatever variables defined by ABCMeta to _abc_whatever, so as
to simplify legitimate use of these.
2007-08-20 19:29:24 +00:00
Guido van Rossum 61e21b52f1 Merged revisions 57152-57220 via svnmerge from
svn+ssh://pythondev@svn.python.org/python/trunk

........
  r57155 | brett.cannon | 2007-08-17 11:51:57 -0700 (Fri, 17 Aug 2007) | 2 lines

  Clarify the comment about setting the PYTHON variable for the Doc Makefile.
........
  r57156 | brett.cannon | 2007-08-17 11:59:58 -0700 (Fri, 17 Aug 2007) | 3 lines

  Remove news entry for test.test_support.guard_warnings_filter as it has been
  removed.
........
  r57158 | facundo.batista | 2007-08-17 12:16:44 -0700 (Fri, 17 Aug 2007) | 9 lines


  Added a flag (_send_traceback_header) to the SimpleXMLRPCServer class
  that allows sending back exception/stack trace information about
  internal server errors (this flag defaults to False to avoid sending
  such information unless explicitly enabled).  Added tests to verify
  behavior of this new feature (these tests are skipped on win32 because
  of problems with WSAEWOULDBLOCK). Renamed HTTPTestCase to
  SimpleServerTestCase. [GSoC - Alan McIntyre]
........
  r57160 | brett.cannon | 2007-08-17 13:16:15 -0700 (Fri, 17 Aug 2007) | 2 lines

  Make test_warnings re-entrant.
........
  r57175 | georg.brandl | 2007-08-17 23:05:56 -0700 (Fri, 17 Aug 2007) | 2 lines

  Fix PDB command descriptions.
........
  r57182 | brett.cannon | 2007-08-18 11:30:36 -0700 (Sat, 18 Aug 2007) | 3 lines

  Remove Mikael as the maintainer of BeOS at his request.  With no maintainer
  should the port be deprecated in 2.6?
........
  r57199 | georg.brandl | 2007-08-19 11:43:50 -0700 (Sun, 19 Aug 2007) | 2 lines

  Fix stray backticks.
........
  r57211 | hyeshik.chang | 2007-08-19 23:49:18 -0700 (Sun, 19 Aug 2007) | 2 lines

  Add cheot-ga-keut composed make-up sequence support in EUC-KR codec.
........
  r57216 | guido.van.rossum | 2007-08-20 08:18:04 -0700 (Mon, 20 Aug 2007) | 4 lines

  Add a hack (originally devised in a slightly different form by Thomas Wouters)
  to prevent spurious tracebacks when a daemon thread's cleanup happens to wake
  up when the world around it has already been destroyed.
........
2007-08-20 19:06:03 +00:00
Neal Norwitz faa54a3929 Code review of the new buffer protocol. Mostly add questions that should
be answered with the comments removed.

There are many places that require checks when doing arithmetic for memory
sizes when allocating memory.  Otherwise, overflow is possible with
a subsequent crash.

Fix SF #1777057 which was a result of not initializing the new BufferError
properly.  Had to update the test for exceptions for BufferError too.
2007-08-19 04:23:20 +00:00
Guido van Rossum 1836358c01 Fix an unfinished though in my own test code.
(testNewlinesInput and testNewlinesOutput are mine, not Tony's.)
2007-08-18 22:05:58 +00:00
Guido van Rossum 8358db22fa New I/O code from Tony Lownds implement newline feature correctly,
and implements .newlines attribute in a 2.x-compatible fashion.
2007-08-18 21:39:55 +00:00
Guido van Rossum 3de862df45 Make the cleanup between -R passes deal better with ABC registries,
*restoring* selected registries instead of *resetting* them all.  Also
change the default for the huntrleaks parameter to None everywhere, as
its other value is a list of three elements, so it is not a bool.
2007-08-18 00:10:33 +00:00
Guido van Rossum 2673de5741 Allow -R4:3 instead of -R4:3: -- I never use the 3rd arg. 2007-08-17 22:58:14 +00:00
Guido van Rossum 4e7eba7cfa Change the usage() function. Don't print the entire multi-page
docstring when there's a command line syntax error.
2007-08-17 18:39:15 +00:00
Skip Montanaro eb33e5ae79 Remove support for BeOS 2007-08-17 12:57:41 +00:00
Neal Norwitz 5ef262c35f Simplify expression 2007-08-17 04:15:19 +00:00
Guido van Rossum 540d987d34 Fix the IPv6 pton/ntop tests. Why weren't these failing on Linux? No IPv6? 2007-08-17 03:51:09 +00:00
Neal Norwitz 62e3a9aed5 Remove output file for test that was already removed 2007-08-17 03:08:12 +00:00
Skip Montanaro 289bc05709 some RiscOS stuff I missed before (was only looking for "RISCOS") 2007-08-17 02:30:27 +00:00
Guido van Rossum af554a0e17 First merge from the trunk straight into the py3k branch. I'm not
using the message generated by svnmerge, because it contains a lot of
stuff about the Doc tree, which I'm not merging this time due to the
way the Doc tree was initially added.  I am however adding roman.py
which was added later to Doc/tools.  I'll try to diff the two Doc
trees separately to see if there's stuff I missed.
2007-08-16 23:48:43 +00:00
Walter Dörwald 41980caf64 Apply SF patch #1775604: This adds three new codecs (utf-32, utf-32-le and
ut-32-be). On narrow builds the codecs combine surrogate pairs in the unicode
object into one codepoint on encoding and create surrogate pairs for
codepoints outside the BMP on decoding. Lone surrogates are passed through
unchanged in all cases.

Backport to the trunk will follow.
2007-08-16 21:55:45 +00:00
Skip Montanaro 7a98be2efb Remove RISCOS support 2007-08-16 14:35:24 +00:00
Martin v. Löwis 47383403a0 Implement PEP 3131. Add isidentifier to str. 2007-08-15 07:32:56 +00:00
Guido van Rossum 32c4ac0143 Down with str8!
Change various socket APIs to use bytes or str instead str8.
2007-08-15 03:56:40 +00:00
Martin v. Löwis ff398c6f95 Format bools properly in %d. 2007-08-14 21:57:32 +00:00
Collin Winter 3eed765223 Bug #1772489: make dir() work on traceback objects again. 2007-08-14 17:53:54 +00:00
Jeremy Hylton 3a38c91342 Remove Python 1.5 compatibility layer from httplib.
The two clients in the std library have been updated to use the newer
interface.  A couple of minor changes to the httplib tests were
needed.

Also, reformat some long lines in the httplib tests.
2007-08-14 17:08:07 +00:00
Jeremy Hylton 5d8a88a442 Change xmlrpclib to use the newer httplib interface.
Note that it's hard to test xmlrpclib, because the server it attempts
to connect to doesn't seem to support the expected interfaces.  Many
of the links via xmlrpc.com are dead, so I couldn't find another
server to use for tests.
2007-08-14 16:47:39 +00:00
Guido van Rossum 956e359579 The dbm module should use bytes for keys. This makes test_shelve pass. 2007-08-14 15:42:45 +00:00
Martin v. Löwis 5bcf109c73 Fix test_gdbm. 2007-08-14 09:24:24 +00:00
Martin v. Löwis 967f1e3b85 Remove string.{letters,lowercase,uppercase}. 2007-08-14 09:23:10 +00:00
Hye-Shik Chang caf871ad32 Fix a failing test on FreeBSD: ttys are seekable in FreeBSD, too. 2007-08-13 13:21:33 +00:00
Hye-Shik Chang 49d90bc9ef Fix a test failure on non-UTF-8 locales: bad_coding2.py is encoded
in utf-8.
2007-08-13 13:11:39 +00:00
Neal Norwitz 9b2a26989d Get pystone working with lazy map. 2007-08-12 07:02:50 +00:00
Neal Norwitz 801c89be5d Add -s/--start option that makes it easier to run the tests in batches
when one test fails and you want to start running from that point onwards.
2007-08-12 01:31:40 +00:00
Neal Norwitz 016880229a Kill execfile(), use exec() instead 2007-08-12 00:43:29 +00:00
Neal Norwitz bb217d9ed8 Make sure to flush output when writing dots during -R runs 2007-08-12 00:00:44 +00:00
Neal Norwitz f7f28fc46b Fix problem when exec'ing a string with a coding 2007-08-11 21:31:25 +00:00
Neal Norwitz 03fc7799b0 Remove unnecessary import 2007-08-11 19:27:13 +00:00
Martin v. Löwis 79c320898d Change shelve to require a bytes-oriented dict as
the underlying storage, and yet provide string keys.
2007-08-11 06:57:14 +00:00
Neal Norwitz 8dfc4a9bac Remove support for __members__ and __methods__. There still might be
some cleanup to do on this.  Particularly in Python/traceback.c with
getting rid of the getattr if possible and Demo/*metaclasses/Enum.py.
2007-08-11 06:39:53 +00:00
Martin v. Löwis 32ca442b13 Fix test_bsddb3. 2007-08-11 06:13:20 +00:00
Guido van Rossum efdca3e071 Use an event variable to wait for the server to be ready, rather than sleep(0.1). 2007-08-10 21:28:41 +00:00
Jeremy Hylton e6b59c5550 Make sure the mock object passed to finish_request() is buffered. 2007-08-10 19:13:33 +00:00
Martin v. Löwis cccc58d993 Fix dbshelve and much of dbtables. 2007-08-10 08:36:56 +00:00
Guido van Rossum c76a250f3e Merged revisions 56782-56847 via svnmerge from
svn+ssh://pythondev@svn.python.org/python/branches/p3yk

................
  r56808 | kurt.kaiser | 2007-08-07 14:15:45 -0700 (Tue, 07 Aug 2007) | 2 lines

  Replace sys.exitfunc call with atexit call
................
  r56835 | thomas.wouters | 2007-08-08 09:20:30 -0700 (Wed, 08 Aug 2007) | 8 lines


  Tests for dict comprehensions I forgot to 'svn add' when committing the
  actual feature.

  I was _sure_ I had checked in these new tests already, but I guess the
  checkin failed and I didn't notice.
................
  r56847 | guido.van.rossum | 2007-08-09 07:03:34 -0700 (Thu, 09 Aug 2007) | 30 lines

  Merged revisions 56760-56846 via svnmerge from
  svn+ssh://pythondev@svn.python.org/python/trunk

  ........
    r56762 | georg.brandl | 2007-08-06 00:37:58 -0700 (Mon, 06 Aug 2007) | 2 lines

    Place #ifdef Py_USING_UNICODE around decode_unicode().
  ........
    r56763 | georg.brandl | 2007-08-06 00:39:09 -0700 (Mon, 06 Aug 2007) | 2 lines

    Replace unnecessary function call.
  ........
    r56764 | georg.brandl | 2007-08-06 00:52:20 -0700 (Mon, 06 Aug 2007) | 2 lines

    Patch #1765839: add link to https+proxy urllib2 opener.
  ........
    r56797 | georg.brandl | 2007-08-07 00:13:24 -0700 (Tue, 07 Aug 2007) | 2 lines

    Bug #1769002: fix a now-wrong sentence in the tutorial.
  ........
    r56830 | georg.brandl | 2007-08-08 06:03:41 -0700 (Wed, 08 Aug 2007) | 3 lines

    Revert the fix for #1548891, it broke backwards compatibility with arbitrary read buffers.
    Fixes #1730114.
  ........
    r56833 | georg.brandl | 2007-08-08 06:50:02 -0700 (Wed, 08 Aug 2007) | 2 lines

    Fix compilation warning.
  ........
................
2007-08-09 14:26:58 +00:00