trying to create a dictionary in python, using variables as a value

John Machin sjmachin at lexicon.net
Mon Nov 20 19:12:29 EST 2006


Fredrik Lundh wrote:
> John Machin wrote:
>
> > On this one what? It would help very much if you showed the one
> > statement that is getting the syntax error.
>
> on which statement does he *not* get a syntax error?
>

A clarification:

The first statement *contains* two syntax errors. There are various
others sprinkled throughout what he has seemingly typed in with
presumably explanatory intent.

Even if that were in fact his source file, he would only *get* one
Syntax Error *message*. Python evidently has inherited its error
handling from Dijkstra's first Algol 60 compiler, which according to
legend, had a similar modus operandi.

HTH,
John




More information about the Python-list mailing list