<feed xmlns='http://www.w3.org/2005/Atom'>
<title>python.git/Lib/test/test_bisect.py, branch v3.0a2</title>
<subtitle>Python interpreter</subtitle>
<id>http://dangofactory.net/cgit/cgit.cgi/Server/python.git/atom/Lib/test/test_bisect.py?h=v3.0a2</id>
<link rel='self' href='http://dangofactory.net/cgit/cgit.cgi/Server/python.git/atom/Lib/test/test_bisect.py?h=v3.0a2'/>
<link rel='alternate' type='text/html' href='http://dangofactory.net/cgit/cgit.cgi/Server/python.git/'/>
<updated>2007-07-03T08:25:58Z</updated>
<entry>
<title>Merged revisions 56125-56153 via svnmerge from</title>
<updated>2007-07-03T08:25:58Z</updated>
<author>
<name>Guido van Rossum</name>
<email>guido@python.org</email>
</author>
<published>2007-07-03T08:25:58Z</published>
<link rel='alternate' type='text/html' href='http://dangofactory.net/cgit/cgit.cgi/Server/python.git/commit/?id=c1f779cb015272412e4da2e5cb61b4e8cdcbf191'/>
<id>urn:sha1:c1f779cb015272412e4da2e5cb61b4e8cdcbf191</id>
<content type='text'>
svn+ssh://pythondev@svn.python.org/python/branches/p3yk

........
  r56127 | georg.brandl | 2007-06-30 09:32:49 +0200 (Sat, 30 Jun 2007) | 2 lines

  Fix a place where floor division would be in order.
........
  r56135 | guido.van.rossum | 2007-07-01 06:13:54 +0200 (Sun, 01 Jul 2007) | 28 lines

  Make map() and filter() identical to itertools.imap() and .ifilter(),
  respectively.

  I fixed two bootstrap issues, due to the dynamic import of itertools:

  1. Starting python requires that map() and filter() are not used until
     site.py has added build/lib.&lt;arch&gt; to sys.path.
  2. Building python requires that setup.py and distutils and everything
     they use is free of map() and filter() calls.

  Beyond this, I only fixed the tests in test_builtin.py.
  Others, please help fixing the remaining tests that are now broken!
  The fixes are usually simple:
  a. map(None, X) -&gt; list(X)
  b. map(F, X) -&gt; list(map(F, X))
  c. map(lambda x: F(x), X) -&gt; [F(x) for x in X]
  d. filter(F, X) -&gt; list(filter(F, X))
  e. filter(lambda x: P(x), X) -&gt; [x for x in X if P(x)]

  Someone, please also contribute a fixer for 2to3 to do this.
  It can leave map()/filter() calls alone that are already
  inside a list() or sorted() call or for-loop.

  Only in rare cases have I seen code that depends on map() of lists
  of different lengths going to the end of the longest, or on filter()
  of a string or tuple returning an object of the same type; these
  will need more thought to fix.
........
  r56136 | guido.van.rossum | 2007-07-01 06:22:01 +0200 (Sun, 01 Jul 2007) | 3 lines

  Make it so that test_decimal fails instead of hangs, to help automated
  test runners.
........
  r56139 | georg.brandl | 2007-07-01 18:20:58 +0200 (Sun, 01 Jul 2007) | 2 lines

  Fix a few test cases after the map-&gt;imap change.
........
  r56142 | neal.norwitz | 2007-07-02 06:38:12 +0200 (Mon, 02 Jul 2007) | 1 line

  Get a bunch more tests passing after converting map/filter to return iterators.
........
  r56147 | guido.van.rossum | 2007-07-02 15:32:02 +0200 (Mon, 02 Jul 2007) | 4 lines

  Fix the remaining failing unit tests (at least on OSX).
  Also tweaked urllib2 so it doesn't raise socket.gaierror when
  all network interfaces are turned off.
........
</content>
</entry>
<entry>
<title>Merged revisions 55007-55179 via svnmerge from</title>
<updated>2007-05-07T22:24:25Z</updated>
<author>
<name>Guido van Rossum</name>
<email>guido@python.org</email>
</author>
<published>2007-05-07T22:24:25Z</published>
<link rel='alternate' type='text/html' href='http://dangofactory.net/cgit/cgit.cgi/Server/python.git/commit/?id=805365ee39298f93e433e19ae0dd87c6f782145b'/>
<id>urn:sha1:805365ee39298f93e433e19ae0dd87c6f782145b</id>
<content type='text'>
svn+ssh://pythondev@svn.python.org/python/branches/p3yk

........
  r55077 | guido.van.rossum | 2007-05-02 11:54:37 -0700 (Wed, 02 May 2007) | 2 lines

  Use the new print syntax, at least.
........
  r55142 | fred.drake | 2007-05-04 21:27:30 -0700 (Fri, 04 May 2007) | 1 line

  remove old cruftiness
........
  r55143 | fred.drake | 2007-05-04 21:52:16 -0700 (Fri, 04 May 2007) | 1 line

  make this work with the new Python
........
  r55162 | neal.norwitz | 2007-05-06 22:29:18 -0700 (Sun, 06 May 2007) | 1 line

  Get asdl code gen working with Python 2.3.  Should continue to work with 3.0
........
  r55164 | neal.norwitz | 2007-05-07 00:00:38 -0700 (Mon, 07 May 2007) | 1 line

  Verify checkins to p3yk (sic) branch go to 3000 list.
........
  r55166 | neal.norwitz | 2007-05-07 00:12:35 -0700 (Mon, 07 May 2007) | 1 line

  Fix this test so it runs again by importing warnings_test properly.
........
  r55167 | neal.norwitz | 2007-05-07 01:03:22 -0700 (Mon, 07 May 2007) | 8 lines

  So long xrange.  range() now supports values that are outside
  -sys.maxint to sys.maxint.  floats raise a TypeError.

  This has been sitting for a long time.  It probably has some problems and
  needs cleanup.  Objects/rangeobject.c now uses 4-space indents since
  it is almost completely new.
........
  r55171 | guido.van.rossum | 2007-05-07 10:21:26 -0700 (Mon, 07 May 2007) | 4 lines

  Fix two tests that were previously depending on significant spaces
  at the end of a line (and before that on Python 2.x print behavior
  that has no exact equivalent in 3.0).
........
</content>
</entry>
<entry>
<title>Fix most trivially-findable print statements.</title>
<updated>2007-02-09T05:37:30Z</updated>
<author>
<name>Guido van Rossum</name>
<email>guido@python.org</email>
</author>
<published>2007-02-09T05:37:30Z</published>
<link rel='alternate' type='text/html' href='http://dangofactory.net/cgit/cgit.cgi/Server/python.git/commit/?id=be19ed77ddb047e02fe94d142181062af6d99dcc'/>
<id>urn:sha1:be19ed77ddb047e02fe94d142181062af6d99dcc</id>
<content type='text'>
There's one major and one minor category still unfixed:
doctests are the major category (and I hope to be able to augment the
refactoring tool to refactor bona fide doctests soon);
other code generating print statements in strings is the minor category.

(Oh, and I don't know if the compiler package works.)
</content>
</entry>
<entry>
<title>Restructure comparison dramatically.  There is no longer a default</title>
<updated>2006-08-24T00:41:19Z</updated>
<author>
<name>Guido van Rossum</name>
<email>guido@python.org</email>
</author>
<published>2006-08-24T00:41:19Z</published>
<link rel='alternate' type='text/html' href='http://dangofactory.net/cgit/cgit.cgi/Server/python.git/commit/?id=47b9ff6ba11fab4c90556357c437cb4feec1e853'/>
<id>urn:sha1:47b9ff6ba11fab4c90556357c437cb4feec1e853</id>
<content type='text'>
*ordering* between objects; there is only a default equality test
(defined by an object being equal to itself only).  Read the comment
in object.c.  The current implementation never uses a three-way
comparison to compute a rich comparison, but it does use a rich
comparison to compute a three-way comparison.  I'm not quite done
ripping out all the calls to PyObject_Compare/Cmp, or replacing
tp_compare implementations with tp_richcompare implementations;
but much of that has happened (to make most unit tests pass).

The following tests still fail, because I need help deciding
or understanding:

test_codeop -- depends on comparing code objects
test_datetime -- need Tim Peters' opinion
test_marshal -- depends on comparing code objects
test_mutants -- need help understanding it

The problem with test_codeop and test_marshal is this: these tests
compare two different code objects and expect them to be equal.
Is that still a feature we'd like to support?  I've temporarily
removed the comparison and hash code from code objects, so they
use the default (equality by pointer only) comparison.

For the other two tests, run them to see for yourself.
(There may be more failing test with "-u all".)

A general problem with getting lots of these tests to pass is
the reality that for object types that have a natural total ordering,
implementing __cmp__ is much more convenient than implementing
__eq__, __ne__, __lt__, and so on.  Should we go back to allowing
__cmp__ to provide a total ordering?  Should we provide some other
way to implement rich comparison with a single method override?
Alex proposed a __key__() method; I've considered a __richcmp__()
method.  Or perhaps __cmp__() just shouldn't be killed off...
</content>
</entry>
<entry>
<title>Fix test_bisect in the same way as test_itertools: iter() blows up a lot</title>
<updated>2006-04-15T09:12:14Z</updated>
<author>
<name>Thomas Wouters</name>
<email>thomas@python.org</email>
</author>
<published>2006-04-15T09:12:14Z</published>
<link rel='alternate' type='text/html' href='http://dangofactory.net/cgit/cgit.cgi/Server/python.git/commit/?id=1ae9afa829ff0b6372b9fd70365653ab6c565b3a'/>
<id>urn:sha1:1ae9afa829ff0b6372b9fd70365653ab6c565b3a</id>
<content type='text'>
sooner for new-style broken-iterators, expect it to.
</content>
</entry>
<entry>
<title>SF #1313496:  bisect C replacement doesn't accept named args</title>
<updated>2005-10-05T11:39:12Z</updated>
<author>
<name>Raymond Hettinger</name>
<email>python@rcn.com</email>
</author>
<published>2005-10-05T11:39:12Z</published>
<link rel='alternate' type='text/html' href='http://dangofactory.net/cgit/cgit.cgi/Server/python.git/commit/?id=cc9a951f35c99f21b76c39e8c202cb467a412038'/>
<id>urn:sha1:cc9a951f35c99f21b76c39e8c202cb467a412038</id>
<content type='text'>
</content>
</entry>
<entry>
<title>Rename test for comparision errors.</title>
<updated>2004-09-27T23:11:35Z</updated>
<author>
<name>Raymond Hettinger</name>
<email>python@rcn.com</email>
</author>
<published>2004-09-27T23:11:35Z</published>
<link rel='alternate' type='text/html' href='http://dangofactory.net/cgit/cgit.cgi/Server/python.git/commit/?id=630e5355b5cf25cc5a3b1a939d409fddfef59c8a'/>
<id>urn:sha1:630e5355b5cf25cc5a3b1a939d409fddfef59c8a</id>
<content type='text'>
</content>
</entry>
<entry>
<title>Beef-up tests for greater coverage and refcount checking.</title>
<updated>2004-09-27T22:48:40Z</updated>
<author>
<name>Raymond Hettinger</name>
<email>python@rcn.com</email>
</author>
<published>2004-09-27T22:48:40Z</published>
<link rel='alternate' type='text/html' href='http://dangofactory.net/cgit/cgit.cgi/Server/python.git/commit/?id=63251781d12e9adca741fc9296171b8f480be20e'/>
<id>urn:sha1:63251781d12e9adca741fc9296171b8f480be20e</id>
<content type='text'>
</content>
</entry>
<entry>
<title>* Move collections.deque() in from the sandbox</title>
<updated>2004-01-29T06:37:52Z</updated>
<author>
<name>Raymond Hettinger</name>
<email>python@rcn.com</email>
</author>
<published>2004-01-29T06:37:52Z</published>
<link rel='alternate' type='text/html' href='http://dangofactory.net/cgit/cgit.cgi/Server/python.git/commit/?id=756b3f3c15bd314ffa25299ca25465ae21e62a30'/>
<id>urn:sha1:756b3f3c15bd314ffa25299ca25465ae21e62a30</id>
<content type='text'>
* Add unittests, newsitem, and whatsnew
* Apply to Queue.py mutex.py threading.py pydoc.py and shlex.py
* Docs are forthcoming
</content>
</entry>
<entry>
<title>SF Patch #864863:  Bisect C implementation</title>
<updated>2004-01-05T10:13:35Z</updated>
<author>
<name>Raymond Hettinger</name>
<email>python@rcn.com</email>
</author>
<published>2004-01-05T10:13:35Z</published>
<link rel='alternate' type='text/html' href='http://dangofactory.net/cgit/cgit.cgi/Server/python.git/commit/?id=0c4102760c440af3e7b575b0fd27fe25549641a2'/>
<id>urn:sha1:0c4102760c440af3e7b575b0fd27fe25549641a2</id>
<content type='text'>
(Contributed by Dmitry Vasiliev.)
</content>
</entry>
</feed>
