Re: [gentoo-user] new machine : suddenly Python 3 appears

2012-09-20 Thread Willie WY Wong
On Wed, Sep 19, 2012 at 09:08:52AM +0200, Penguin Lover Marc Joliet squawked: 2.) The full blown interactive solution: IPython. You can create a session and configure which modules you want preloaded via startup scripts. This is overkill for what you want, I think, but IPython is a much nicer

Re: [gentoo-user] new machine : suddenly Python 3 appears

2012-09-20 Thread Marc Joliet
Am Thu, 20 Sep 2012 13:38:45 +0200 schrieb Willie WY Wong wong...@member.ams.org: On Wed, Sep 19, 2012 at 09:08:52AM +0200, Penguin Lover Marc Joliet squawked: 2.) The full blown interactive solution: IPython. You can create a session and configure which modules you want preloaded via

Re: [gentoo-user] new machine : suddenly Python 3 appears

2012-09-19 Thread Marc Joliet
Am Mon, 17 Sep 2012 17:08:38 -0400 schrieb Philip Webb purs...@ca.inter.net: [...] The one limitation of the script is that it doesn't allow variables ; you can easily recall previous lines via Bash mouseover+drop bits, but AFAIK there's no way to assign values to variables. With Python

Re: [gentoo-user] new machine : suddenly Python 3 appears

2012-09-18 Thread Marc Joliet
Am Mon, 17 Sep 2012 23:27:34 +0100 schrieb David W Noon dwn...@ntlworld.com: On Mon, 17 Sep 2012 17:17:47 -0400, Philip Webb wrote about Re: [gentoo-user] new machine : suddenly Python 3 appears: 120917 Philip Webb wrote: 120917 David W Noon wrote: print(' {0}'.format

Re: [gentoo-user] new machine : suddenly Python 3 appears

2012-09-17 Thread Neil Bothwick
On Sun, 16 Sep 2012 20:24:01 -0400, Philip Webb wrote: We've been warned not to use Python 3 , so it's not installed in this box, but it was included along with Python 2 in the Stage3 for the new machine. I now find that 13 pkgs have been compiled relying on it Portage refuses to unmerge

Re: [gentoo-user] new machine : suddenly Python 3 appears

2012-09-17 Thread Philip Webb
120917 Neil Bothwick wrote: On Sun, 16 Sep 2012 20:24:01 -0400, Philip Webb wrote: We've been warned not to use Python 3 , so it's not installed in this box, but it was included along with Python 2 in the Stage3 for the new machine. I now find that 13 pkgs have been compiled relying on it

Re: [gentoo-user] new machine : suddenly Python 3 appears

2012-09-17 Thread David W Noon
On Mon, 17 Sep 2012 13:14:27 -0400, Philip Webb wrote about Re: [gentoo-user] new machine : suddenly Python 3 appears: In case others might like to use it, the script is : #!/usr/bin/python2 from math import * import sys expression = sys.argv[1] print ' ',eval

Re: [gentoo-user] new machine : suddenly Python 3 appears

2012-09-17 Thread Philip Webb
120917 David W Noon wrote: On Mon, 17 Sep 2012 13:14:27 -0400, Philip Webb wrote re Python 2/3 : print ' ',eval(expression) The above line uses obsolete syntax. Try using #!/usr/bin/python2 -3 for your hash-bang line on all your old Python scripts. Well, thanks for the

Re: [gentoo-user] new machine : suddenly Python 3 appears

2012-09-17 Thread Marc Joliet
Am Mon, 17 Sep 2012 14:45:41 -0400 schrieb Philip Webb purs...@ca.inter.net: 120917 David W Noon wrote: On Mon, 17 Sep 2012 13:14:27 -0400, Philip Webb wrote re Python 2/3 : print ' ',eval(expression) The above line uses obsolete syntax. Try using #!/usr/bin/python2 -3

Re: [gentoo-user] new machine : suddenly Python 3 appears

2012-09-17 Thread David W Noon
On Mon, 17 Sep 2012 14:45:41 -0400, Philip Webb wrote about Re: [gentoo-user] new machine : suddenly Python 3 appears: 120917 David W Noon wrote: On Mon, 17 Sep 2012 13:14:27 -0400, Philip Webb wrote re Python 2/3 : print ' ',eval(expression) The above line uses obsolete

Re: [gentoo-user] new machine : suddenly Python 3 appears

2012-09-17 Thread Philip Webb
120917 David W Noon wrote: On Mon, 17 Sep 2012 14:45:41 -0400, Philip Webb asked about print ' ',eval(expression) whose syntax is obsolete in Python3. print(' {0}'.format(eval(expression))) be aware that the above is only for your original print statement.

Re: [gentoo-user] new machine : suddenly Python 3 appears

2012-09-17 Thread Philip Webb
120917 Philip Webb wrote: 120917 David W Noon wrote: print(' {0}'.format(eval(expression))) That works properly with Python2 in this machine ; I'll check it with Python3 later in the new machine. 120917 Marc Joliet wrote: print(' ',eval(expression)) That does

Re: [gentoo-user] new machine : suddenly Python 3 appears

2012-09-17 Thread David W Noon
On Mon, 17 Sep 2012 17:17:47 -0400, Philip Webb wrote about Re: [gentoo-user] new machine : suddenly Python 3 appears: 120917 Philip Webb wrote: 120917 David W Noon wrote: print(' {0}'.format(eval(expression))) That works properly with Python2 in this machine ; I'll check

[gentoo-user] new machine : suddenly Python 3 appears

2012-09-16 Thread Philip Webb
We've been warned not to use Python 3 , so it's not installed in this box, but it was included along with Python 2 in the Stage3 for the new machine. I now find that 13 pkgs have been compiled relying on it Portage refuses to unmerge it. Is this safe ? --

Re: [gentoo-user] new machine : suddenly Python 3 appears

2012-09-16 Thread Dale
Philip Webb wrote: We've been warned not to use Python 3 , so it's not installed in this box, but it was included along with Python 2 in the Stage3 for the new machine. I now find that 13 pkgs have been compiled relying on it Portage refuses to unmerge it. Is this safe ? If you want to

Re: [gentoo-user] new machine : suddenly Python 3 appears

2012-09-16 Thread Michael Mol
On Sun, Sep 16, 2012 at 8:24 PM, Philip Webb purs...@ca.inter.net wrote: We've been warned not to use Python 3 Maybe I missed something...but by whom? -- :wq

Re: [gentoo-user] new machine : suddenly Python 3 appears

2012-09-16 Thread Dale
Michael Mol wrote: On Sun, Sep 16, 2012 at 8:24 PM, Philip Webb purs...@ca.inter.net wrote: We've been warned not to use Python 3 Maybe I missed something...but by whom? I think he means that we are not supposed to set the system default to python3. I'm just reading tea leaves, between the

Re: [gentoo-user] new machine : suddenly Python 3 appears

2012-09-16 Thread Michael Mol
On Sun, Sep 16, 2012 at 9:18 PM, Dale rdalek1...@gmail.com wrote: Michael Mol wrote: On Sun, Sep 16, 2012 at 8:24 PM, Philip Webb purs...@ca.inter.net wrote: We've been warned not to use Python 3 Maybe I missed something...but by whom? I think he means that we are not supposed to set the

Re: [gentoo-user] new machine : suddenly Python 3 appears

2012-09-16 Thread Dale
Michael Mol wrote: On Sun, Sep 16, 2012 at 9:18 PM, Dale rdalek1...@gmail.com wrote: Michael Mol wrote: On Sun, Sep 16, 2012 at 8:24 PM, Philip Webb purs...@ca.inter.net wrote: We've been warned not to use Python 3 Maybe I missed something...but by whom? I think he means that we are not