On Thu, Sep 11, 2008 at 6:53 AM, Ragzouken <[EMAIL PROTECTED]> wrote: > > With an imagegrid it seems impossible to do a slice that includes an > edge cell because current assertions on image's __init__.py (2264) > forbid a slice end to be equal or greater than the size of the grid, > but to fully slice anything you need to allow it to be equal, I'm > sure. > > e.g > >>>> a = ["test"] >>>> len(a) > 1 >>>> a[0:0] > [] >>>> a[0:1] > ["test"] > > In this case the final slice 'coord' must be equal to the length of > the list. > > Is this a bug, or a misunderstanding on my part? I changed the assert > to lesser/equal instead of just lesser and what I'm trying to do works > seemingly without any nasty bugs.
You're right, thanks. I assume you mean __getitem__, not __init__. Fixed in r2253 (pyglet-1.1-maintenance) and r2254 (trunk). Alex. --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "pyglet-users" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/pyglet-users?hl=en -~----------~----~----~----~------~----~------~--~---
