[Python-checkins] r68560 - in python/trunk: Include/abstract.h Include/object.h Lib/test/crashers/iter.py Lib/test/test_iter.py Misc/NEWS Modules/itertoolsmodule.c Objects/abstract.c Objects/object.c Objects/typeobject.c
Nick Coghlan
ncoghlan at gmail.com
Tue Jan 13 13:19:35 CET 2009
amaury.forgeotdarc wrote:
> + if (descr == NULL) {
> + if (ptr == (void**)&type->tp_iternext) {
> + specific = _PyObject_NextNotImplemented;
> + }
> continue;
> + }
Hmm, that's a much cleaner approach than the strcmp based one currently
used to check for assignments to __hash__ and __new__ in
update_one_slot(). The other two slot special cases should probably be
updated as well.
Cheers,
Nick.
--
Nick Coghlan | ncoghlan at gmail.com | Brisbane, Australia
---------------------------------------------------------------
More information about the Python-checkins
mailing list