[Tutor] Databases in Python

christopher.henk at allisontransmission.com christopher.henk at allisontransmission.com
Tue Aug 24 19:40:01 CEST 2010

aug dawg wrote on 08/24/2010 01:13:01 PM:

> It's not catching that, but I haven't gotten there with the bugs yet. 
One more thing I can't figure out.
> line 11
>     select-db = raw_input("Which database to add to? >> ")
> SyntaxError: can't assign to operator
> I think it might be the >> at the end, but when I try it in the Python 
interpreter, it works fine.
The error is triggered by your variable name.  You can't use a dash, 
Python is interpreting that as a minus sign.  You can use the underscore 
"_" instead.

more here:

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/tutor/attachments/20100824/f1210c3b/attachment.html>

More information about the Tutor mailing list