Re: [Tutor] "else:" triggering a Syntax Error

2010-02-06 Thread Benno Lang
On Sat, Feb 6, 2010 at 9:19 PM, spir wrote: > On Sat, 6 Feb 2010 20:18:53 +0900 > Benno Lang wrote: > >> > if ((self.start_dot.x > self.end_dot.x) and (self.start_dot.y !=   >> > self.end_dot.y)): >> (1) Are you sure you want all those superfluous parentheses? > > @ Benno: I do not find the _inne

Re: [Tutor] "else:" triggering a Syntax Error

2010-02-06 Thread spir
On Sat, 6 Feb 2010 20:18:53 +0900 Benno Lang wrote: > > if ((self.start_dot.x > self.end_dot.x) and (self.start_dot.y != > > self.end_dot.y)): > (1) Are you sure you want all those superfluous parentheses? @ Benno: I do not find the _inner_ ones superfluous at all... @ Stijn: When you ask abo

Re: [Tutor] "else:" triggering a Syntax Error

2010-02-06 Thread Benno Lang
On Sat, Feb 6, 2010 at 7:56 PM, Stijn . wrote: > class Line(): #The class >     def __init__( self, start_dot, end_dot, width): #init function >     self.start_dot = start_dot >     self.surface = pygame.Surface((w, h), SRCALPHA) >     self.surface.fill((0,0,0,0)) >     self.end_do

[Tutor] "else:" triggering a Syntax Error

2010-02-06 Thread Stijn .
First of all I'd like to say that I'm new to python, and new to mailinglists. So if I make any mistakes, please correct me. Now, onto my issue: I am trying to put an "else:" statement inside a class: class Line(): #The class def __init__( self, start_dot, end_dot, width): #init function