On Tue, 7 Jun 2005, D. Hartley wrote:
> OK. I tried them out and I do see the diffence. (btw, testit1 gave me
> the following error:
>
> Traceback (most recent call last):
> File "", line 1, in ?
> testit1()
> File "", line 3, in testit1
> del fromlist[0]
> IndexError: list assignmen
On Tue, 7 Jun 2005, Terry Carroll wrote:
> On Tue, 7 Jun 2005, D. Hartley wrote:
>
> > def findlist():
> > newlist = []
> > for i in range(480):
> > line = fromlist[:640]
> > del fromlist[:640]
> > x = line.index(195)
> > y = x + 5
> > z = line[x:y]
On Tue, 7 Jun 2005, D. Hartley wrote:
> def findlist():
> newlist = []
> for i in range(480):
> line = fromlist[:640]
> del fromlist[:640]
> x = line.index(195)
> y = x + 5
> z = line[x:y]
> del line[x:y]
> for i in z:
> n
Hello, everyone!
If someone has a few seconds, I am getting some weird errors and
Python won't tell me why. What I am trying to do is take a middle
chunk out of a line of an image, place that at the beginning of the
line, and slide the rest over to the end, like so:
111bb
to:
111aa