Status of PEP's?
Aahz Maruch
aahz at panix.com
Tue Mar 5 09:56:42 EST 2002
In article <3C844811.AEC974E3 at cosc.canterbury.ac.nz>,
Greg Ewing <greg at cosc.canterbury.ac.nz> wrote:
>
>To me, the __iter__ protocol is intended to be used when an object can
>reasonably be thought of as a sequence. That's actually *being* a
>sequence, not just "associated" with a sequence in some way.
>
>Using the __iter__ protocol in the way suggested by this PEP is abusing
>it, in my opinion.
Yes, particularly when I repeat myself and use this example:
if i in 5:
<shudder>
--
--- Aahz <*> (Copyright 2002 by aahz at pobox.com)
Hugs and backrubs -- I break Rule 6 http://www.rahul.net/aahz/
Androgynous poly kinky vanilla queer het Pythonista
"How come we choose from just two people for President but more than 50
for Miss America?" --AEN
More information about the Python-list
mailing list