Re: can't assign to literal



On Jun 11, 10:32 am, MRAB <goo...@xxxxxxxxxxxxxxxxxxx> wrote:
On Jun 10, 10:57 pm, "Steven Clark" <steven.p.cl...@xxxxxxxxx> 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.
.



Relevant Pages

  • Re: cant assign to literal
    ... SyntaxError: can't assign to literal ... but is there an editor that can display digits in a ... , and commonly used built-in function (int, ord, ...
    (comp.lang.python)
  • Re: cant assign to literal
    ... MRAB wrote: ... SyntaxError: can't assign to literal ... but is there an editor that can display digits in a ...
    (comp.lang.python)
  • Re: cant assign to literal
    ... SyntaxError: can't assign to literal ... but is there an editor that can display digits in a ... different colour to letters? ...
    (comp.lang.python)
  • Re: Importing file with fixed width, multi-line records
    ... file with a different format - each record on one line only. ... Not Word, and not Notepad. ... I've ONLY seen this happen when my text editor made things look this ... what software they originate with? ...
    (microsoft.public.excel.misc)
  • Re: Read text from file in CE Image.
    ... I used notepad on the XP machine to save it. ... The only editor I have on my ... CE device is Wordpad. ... I thought that CString format function would take char of it. ...
    (microsoft.public.windowsce.embedded)