2010-11-03 19:26, Marcin Krol skrev:
> matplotlib:
>       field.setCheckState(Qt.Checked if value else Qt.Unchecked)
>                                       ^
> SyntaxError: invalid syntax

The code above is a conditional expression, and those are mentioned [0] 
on the "what's new in python 2.5"-page, so I would guess that line is 
invalid in python 2.4, that you use.

I would replace it by

if value:

and see if that particular error goes away.

There could of course be many similar issues, but I see that the system 
requirements lists python 2.4 or newer as required [1], so perhaps those 
constructs are often avoided.

In any case, if my guesses are correct, I would consider using the 
conditional expression in matplotlib as a bug, given that python 2.4 is 
mentioned in the requirements.



[0]: http://docs.python.org/whatsnew/2.5.html
[1]: http://matplotlib.sourceforge.net/users/installing.html

Achieve Improved Network Security with IP and DNS Reputation.
Defend against bad network traffic, including botnets, malware, 
phishing sites, and compromised hosts - saving your company time, 
money, and embarrassment.   Learn More! 
Matplotlib-users mailing list

Reply via email to