Pre-PEP: reverse iteration methods
Andrew Dalke
adalke at mindspring.com
Wed Sep 24 00:44:21 EDT 2003
Sean Ross:
> This will mostly just be some alternate naming suggestions:
>
> How about just ".backwards", where backwards acts like a read-only
property
> that returns a generator for reverse iteration?
-1 from me. 'backwards' looks to me like something which changes
the list ordering in place, like what 'reverse' does. Or something
which returns a new list but in reverse order. It's an adjective,
when it should be a verb.
ibackwords would work, but so would riter or reviter or
variations thereof.
Andrew
dalke at dalkescientific.com
More information about the Python-list
mailing list