Re: [Tutor] How to get both 2.6 scripts as well as 3.1 scripts to run at command line?

2010-09-16 Thread Steven D'Aprano
On Thu, 16 Sep 2010 01:35:17 pm David Hutto wrote: > print("a is", a) > or > from future import * Neither of those lines are correct. Given (say) a=42, in Python 2.6 the first line will print the tuple: ("a is", 42) while in Python 3.1 it will print the string: a is 42 Note the extra punctuat

Re: [Tutor] How to get both 2.6 scripts as well as 3.1 scripts to run at command line?

2010-09-16 Thread Richard D. Moores
I forgot to mention that I didn't write that solveCubicEquation.py script. I paid a pittance to mathtalk-ga at the old Google Answers to not only write it, but to explain it. I recommend these 2 pages to those with a mathematical bent:

Re: [Tutor] How to get both 2.6 scripts as well as 3.1 scripts to run at command line?

2010-09-16 Thread Richard D. Moores
On Thu, Sep 16, 2010 at 00:54, Alan Gauld wrote: > > "Richard D. Moores" wrote > >> Some of the scripts written for 2.6 use libraries not yet available for 3.x. >> So I want to know not how to modify them, but how to run them at the command >> line. > > Install 2.x. > This is why we keep recommen

Re: [Tutor] How to get both 2.6 scripts as well as 3.1 scripts to run at command line?

2010-09-16 Thread Alan Gauld
"Richard D. Moores" wrote Some of the scripts written for 2.6 use libraries not yet available for 3.x. So I want to know not how to modify them, but how to run them at the command line. Install 2.x. This is why we keep recommending that beginners stick with 2.x. Its why the 2.x line has no

Re: [Tutor] How to get both 2.6 scripts as well as 3.1 scripts to run at command line?

2010-09-15 Thread David Hutto
On Thu, Sep 16, 2010 at 12:11 AM, Richard D. Moores wrote: > > > On Wed, Sep 15, 2010 at 20:25, Richard D. Moores wrote: >> >> 64-bit Vista. >> >> I have no problem running 3.1 scripts at the command line. However 2.6 >> scripts seems to require 2.x. For example, I get this error showing that the

Re: [Tutor] How to get both 2.6 scripts as well as 3.1 scripts to run at command line?

2010-09-15 Thread Richard D. Moores
On Wed, Sep 15, 2010 at 20:25, Richard D. Moores wrote: > 64-bit Vista. > > I have no problem running 3.1 scripts at the command line. However 2.6 > scripts seems to require 2.x. For example, I get this error showing that the > old 2.x print won't do: > > C:\P26Working\Finished>solveCubicEquation

Re: [Tutor] How to get both 2.6 scripts as well as 3.1 scripts to run at command line?

2010-09-15 Thread David Hutto
On Thu, Sep 16, 2010 at 12:02 AM, Bill Allen wrote: > > > On Wed, Sep 15, 2010 at 10:35 PM, David Hutto wrote: >> >> print("a is", a) >> or >> from future import * >> ___ > > Other than the Python 3 style print function, what else is contained in the >

Re: [Tutor] How to get both 2.6 scripts as well as 3.1 scripts to run at command line?

2010-09-15 Thread Bill Allen
On Wed, Sep 15, 2010 at 10:35 PM, David Hutto wrote: > print("a is", a) > or > from future import * > ___ > Other than the Python 3 style print function, what else is contained in the future module? --Bill _

Re: [Tutor] How to get both 2.6 scripts as well as 3.1 scripts to run at command line?

2010-09-15 Thread David Hutto
print("a is", a) or from future import * ___ Tutor maillist - Tutor@python.org To unsubscribe or change subscription options: http://mail.python.org/mailman/listinfo/tutor

[Tutor] How to get both 2.6 scripts as well as 3.1 scripts to run at command line?

2010-09-15 Thread Richard D. Moores
64-bit Vista. I have no problem running 3.1 scripts at the command line. However 2.6 scripts seems to require 2.x. For example, I get this error showing that the old 2.x print won't do: C:\P26Working\Finished>solveCubicEquation.py File "C:\P26Working\Finished\solveCubicEquation.py", line 19