[Python-checkins] python/dist/src/Lib bisect.py,1.8,1.9

rhettinger at users.sourceforge.net rhettinger at users.sourceforge.net
Mon Jan 5 05:13:36 EST 2004


Update of /cvsroot/python/python/dist/src/Lib
In directory sc8-pr-cvs1:/tmp/cvs-serv14923/Lib

Modified Files:
	bisect.py 
Log Message:
SF Patch #864863:  Bisect C implementation
(Contributed by Dmitry Vasiliev.)



Index: bisect.py
===================================================================
RCS file: /cvsroot/python/python/dist/src/Lib/bisect.py,v
retrieving revision 1.8
retrieving revision 1.9
diff -C2 -d -r1.8 -r1.9
*** bisect.py	4 Sep 2001 19:14:13 -0000	1.8
--- bisect.py	5 Jan 2004 10:13:34 -0000	1.9
***************
*** 77,78 ****
--- 77,84 ----
          else: hi = mid
      return lo
+ 
+ # Overwrite above definitions with a fast C implementation
+ try:
+     from _bisect import bisect_right, bisect_left, insort_left, insort_right, insort, bisect
+ except ImportError:
+     pass





More information about the Python-checkins mailing list