How to use "while" within the command in -c option of python?

Chris Angelico rosuav at gmail.com
Sat Oct 13 18:09:24 EDT 2012


On Sun, Oct 14, 2012 at 9:00 AM, Joshua Landau
<joshua.landau.ws at 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?

ChrisA



More information about the Python-list mailing list