Python syntax in Lisp and Scheme

Andrew Dalke adalke at
Sun Oct 5 22:17:59 CEST 2003

Russell Wallace:
> Also Python's syntax has a whole category of pitfalls that
> C's lacks.

To be fair, there are a couple of syntax pitfalls Python doesn't
have that C has, like the dangling else

if (a)
  if (b)
else    /* indented incorrectly but valid */

and left-right token disambiguation which turns



  a++ + b

(in early days of C, I did a =+1 only to find that =+ was
a deprecated version of += )

or in C++ makes it hader to do double level templates
because of the <<

> If Python feels right to you, then you should by all means use it.

Yup, it fits my brain, but my brain ain't yours.

                    dalke at

More information about the Python-list mailing list