Bug in string.find; was: Re: Proposed PEP: New style indexing,was Re: Bug in slice type

Bengt Richter bokr at oz.net
Tue Aug 30 15:03:01 EDT 2005


On Tue, 30 Aug 2005 08:53:27 GMT, Bryan Olson <fakeaddress at nowhere.org> wrote:
[...]
>Specification
>
>     We propose a new style of slicing and indexing for Python
>     sequences. Instead of:
>
>         sequence[start : stop : step]
>
>     new-style slicing uses the syntax:
>
>         sequence[start ; stop ; step]
>
I don't mind the semantics, but I don't like the semicolons ;-)

What about if when brackets trail as if attributes, it means
your-style slicing written with colons instead of semicolons?

          sequence.[start : stop : step]

I think that would just be a tweak on the trailer syntax.
I just really dislike the semicolons ;-)

Regards,
Bengt Richter



More information about the Python-list mailing list