[Q] ipython: Multiple commands on the same line and newlines

Chris Angelico rosuav at gmail.com
Mon Apr 18 02:12:02 EDT 2011


On Mon, Apr 18, 2011 at 4:01 PM, harrismh777 <harrismh777 at charter.net> wrote:
>    It might be nice (as an option) to be able to disengage the forced
> indentation syntax rules of Python. In other words, provide indentation
> syntax by default and allow an option via environment variable to engage an
> alternate (more C-like) blocking syntax.
>

You can do that with a future directive.

from __future__ import braces

That's two underscores before and after the word "future".
http://docs.python.org/reference/simple_stmts.html#future-statements

Chris Angelico



More information about the Python-list mailing list