[Python-checkins] python/dist/src/Misc NEWS,1.897,1.898

rhettinger at users.sourceforge.net rhettinger at users.sourceforge.net
Tue Nov 25 16:12:16 EST 2003


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

Modified Files:
	NEWS 
Log Message:
Expose dict_contains() and PyDict_Contains() with is about 10% faster
than PySequence_Contains() and more clearly applicable to dicts.

Apply the new function in setobject.c where __contains__ checking is
ubiquitous.



Index: NEWS
===================================================================
RCS file: /cvsroot/python/python/dist/src/Misc/NEWS,v
retrieving revision 1.897
retrieving revision 1.898
diff -C2 -d -r1.897 -r1.898
*** NEWS	22 Nov 2003 23:55:50 -0000	1.897
--- NEWS	25 Nov 2003 21:12:14 -0000	1.898
***************
*** 232,235 ****
--- 232,239 ----
  -----
  
+ - Added a new function, PyDict_Contains(d, k) which is like
+   PySequence_Contains() but is specific to dictionaries and executes
+   about 10% faster.
+ 
  - Added three new macros: Py_RETURN_NONE, Py_RETURN_TRUE, and Py_RETURN_FALSE.
    Each return the singleton they mention after Py_INCREF()ing them.





More information about the Python-checkins mailing list