summaryrefslogtreecommitdiffstats
path: root/Lib/bisect.py
Commit message (Collapse)AuthorAgeFilesLines
* SF Patch #864863: Bisect C implementationRaymond Hettinger2004-01-051-0/+6
| | | | (Contributed by Dmitry Vasiliev.)
* The first batch of changes recommended by the fixdiv tool. These areGuido van Rossum2001-09-041-4/+4
| | | | | mostly changes of / operators into //. Once or twice I did more or less than recommended.
* removed __all__ from several modulesSkip Montanaro2001-02-181-2/+0
|
* added __all__ lists to a number of Python modulesSkip Montanaro2001-01-201-0/+1
| | | | | | | | 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.
* Fred, THIS NEEDS DOCS! The function docstrings tell the tale.Tim Peters2000-12-291-4/+60
| | | | | | | | | | | | | 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.
* Mass patch by Ka-Ping Yee:Guido van Rossum2000-02-021-19/+17
| | | | | | | | | | | 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).
* A few lines were indented using spaces instead of tabs -- fix them.Guido van Rossum1998-03-261-2/+2
|
* Add optional arguments lo and hi to insort() and bisect(), to supportGuido van Rossum1997-10-071-4/+6
| | | | using arrays containing leading or trailing garbage.
* Added a _v21 def to FL.py and added two new input field typesGuido van Rossum1992-09-021-0/+23
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).