by scribu · 10y ago · 0 comments
In more precise terms, the assertion is that Python's grammar belongs to the context-free class of languages in Chomsky's hierarchy.
Here's an interesting discussion about that and the more philosophical question "what is valid code?" on comp.theory: https://groups.google.com/forum/m/#!msg/comp.theory/nJzOyRnA...
I guess I jumped at the idea because it seemed to provide a simple theoretical explanation as to why Python is easier to grok than other languages which don't have context-free grammars.