What version of python is needed?

2 views
Skip to first unread message

Tabai

unread,
Jun 2, 2010, 7:12:49 PM6/2/10
to cells-game-users
I'm getting this error:


python cells.py minds/mind1.py minds/mind2.py
cells.py:47: Warning: 'as' will become a reserved keyword in Python
2.6
File "cells.py", line 47
except Exception as e:
^
SyntaxError: invalid syntax


I'm using python 2.5.2

Tabai

unread,
Jun 2, 2010, 7:35:05 PM6/2/10
to cells-game-users
I just had to change 2 lines of code to get it working. Apparently
Python 2.5 doesn't support the as keyword yet so you have to replace
except Exception as e for except Exception, e. and another line
containing with and as.
Reply all
Reply to author
Forward
0 new messages