Re: python -c commands on windows.

2013-10-22 Thread Chris Angelico
On Tue, Oct 22, 2013 at 9:42 PM, Oscar Benjamin wrote: > On Windows I use "git bash" which I think is just bash from msys. If > you find yourself spending any time using cmd.exe you'll appreciate > why. I also use console2 as the GUI part of the terminal. Heh, me too. According to its title bar,

Re: python -c commands on windows.

2013-10-22 Thread Oscar Benjamin
On 21 October 2013 21:47, Terry Reedy wrote: > Manual says "-c > Execute the Python code in command. command can be one or more > statements separated by newlines, with significant leading whitespace as in > normal module code." > > In Windows Command Prompt I get: > C:\Programs\Python33>pyth

Re: python -c commands on windows.

2013-10-22 Thread Peter Otten
Terry Reedy wrote: > Manual says "-c > Execute the Python code in command. command can be one or more > statements separated by newlines, with significant leading whitespace as > in normal module code." > > In Windows Command Prompt I get: > C:\Programs\Python33>python -c "a=1\nprint(a)" >

Re: python -c commands on windows.

2013-10-21 Thread Terry Reedy
On 10/21/2013 5:14 PM, random...@fastmail.us wrote: On Mon, Oct 21, 2013, at 16:47, Terry Reedy wrote: Manual says "-c Execute the Python code in command. command can be one or more statements separated by newlines, with significant leading whitespace as in normal module code." In Window

Re: python -c commands on windows.

2013-10-21 Thread Ned Batchelder
On 10/21/13 4:47 PM, Terry Reedy wrote: Manual says "-c Execute the Python code in command. command can be one or more statements separated by newlines, with significant leading whitespace as in normal module code." In Windows Command Prompt I get: C:\Programs\Python33>python -c "a=1\npr

Re: python -c commands on windows.

2013-10-21 Thread Chris Angelico
On Tue, Oct 22, 2013 at 8:14 AM, wrote: > C:\>python -c a=1^ > More? > More? print(a) > 1 Note that you have to hit enter *twice* for this to work. (I'm not sure why; the caret is supposed to escape the newline, but that doesn't explain this. For all I know, it could be an ascended bug[1].) Also

Re: python -c commands on windows.

2013-10-21 Thread random832
On Mon, Oct 21, 2013, at 16:47, Terry Reedy wrote: > Manual says "-c > Execute the Python code in command. command can be one or more > statements separated by newlines, with significant leading whitespace as > in normal module code." > > In Windows Command Prompt I get: > C:\Programs\Pyth

python -c commands on windows.

2013-10-21 Thread Terry Reedy
Manual says "-c Execute the Python code in command. command can be one or more statements separated by newlines, with significant leading whitespace as in normal module code." In Windows Command Prompt I get: C:\Programs\Python33>python -c "a=1\nprint(a)" File "", line 1 a=1\nprint(