<feed xmlns='http://www.w3.org/2005/Atom'>
<title>delta/cpython.git/Lib/bisect.py, branch v2.5b2</title>
<subtitle>
</subtitle>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/cpython.git/'/>
<entry>
<title>SF Patch #864863:  Bisect C implementation</title>
<updated>2004-01-05T10:13:35+00:00</updated>
<author>
<name>Raymond Hettinger</name>
<email>python@rcn.com</email>
</author>
<published>2004-01-05T10:13:35+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/cpython.git/commit/?id=1b1dc6529b97e659d5f9110889824a51bc52e709'/>
<id>1b1dc6529b97e659d5f9110889824a51bc52e709</id>
<content type='text'>
(Contributed by Dmitry Vasiliev.)
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
(Contributed by Dmitry Vasiliev.)
</pre>
</div>
</content>
</entry>
<entry>
<title>The first batch of changes recommended by the fixdiv tool.  These are</title>
<updated>2001-09-04T19:14:14+00:00</updated>
<author>
<name>Guido van Rossum</name>
<email>guido@python.org</email>
</author>
<published>2001-09-04T19:14:14+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/cpython.git/commit/?id=4672e65b7513d0e8e44534742542660300b20714'/>
<id>4672e65b7513d0e8e44534742542660300b20714</id>
<content type='text'>
mostly changes of / operators into //.  Once or twice I did more or
less than recommended.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
mostly changes of / operators into //.  Once or twice I did more or
less than recommended.
</pre>
</div>
</content>
</entry>
<entry>
<title>removed __all__ from several modules</title>
<updated>2001-02-18T03:30:53+00:00</updated>
<author>
<name>Skip Montanaro</name>
<email>skip@pobox.com</email>
</author>
<published>2001-02-18T03:30:53+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/cpython.git/commit/?id=09c1d1d3ff5871fc5a3a4dc92f2282b1c98fa840'/>
<id>09c1d1d3ff5871fc5a3a4dc92f2282b1c98fa840</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
<entry>
<title>added __all__ lists to a number of Python modules</title>
<updated>2001-01-20T19:54:20+00:00</updated>
<author>
<name>Skip Montanaro</name>
<email>skip@pobox.com</email>
</author>
<published>2001-01-20T19:54:20+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/cpython.git/commit/?id=f198fbe2cda31538803057349f53fe8032e017fa'/>
<id>f198fbe2cda31538803057349f53fe8032e017fa</id>
<content type='text'>
added test script and expected output file as well
this closes patch 103297.
__all__ attributes will be added to other modules without first submitting
a patch, just adding the necessary line to the test script to verify
more-or-less correct implementation.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
added test script and expected output file as well
this closes patch 103297.
__all__ attributes will be added to other modules without first submitting
a patch, just adding the necessary line to the test script to verify
more-or-less correct implementation.
</pre>
</div>
</content>
</entry>
<entry>
<title>Fred, THIS NEEDS DOCS!  The function docstrings tell the tale.</title>
<updated>2000-12-29T02:06:45+00:00</updated>
<author>
<name>Tim Peters</name>
<email>tim.peters@gmail.com</email>
</author>
<published>2000-12-29T02:06:45+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/cpython.git/commit/?id=ff8bc37df21150430ebfcec3ebfc47c747515432'/>
<id>ff8bc37df21150430ebfcec3ebfc47c747515432</id>
<content type='text'>
Christmas present to myself:  the bisect module didn't define what
happened if the new element was already in the list.  It so happens
that it inserted the new element "to the right" of all equal elements.
Since it wasn't defined, among other bad implications it was a mystery
how to use bisect to determine whether an element was already in the
list (I've seen code that *assumed* "to the right" without justification).
Added new methods bisect_left and insort_left that insert "to the left"
instead; made the old names bisect and insort aliases for the new names
bisect_right and insort_right; beefed up docstrings to explain what
these actually do; and added a std test for the bisect module.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Christmas present to myself:  the bisect module didn't define what
happened if the new element was already in the list.  It so happens
that it inserted the new element "to the right" of all equal elements.
Since it wasn't defined, among other bad implications it was a mystery
how to use bisect to determine whether an element was already in the
list (I've seen code that *assumed* "to the right" without justification).
Added new methods bisect_left and insort_left that insert "to the left"
instead; made the old names bisect and insort aliases for the new names
bisect_right and insort_right; beefed up docstrings to explain what
these actually do; and added a std test for the bisect module.
</pre>
</div>
</content>
</entry>
<entry>
<title>Mass patch by Ka-Ping Yee:</title>
<updated>2000-02-02T15:10:15+00:00</updated>
<author>
<name>Guido van Rossum</name>
<email>guido@python.org</email>
</author>
<published>2000-02-02T15:10:15+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/cpython.git/commit/?id=bb6cbc79d0f3d10e3544086e824af8e4abb2ab9a'/>
<id>bb6cbc79d0f3d10e3544086e824af8e4abb2ab9a</id>
<content type='text'>
    1. Comments at the beginning of the module, before
       functions, and before classes have been turned
       into docstrings.

    2. Tabs are normalized to four spaces.

Also, removed the "remove" function from dircmp.py, which reimplements
list.remove() (it must have been very old).
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
    1. Comments at the beginning of the module, before
       functions, and before classes have been turned
       into docstrings.

    2. Tabs are normalized to four spaces.

Also, removed the "remove" function from dircmp.py, which reimplements
list.remove() (it must have been very old).
</pre>
</div>
</content>
</entry>
<entry>
<title>A few lines were indented using spaces instead of tabs -- fix them.</title>
<updated>1998-03-26T20:56:10+00:00</updated>
<author>
<name>Guido van Rossum</name>
<email>guido@python.org</email>
</author>
<published>1998-03-26T20:56:10+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/cpython.git/commit/?id=e07745ec291c4fe62405986b12f6230fb9f30591'/>
<id>e07745ec291c4fe62405986b12f6230fb9f30591</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
<entry>
<title>Add optional arguments lo and hi to insort() and bisect(), to support</title>
<updated>1997-10-07T14:45:49+00:00</updated>
<author>
<name>Guido van Rossum</name>
<email>guido@python.org</email>
</author>
<published>1997-10-07T14:45:49+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/cpython.git/commit/?id=69d03c1880004a1c98fd7db8c9e6370961f95f48'/>
<id>69d03c1880004a1c98fd7db8c9e6370961f95f48</id>
<content type='text'>
using arrays containing leading or trailing garbage.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
using arrays containing leading or trailing garbage.
</pre>
</div>
</content>
</entry>
<entry>
<title>Added a _v21 def to FL.py and added two new input field types</title>
<updated>1992-09-02T20:43:20+00:00</updated>
<author>
<name>Guido van Rossum</name>
<email>guido@python.org</email>
</author>
<published>1992-09-02T20:43:20+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/cpython.git/commit/?id=82b410ba57697bc0d2d651d0593f4e26c9cc7289'/>
<id>82b410ba57697bc0d2d651d0593f4e26c9cc7289</id>
<content type='text'>
Added runcall(func, *args) interfaces to profile.py, bdb.py, pdb.py, wdb.py
Added new module bisect.py and used it in sched.py.
Mostly cosmetic changes to profile.py (changed output format).
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Added runcall(func, *args) interfaces to profile.py, bdb.py, pdb.py, wdb.py
Added new module bisect.py and used it in sched.py.
Mostly cosmetic changes to profile.py (changed output format).
</pre>
</div>
</content>
</entry>
</feed>
