<[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > After upgrading to 2.4 (from 2.3), I'm getting a weird syntax error: > >>>> import themes > Traceback (most recent call last): > File "<interactive input>", line 1, in ? > File "themes.py", line 564 > font = self.font.makeBlackAndWhite(), > additive = self.additive, > ^ > SyntaxError: invalid syntax
The location of the caret is sometimes misleading, especially with proportional fonts... > The relevant code is: > > def makeBlackAndWhite( self ): > > return CharStyle( names = self.names, > basedOn = self.basedOn.makeBlackAndWhite(), > font = self.font.makeBlackAndWhite(), > additive = self.additive, > prefixText = self.prefixText ) > > This is a method in the CharStyle class which returns a new modified > instance of CharStyle. > > I'm using Windows XP and Python 2.4.1 > > Any ideas? O:-) I don't see the problem yet. I certainly do not see anything that should have been affected by the upgrade (was it from 2.3 on XP also?) After checking for nonprinting chars, I would shuffle the param-default lines to try to determine which is really at fault. Good luck, or wait for a more helpful response. Terry J. Reedy -- http://mail.python.org/mailman/listinfo/python-list