A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from http://mail.python.org/pipermail/python-list/2005-September/336273.html below:

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

Bug in string.find; was: Re: Proposed PEP: New style indexing,was Re: Bug in slice typeStefan Rank stefan.rank at ofai.at
Thu Sep 1 07:29:00 EDT 2005
> [snipped alot from others about indexing, slicing problems,
>  and the inadequacy of -1 as Not Found indicator]

on 31.08.2005 16:16 Ron Adam said the following:
> The problem with negative index's are that positive index's are zero 
> based, but negative index's are 1 based.  Which leads to a non 
> symmetrical situations.

Hear, hear.

This is, for me, the root of the problem.

But changing the whole of Python to the (more natural and consistent) 
one-based indexing style, for indexing from left and right, is...
difficult.


More information about the Python-list mailing list

RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4