syntax enhancement

Calvin Spealman ironfroggy at gmail.com
Tue Oct 4 12:17:13 EDT 2011


On Tue, Oct 4, 2011 at 9:50 AM, Valiev Sergey <svaliev at gmail.com> wrote:

> Hi,
> you may found this idea stupid, but nevertheless...
> - `[]` - used for list comprehension,
> - `()` - used for generators,
> - `[start:stop]` / `[start:stop:step]` - used for slices.
> The idea is to use `(start:stop)` / `(start:stop:step)` as 'lazy evaluated'
> slices (like itertools.islice).
> What do you think about it?
>

It simply looks too much like a function call.


> --
> Best regards,
> Valiev Sergey
> *skype:* *svaliev*
> *jabber:* *svaliev at gmail.com*
> *phone:* +7 926 233-17-64
>
>
>
>
>
>
>
> --
> http://mail.python.org/mailman/listinfo/python-list
>
>


-- 
Read my blog! I depend on your acceptance of my opinion! I am interesting!
http://techblog.ironfroggy.com/
Follow me if you're into that sort of thing:
http://www.twitter.com/ironfroggy
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/python-list/attachments/20111004/497ecb21/attachment.html>


More information about the Python-list mailing list