On 2014-02-13, Peter Otten <__pete...@web.de> wrote:
> forman.si...@gmail.com wrote:
> The first is too clever for my taste.
>
> The second is fast and easy to understand. It might attract
> "improvements" replacing the slice with an index, but I trust
> you will catch that with your unit tests ;)

It's easy to forget exactly why startswith and endswith even exist.

-- 
Neil Cerutti

-- 
https://mail.python.org/mailman/listinfo/python-list

Reply via email to