Velocity Reviews

Velocity Reviews (
-   Python (
-   -   Re: Negative array indicies and slice() (

Ethan Furman 11-01-2012 04:15 PM

Re: Negative array indicies and slice()
Chris Angelico wrote:
> On Fri, Nov 2, 2012 at 1:12 AM, Ethan Furman <> wrote:
>> In other words, the slice contains the strings, and my code calculates
>> the offsets -- Python doesn't do it for me.

> That's correct, but you're still translating those strings into
> numeric indices.

True, but the point is that the /slice/ contains a data type that is
neither a number, nor directly translatable into a number (that is, no
__index__ method), and my code would cease to function should that
change to slices be made.


All times are GMT. The time now is 02:53 AM.

Powered by vBulletin®. Copyright ©2000 - 2014, vBulletin Solutions, Inc.
SEO by vBSEO ©2010, Crawlability, Inc.