can't assign to literal

Chris cwitts at gmail.com
Wed Jun 11 04:47:28 EDT 2008


On Jun 11, 10:32 am, MRAB <goo... at mrabarnett.plus.com> 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?

SciTE and Notepad++ which are just 2 of the editors installed on my PC
currently.



More information about the Python-list mailing list