Python 2.5 problem?

Add a reply

Posted by pbx 704 days ago:
I had a couple uploads yield SyntaxErrors on Python 2.5 features (which worked fine on my local install of 2.5), specifically the new conditional expression syntax. I don't have the code anymore but it was something like this:

x=[1,2,3]if y else [4,5,6]

And it barfed right at the beginning of the "if". This was yesterday.
Posted by Mark Byers 704 days ago:
From a conversation in IRC today, it sounds like Python 2.4 was running accidentally for a short period, so Python 2.5 specific syntax was being rejected. I think this could be the explanation for the error you saw.

Add a reply