On PEP 322 (ireverse)

Alex Martelli aleax at aleax.it
Fri Oct 31 17:46:36 EST 2003


Aahz wrote:

> In article <4xQnb.373812$R32.12367046 at news2.tin.it>,
> Alex Martelli  <aleax at aleax.it> wrote:
>>
>>I still prefer Werner Schiendl's idea of iter.reversed, IF we find a
>>way to have builtin function iter grow a 'staticmethod' of sorts...!
> 
> Raymond has vetoed this, but I don't understand why iter() needs to grow
> a staticmethod.  After all, it's just a function that can be decorated
> with attributes....

built-in functions normally can't, and in that way they differ from
C-coded functions.  So, iter would have to be changed into a different
type that _does_ support some attributes.


Alex





More information about the Python-list mailing list