inline comparison

sam sam.wun at authtec.com
Sat Mar 19 22:09:06 EST 2005


Hi,

I got the the following syntax error in comparison:
   File "/usr/local/work/myparser.py", line 85
     if ( (m=self.macro_parser.match (d)) != None ):
            ^
SyntaxError: invalid syntax

How can I get around wtih this? I don't want to break down this 
comparison in two steps.

Thanks
Sam



More information about the Python-list mailing list