On 13 October 2012 23:09, Chris Angelico <ros...@gmail.com> wrote:

> On Sun, Oct 14, 2012 at 9:00 AM, Joshua Landau
> <joshua.landau...@gmail.com> wrote:
> > That is also callable from the command-line like so:
> >>
> >> python -m debrace -c "if a: ${ print(1) $ print(2) $ while b: c() $ if
> g:
> >> ${ pass }$ }$ print(d)"
>
> Wait.... you're pretty much implementing from __future__ import braces?
>

But *without changing Python*. The Python that's run is brace-less. This is
a *pure module* and thus none of this will occur inside code, just in its
generation or on the command line.

Unless you want to use it on all of your files, in which case you're better
off with another language.
-- 
http://mail.python.org/mailman/listinfo/python-list

Reply via email to