Seek support for new slice syntax PEP.
rhodri at wildebst.demon.co.uk
Tue Dec 15 00:11:27 CET 2009
On Mon, 14 Dec 2009 18:40:38 -0000, Colin W. <cjwilliams43 at gmail.com>
> If your scheme flies, would it be practicable to use the same syntax
> as a range generator?
> range(i, j, k) => i:j:k
> so range(10, 2) => :10:2
> i.e. we could write for i in :10:2:
> or the more common:
> range(10) => :10
Ugh. Magic characters. Let's not.
Rhodri James *-* Wildebeest Herder to the Masses
More information about the Python-list