Terry Reedy <[EMAIL PROTECTED]> wrote:

> But you do not really need a variant.  Just define a preprocessor
> function 'blockify' which converts code in an alternate syntax to
> regular indented block syntax.  Then
>
> exec(blockify(alt_code_string))

You can do it like that, but if it were to become part of the standard
distribution it would be nice to avoid having to tokenise the code
twice. (You could define the new block scheme in such a way that
'blockify' doesn't need to tokenise, but I think it would end up a bit
ugly.)

-M-
 
-- 
http://mail.python.org/mailman/listinfo/python-list

Reply via email to