[Python-checkins] python/dist/src/Misc NEWS,1.910,1.911
rhettinger at users.sourceforge.net
rhettinger at users.sourceforge.net
Sat Dec 13 06:26:13 EST 2003
- Previous message: [Python-checkins] python/dist/src/Include methodobject.h,2.26,2.27
- Next message: [Python-checkins] python/dist/src/Objects dictobject.c, 2.148,
2.149 listobject.c, 2.168, 2.169 methodobject.c, 2.47,
2.48 setobject.c, 1.14, 1.15 typeobject.c, 2.253, 2.254
- Messages sorted by:
[ date ]
[ thread ]
[ subject ]
[ author ]
Update of /cvsroot/python/python/dist/src/Misc
In directory sc8-pr-cvs1:/tmp/cvs-serv7484/Misc
Modified Files:
NEWS
Log Message:
* Added a new method flag, METH_COEXIST.
* Used the flag to optimize set.__contains__(), dict.__contains__(),
dict.__getitem__(), and list.__getitem__().
Index: NEWS
===================================================================
RCS file: /cvsroot/python/python/dist/src/Misc/NEWS,v
retrieving revision 1.910
retrieving revision 1.911
diff -C2 -d -r1.910 -r1.911
*** NEWS 6 Dec 2003 16:23:06 -0000 1.910
--- NEWS 13 Dec 2003 11:26:11 -0000 1.911
***************
*** 282,285 ****
--- 282,291 ----
-----
+ - Created a new method flag, METH_COEXIST, which causes a method to be loaded
+ even if already defined by a slot wrapper. This allows a __contains__
+ method, for example, to co-exist with a defined sq_contains slot. This
+ is helpful because the PyCFunction can take advantage of optimized calls
+ whenever METH_O or METH_NOARGS flags are defined.
+
- Added a new function, PyDict_Contains(d, k) which is like
PySequence_Contains() but is specific to dictionaries and executes
- Previous message: [Python-checkins] python/dist/src/Include methodobject.h,2.26,2.27
- Next message: [Python-checkins] python/dist/src/Objects dictobject.c, 2.148,
2.149 listobject.c, 2.168, 2.169 methodobject.c, 2.47,
2.48 setobject.c, 1.14, 1.15 typeobject.c, 2.253, 2.254
- Messages sorted by:
[ date ]
[ thread ]
[ subject ]
[ author ]
More information about the Python-checkins
mailing list