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

Re: [pygame] Strange "syntax error"



And this is why we don't code past our bed times. ^_^;; (at about 11:00 my brain cuts off)
So... yeah, I'm surprised I didn't catch that myself... sorry for the trouble. I need to get more sleep...

On 3/5/07, Luke Paireepinart <rabidpoobear@xxxxxxxxx> wrote:
Charles Joseph Christie II wrote:
> I have come to the decision that this idea would make a great sequel,
> But for now I don't want to throw away the work I've already done. So,
> without further ado...
>
> I got hit with a syntax error, but I don't see it anywhere. Does
> anybody see it?
>
> It's on line 17. I don't see it though...

self.image.blit = (self.image, (0, 0)

One-open, two-open, one-close, uh-oh!
Missing parenthesis usually cause the line immediately after them to be flagged.
Don't always assume the line that Python tells you about is the one causing the problem.
HTH,
-Luke