can't assign to literal

MRAB google at mrabarnett.plus.com
Wed Jun 11 04:32:52 EDT 2008


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?



More information about the Python-list mailing list