On 13 October 2012 23:09, Chris Angelico <span dir="ltr"><<a href="mailto:rosuav@gmail.com" target="_blank">rosuav@gmail.com</a>></span> wrote:<br><div class="gmail_quote"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">

<div class="im">On Sun, Oct 14, 2012 at 9:00 AM, Joshua Landau<br>
<<a href="mailto:joshua.landau.ws@gmail.com">joshua.landau.ws@gmail.com</a>> wrote:<br>
> That is also callable from the command-line like so:<br>
>><br>
>> python -m debrace -c "if a: ${ print(1) $ print(2) $ while b: c() $ if g:<br>
>> ${ pass }$ }$ print(d)"<br>
<br>
</div>Wait.... you're pretty much implementing from __future__ import braces?<br></blockquote><div><br></div><div>But <i>without changing Python</i>. The Python that's run is brace-less. This is a <i>pure module</i> and thus none of this will occur inside code, just in its generation or on the command line.</div>

<div><br></div><div>Unless you want to use it on all of your files, in which case you're better off with another language.</div></div>