[Python-checkins] CVS: python/dist/src/Misc NEWS,1.163,1.164

Tim Peters tim_one@users.sourceforge.net
2001年5月10日 01:32:46 -0700


Update of /cvsroot/python/python/dist/src/Misc
In directory usw-pr-cvs1:/tmp/cvs-serv28217/python/dist/src/Misc
Modified Files:
	NEWS 
Log Message:
SF bug #422121 Insecurities in dict comparison.
Fixed a half dozen ways in which general dict comparison could crash
Python (even cause Win98SE to reboot) in the presence of kay and/or
value comparison routines that mutate the dict during dict comparison.
Bugfix candidate.
Index: NEWS
===================================================================
RCS file: /cvsroot/python/python/dist/src/Misc/NEWS,v
retrieving revision 1.163
retrieving revision 1.164
diff -C2 -r1.163 -r1.164
*** NEWS	2001年05月08日 15:43:37	1.163
--- NEWS	2001年05月10日 08:32:44	1.164
***************
*** 48,51 ****
--- 48,56 ----
 if the keys and values don't support comparisons other than ==.
 
+ - Comparing dictionaries in ways other than == and != is slower: there were
+ insecurities in the dict comparison implementation that could cause Python
+ to crash if the element comparison routines for the dict keys and/or
+ values mutated the dicts. Making the code bulletproof slowed it down.
+ 
 
 What's New in Python 2.1 (final)?

AltStyle によって変換されたページ (->オリジナル) /