Seek support for new slice syntax PEP.
Rhodri James
rhodri at wildebst.demon.co.uk
Mon Dec 14 18:11:27 EST 2009
On Mon, 14 Dec 2009 18:40:38 -0000, Colin W. <cjwilliams43 at gmail.com>
wrote:
> 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
mailing list