[Tutor] "else:" triggering a Syntax Error

Benno Lang transmogribenno at gmail.com
Sat Feb 6 13:40:30 CET 2010

On Sat, Feb 6, 2010 at 9:19 PM, spir <denis.spir at free.fr> wrote:
> On Sat, 6 Feb 2010 20:18:53 +0900
> Benno Lang <transmogribenno at gmail.com> 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...

Fair enough. I do, but obviously with the inner ones it's just a
question of style. Either way, it should be consistent for both ifs.


More information about the Tutor mailing list