problem with exec

Steven D'Aprano steve at
Sun Jul 22 18:58:38 CEST 2007

On Sun, 22 Jul 2007 09:12:21 -0400, Steve Holden wrote:

>> Steve Holden was playing silly games. You can't use { } for indentation.
>> You have to use indentation.
> I wasn't playing silly games at all, and I did prefix that part ofmy 
> answer with "I'm afraid I don't understand this question". The OP is 
> writing a program to "translate" a Python-like language that uses 
> non-English keywords into Python. Since the application is transforming 
> its input, it could transform braces into indentation. Of course 
> *Python* doesn't use braces, but the question was how to write 
> "pseudo-Python" without using indentation to indicate grouping.

Then I have misunderstood you, and I apologize.


More information about the Python-list mailing list