Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > Python > [Q] ipython: Multiple commands on the same line and newlines

Reply
Thread Tools

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

 
 
Chris Angelico
Guest
Posts: n/a
 
      04-18-2011
On Mon, Apr 18, 2011 at 4:01 PM, harrismh777 <(E-Mail Removed)> 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/sim...ure-statements

Chris Angelico
 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
regular expressions on strings with multiple newlines Adam Akhtar Ruby 2 09-13-2008 07:55 AM
two types of newlines (\n and \r\n) and browser HopfZ Javascript 1 01-11-2007 08:27 PM
Command-line tool able to take multiple commands at one time? Peter A. Schott Python 8 11-12-2005 12:53 AM
Need Help Differentiating Bad Commands From Incomplete Commands Tim Stanka Python 1 08-02-2004 02:08 AM
Re: man pages for C commands (GCC commands) Ben Pfaff C Programming 4 06-28-2003 06:21 PM



Advertisments