[Python-checkins] r73850 - in python/branches/py3k: Lib/test/test_array.py Modules/arraymodule.c

Alexandre Vassalotti alexandre at peadrop.com
Sun Jul 5 23:24:07 CEST 2009


On Sun, Jul 5, 2009 at 4:37 PM, Nick Coghlan<ncoghlan at gmail.com> wrote:
> Keeping the implementation of the sequence protocol also triggers things
> like support for the default sequence iterator in iter() and
> operator.isSequence() returning True.
>

However, operator.isSequence was removed in 3.x and array has its own
custom iterator. In addition, nulling out sq_items and sq_ass_item
doesn't trigger any test to fail. So, it looks like we have an
opportunity to delete a few lines of code from the array module.


More information about the Python-checkins mailing list