For simple indices it does the iteration manually, and for extended slices it returns an itertools.islice object.
As a trivial example, here's how to skip the head of a zero-numbered list:
for i, item in enumerate("ABCDEF")[1:]: print i, item
Is this idea a non-starter, or should I spend my holiday on Wednesday finishing it off and writing the documentation and tests for it?
Regards, Nick.
-- Nick Coghlan | [EMAIL PROTECTED] | Brisbane, Australia --------------------------------------------------------------- http://boredomandlaziness.skystorm.net _______________________________________________ Python-Dev mailing list Python-Dev@python.org http://mail.python.org/mailman/listinfo/python-dev Unsubscribe: http://mail.python.org/mailman/options/python-dev/archive%40mail-archive.com