Velocity Reviews

Velocity Reviews (http://www.velocityreviews.com/forums/index.php)
-   Python (http://www.velocityreviews.com/forums/f43-python.html)
-   -   Re: Negative array indicies and slice() (http://www.velocityreviews.com/forums/t954108-re-negative-array-indicies-and-slice.html)

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 <ethan@stoneleaf.us> 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.

~Ethan~


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.