On PEP 322 (ireverse)
Aahz
aahz at pythoncraft.com
Sat Nov 1 10:34:38 EST 2003
In article <gDBob.75864$e5.2794967 at news1.tin.it>,
Alex Martelli <aleax at aleax.it> wrote:
>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.
Did you mean "Python-coded"? Anyway, I doubt that adding an attribute
to iter() would cause problems the way changing it to a type constructor
would. I'm not suggesting this, mind, just curious why nobody else
mentioned the possibility.
--
Aahz (aahz at pythoncraft.com) <*> http://www.pythoncraft.com/
"It is easier to optimize correct code than to correct optimized code."
--Bill Harlan
More information about the Python-list
mailing list