|
Re: off by one error, line 55 in arraydemo.py: msg#00242python.pygame
On Wed, 2005-09-28 at 10:47 -0700, Miles Van Pelt wrote: > Line 55 in arraydemo.py > flipped = imgarray[:,-1:0:-1] > > This should be: > flipped = imgarray[:,-1::-1] You're right. It looks like the Numeric slicing doesn't really need bounds anyways when reversing. So just doing ::-1 will work fine. |
|
| <Prev in Thread] | Current Thread | [Next in Thread> |
|---|---|---|
| Previous by Date: | Re: Optimization Fun: 00242, Simon Wittber |
|---|---|
| Next by Date: | Re: off by one error, line 55 in arraydemo.py: 00242, Miles Van Pelt |
| Previous by Thread: | off by one error, line 55 in arraydemo.pyi: 00242, Miles Van Pelt |
| Next by Thread: | Re: off by one error, line 55 in arraydemo.py: 00242, Miles Van Pelt |
| Indexes: | [Date] [Thread] [Top] [All Lists] |
| News | FAQ | advertise |