can't assign to literal

Ethan Furman ethan at stoneleaf.us
Wed Jun 11 12:15:11 EDT 2008


MRAB wrote:
> On Jun 10, 10:57 pm, "Steven Clark" <steven.p.cl... at gmail.com> wrote:
> 
>>>for 1 in oids, vals head_oids:
>>>SyntaxError: can't assign to literal
>>>--
>>
>>1 is a literal, you can't assign it to something. Are you trying to
>>use it as a variable name?
> 
> 
> Slightly OT, but is there an editor that can display digits in a
> different colour to letters?
> --
> http://mail.python.org/mailman/listinfo/python-list

I like Vim (Vi Improved) -- multi-platform, multi-lingual (both spoken 
and programmatic), and you can change the existing syntax/color/indent 
files or make your own.

http://www.vim.org/
--
Ethan



More information about the Python-list mailing list