On Mon, Apr 18, 2011 at 4:01 PM, harrismh777 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-li
Terry Reedy wrote:
You can write multiple *simple* statements using ';'.
All compound statements, like while, must start on own line.
E.g. I want:
"x = 0;
This is one statement
while x< 10:
x = x + 1;
Lutz has a very nice write-up entitled "Why Indentation Syntax?"
Lutz, Mark
Phil Winder wrote:
> Hi,
> I'm having a go at using ipython as a command prompt for data
> analysis. Coming from Matlab, I'm used to typing multiple commands on
> the same line then using the up arrow to go through my history.
> How can I write multiple python commands on the same line?
> E.g. "x
Hi Phil...
> How can I write multiple python commands on the same line?
> E.g. "x = 0; while x < 10: x = x + 1;" returns an "invalid syntax"
> error on the 'e' in while.
I don`t think this is possible under any Python version.
There will always be some kind of user intervention required other th
On 4/16/2011 9:55 AM, Phil Winder wrote:
Hi,
I'm having a go at using ipython as a command prompt for data
analysis. Coming from Matlab, I'm used to typing multiple commands on
the same line then using the up arrow to go through my history.
How can I write multiple python commands on the same lin
On Sun, Apr 17, 2011 at 2:29 AM, Andrea Crotti
wrote:
> for
> x = 10
>
> what's the difference for you if it gets evaluated before or after?
I have the same issue in IDLE sometimes, and the reason it's annoying
relates to the up-arrow key (Alt-P in IDLE). I can retrieve one entire
command, but if
Phil Winder writes:
> Hi,
> I'm having a go at using ipython as a command prompt for data
> analysis. Coming from Matlab, I'm used to typing multiple commands on
> the same line then using the up arrow to go through my history.
> How can I write multiple python commands on the same line?
> E.g. "
Hi,
I'm having a go at using ipython as a command prompt for data
analysis. Coming from Matlab, I'm used to typing multiple commands on
the same line then using the up arrow to go through my history.
How can I write multiple python commands on the same line?
E.g. "x = 0; while x < 10: x = x + 1;" r