import pygameclass spritetest(pygame.sprite.Sprite): def __init__(self,rect): pygame.sprite.Sprite.__init__(self) self.rect=rect self.image=Nonea=spritetest(pygame.Rect((0,0),(1,1)))b=spritetest(pygame.Rect((0,0),(5,5)))d=spritetest(pygame.Rect((0,0),(15,15)))e=spritetest(pygame.Rect((0,0),(20,20)))#b.topleft=a.topleft#print bc=pygame.sprite.RenderUpdates()c.add(a)c.add(b)c.add(d)c.remove(a)c.add(e)for q in c: print "Object %s has the value %s"%(q,q.rect)#notice how it appends it to the beginning of the list instead of the endrj@feistylolz:/media/stuff/School/Python/pylaga-.11$ python recttest.pyObject <spritetest sprite(in 1 groups)> has the value <rect(0, 0, 20, 20)>Object <spritetest sprite(in 1 groups)> has the value <rect(0, 0, 5, 5)>Object <spritetest sprite(in 1 groups)> has the value <rect(0, 0, 15, 15)>