[Python-checkins] python/dist/src/Misc NEWS, 1.1193.2.70, 1.1193.2.71

rhettinger@users.sourceforge.net rhettinger at users.sourceforge.net
Sat Aug 13 01:48:00 CEST 2005


Update of /cvsroot/python/python/dist/src/Misc
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv8678/Misc

Modified Files:
      Tag: release24-maint
	NEWS 
Log Message:
* SF bug #1257731:  Fix logic in set.__contains__(), set.remove(),
  and set.discard for handling keys that both inherite from set and
  define their own __hash__() function.

* Fixed O(n) performance issue with set.pop() which should have been
  an O(1) process.



Index: NEWS
===================================================================
RCS file: /cvsroot/python/python/dist/src/Misc/NEWS,v
retrieving revision 1.1193.2.70
retrieving revision 1.1193.2.71
diff -u -d -r1.1193.2.70 -r1.1193.2.71
--- NEWS	7 Aug 2005 21:08:54 -0000	1.1193.2.70
+++ NEWS	12 Aug 2005 23:47:50 -0000	1.1193.2.71
@@ -12,6 +12,11 @@
 Core and builtins
 -----------------
 
+- SF bug #1257731:  set.discard() and set.remove() did not correctly
+  handle keys that both inherited from set and defined their own
+  __hash__() function.  Also, changed set.__contains__() to have
+  identical logic.
+
 - SF bug #1238681:  freed pointer is used in longobject.c:long_pow().
 
 - SF bug #1185883:  Python's small-object memory allocator took over



More information about the Python-checkins mailing list