[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]

Re: [pygame] coloring book program to try



Yes there is.  myList.reverse()

On Mon, 2003-12-15 at 15:32, Michael wrote:
> >File "coloring_book.py", line 173, in check_click
> >>    for layer in self.layers[::-1]:
> >>TypeError: sequence index must be integer
> > 
> > Are you using Python 2.3 or newer? It is required for the extended slice 
> > syntax.
> 
> Hrm is there a better way to reverse the order of my sequence that works 
> for Python 2.2 users also?
-- 
+-------------------------------------------------------------+
| Shandy Brown                               Digital Thinkery |
| shandy@geeky.net             http://www.digitalthinkery.com |
+-------------------------------------------------------------+