Re: [Python-Dev] PYTHON3PATH

2010-01-16 Thread Nick Coghlan
Ben Finney wrote: > Jeroen Ruigrok van der Werven writes: > >> -On [20100113 22:13], Ralf Schmitt (r...@brainbot.com) wrote: >>> hehe. tab completion: >> With bpython and ipython available, why would you even want to stick >> to the 'plain old' interactive interpreter? > > Because those optional

Re: [Python-Dev] PYTHON3PATH

2010-01-16 Thread Ben Finney
Jeroen Ruigrok van der Werven writes: > -On [20100113 22:13], Ralf Schmitt (r...@brainbot.com) wrote: > >hehe. tab completion: > > With bpython and ipython available, why would you even want to stick > to the 'plain old' interactive interpreter? Because those optional extras are not always avail

Re: [Python-Dev] PYTHON3PATH

2010-01-16 Thread Antoine Pitrou
Jeroen Ruigrok van der Werven in-nomine.org> writes: > > -On [20100113 22:13], Ralf Schmitt (ralf brainbot.com) wrote: > >hehe. tab completion: > > With bpython and ipython available, why would you even want to stick to the > 'plain old' interactive interpreter? Why wouldn't we? There are prob

Re: [Python-Dev] PYTHON3PATH

2010-01-16 Thread Jeroen Ruigrok van der Werven
-On [20100113 22:13], Ralf Schmitt (r...@brainbot.com) wrote: >hehe. tab completion: With bpython and ipython available, why would you even want to stick to the 'plain old' interactive interpreter? (Sorry to derail the discussion, but maybe there's more people that have not heard of either or bot

Re: [Python-Dev] PYTHON3PATH

2010-01-16 Thread Georg Brandl
Am 13.01.2010 21:27, schrieb Lennart Regebro: > On Wed, Jan 13, 2010 at 21:08, Oleg Broytman wrote: >> On Wed, Jan 13, 2010 at 08:50:59PM +0100, Lennart Regebro wrote: >>> What do you need to do in the PYTHONSTARTUP file? >>> Ten years of Python programming, and I didn't even know it existed. :-)

Re: [Python-Dev] PYTHON3PATH

2010-01-14 Thread M.-A. Lemburg
Ralf Schmitt wrote: > "M.-A. Lemburg" writes: > >> >> Naive users won't have PYTHONPATH or any other Python environment >> variables setup. >> >> Really, if you know that you are going to run Python 3 instead of >> Python 2 or vice-versa it's easy enough to run > > You don't even know that you'r

Re: [Python-Dev] PYTHON3PATH

2010-01-14 Thread Ralf Schmitt
"M.-A. Lemburg" writes: > > Naive users won't have PYTHONPATH or any other Python environment > variables setup. > > Really, if you know that you are going to run Python 3 instead of > Python 2 or vice-versa it's easy enough to run You don't even know that you're going to run python. I have 40 p

Re: [Python-Dev] PYTHON3PATH

2010-01-14 Thread Michael Foord
On 14/01/2010 21:02, Nick Coghlan wrote: However, I agree that that is a fairly unlikely scenario (since preinstalled Pythons tend not to rely on the e Well, on the other hand I think that during the next few years it will be increasingly common for developers (and possibly users) to have Pytho

Re: [Python-Dev] PYTHON3PATH

2010-01-14 Thread Nick Coghlan
M.-A. Lemburg wrote: > Nick Coghlan wrote: >> Guido van Rossum wrote: >>> On Wed, Jan 13, 2010 at 9:57 AM, sstein...@gmail.com > Or, how about >>> just removing the antiquated use of environment variables altogether >>> from Python 3 and avoid the issue completely. >>> >>> -1. They have their use,

Re: [Python-Dev] PYTHON3PATH

2010-01-14 Thread M.-A. Lemburg
Nick Coghlan wrote: > Guido van Rossum wrote: >> On Wed, Jan 13, 2010 at 9:57 AM, sstein...@gmail.com > Or, how about >> just removing the antiquated use of environment variables altogether >> from Python 3 and avoid the issue completely. >> >> -1. They have their use, but more in controlled situat

Re: [Python-Dev] PYTHON3PATH

2010-01-13 Thread skip
Lennart> What do you need to do in the PYTHONSTARTUP file? Just reading off stuff from my own personal startup file... I use it for stuff I want available during interactive sessions: 1. Enable true division. 2. Conditionally define "help" from back in the days when there was no

Re: [Python-Dev] PYTHON3PATH

2010-01-13 Thread Jared Grubb
On 13 Jan 2010, at 13:43, Nick Coghlan wrote: > Guido van Rossum wrote: >> On Wed, Jan 13, 2010 at 9:57 AM, sstein...@gmail.com > Or, how about >> just removing the antiquated use of environment variables altogether >> from Python 3 and avoid the issue completely. >> >> -1. They have their use, bu

Re: [Python-Dev] PYTHON3PATH

2010-01-13 Thread Guido van Rossum
On Wed, Jan 13, 2010 at 1:43 PM, Nick Coghlan wrote: > Guido van Rossum wrote: >> On Wed, Jan 13, 2010 at 9:57 AM, sstein...@gmail.com > Or, how about >> just removing the antiquated use of environment variables altogether >> from Python 3 and avoid the issue completely. >> >> -1. They have their

Re: [Python-Dev] PYTHON3PATH

2010-01-13 Thread Nick Coghlan
Guido van Rossum wrote: > On Wed, Jan 13, 2010 at 9:57 AM, sstein...@gmail.com > Or, how about > just removing the antiquated use of environment variables altogether > from Python 3 and avoid the issue completely. > > -1. They have their use, but more in controlled situations. If you > have "globa

Re: [Python-Dev] PYTHON3PATH

2010-01-13 Thread Martin v. Löwis
Lennart Regebro wrote: > On Wed, Jan 13, 2010 at 18:40, Ralf Schmitt wrote: >> The first thing I got while trying to run a python3 prompt few days ago, >> was an error. python3 tried to read my $PYTHONSTARTUP file, which used >> print statements. people will have to run both python 2 and python 3

Re: [Python-Dev] PYTHON3PATH

2010-01-13 Thread Ralf Schmitt
Lennart Regebro writes: > On Wed, Jan 13, 2010 at 18:40, Ralf Schmitt wrote: >> The first thing I got while trying to run a python3 prompt few days ago, >> was an error. python3 tried to read my $PYTHONSTARTUP file, which used >> print statements. people will have to run both python 2 and python

Re: [Python-Dev] PYTHON3PATH

2010-01-13 Thread Lennart Regebro
On Wed, Jan 13, 2010 at 21:08, Oleg Broytman wrote: > On Wed, Jan 13, 2010 at 08:50:59PM +0100, Lennart Regebro wrote: >> What do you need to do in the PYTHONSTARTUP file? >> Ten years of Python programming, and I didn't even know it existed. :-) > >   See http://phd.pp.ru/Software/dotfiles/init.p

Re: [Python-Dev] PYTHON3PATH

2010-01-13 Thread Oleg Broytman
On Wed, Jan 13, 2010 at 08:50:59PM +0100, Lennart Regebro wrote: > What do you need to do in the PYTHONSTARTUP file? > Ten years of Python programming, and I didn't even know it existed. :-) See http://phd.pp.ru/Software/dotfiles/init.py.html for an example. Oleg. -- Oleg Broytman

Re: [Python-Dev] PYTHON3PATH

2010-01-13 Thread Lennart Regebro
On Wed, Jan 13, 2010 at 18:40, Ralf Schmitt wrote: > The first thing I got while trying to run a python3 prompt few days ago, > was an error. python3 tried to read my $PYTHONSTARTUP file, which used > print statements. people will have to run both python 2 and python 3 > code at the same time. Usi

Re: [Python-Dev] PYTHON3PATH

2010-01-13 Thread Oleg Broytman
On Wed, Jan 13, 2010 at 12:57:42PM -0500, sstein...@gmail.com wrote: > Or, how about just removing the antiquated use of environment variables "antiquated"? You are kidding, aren't you?! Oleg. -- Oleg Broytmanhttp://phd.pp.ru/p...@phd.pp.ru Programmers

Re: [Python-Dev] PYTHON3PATH

2010-01-13 Thread Guido van Rossum
On Wed, Jan 13, 2010 at 9:57 AM, sstein...@gmail.com > Or, how about just removing the antiquated use of environment variables altogether from Python 3 and avoid the issue completely. -1. They have their use, but more in controlled situations. If you have "global" env vars that you only want to us

Re: [Python-Dev] PYTHON3PATH

2010-01-13 Thread Ralf Schmitt
Steven Bethard writes: > > How complicated is your PYTHONSTARTUP file? My suspicion is that you > could easily write it to work for both Python 2.X and 3.X. sure. that's exactly what I did. My point is that sharing those environment variables will cause pain for some people.

Re: [Python-Dev] PYTHON3PATH

2010-01-13 Thread sstein...@gmail.com
On Jan 13, 2010, at 12:40 PM, Ralf Schmitt wrote: > "R. David Murray" writes: > >> Please review issue 2375 [1], which is an enhancement request to add a >> PYTHON3PATH environment variable. Because we have elected to have both >> a python and a python3 command, I think this is an issue worth

Re: [Python-Dev] PYTHON3PATH

2010-01-13 Thread Steven Bethard
On Wed, Jan 13, 2010 at 9:40 AM, Ralf Schmitt wrote: > "R. David Murray" writes: > >> Please review issue 2375 [1], which is an enhancement request to add a >> PYTHON3PATH environment variable.  Because we have elected to have both >> a python and a python3 command, I think this is an issue worth

Re: [Python-Dev] PYTHON3PATH

2010-01-13 Thread Ralf Schmitt
Guido van Rossum writes: > Somehow the bug site doesn't load for me right now, but I'm -1 on > this. There are maybe a dozen PYTHON... variables -- we really > shouldn't try to add PYTHON3 variants for all of them. > > Specifically for PYTHONPATH, I feel that its use is always a > short-time or l

Re: [Python-Dev] PYTHON3PATH

2010-01-13 Thread Ralf Schmitt
"R. David Murray" writes: > Please review issue 2375 [1], which is an enhancement request to add a > PYTHON3PATH environment variable. Because we have elected to have both > a python and a python3 command, I think this is an issue worth thinking > about carefully to make sure we are serving the

Re: [Python-Dev] PYTHON3PATH

2010-01-13 Thread Guido van Rossum
Somehow the bug site doesn't load for me right now, but I'm -1 on this. There are maybe a dozen PYTHON... variables -- we really shouldn't try to add PYTHON3 variants for all of them. Specifically for PYTHONPATH, I feel that its use is always a short-time or localized hack, not something you set i

[Python-Dev] PYTHON3PATH

2010-01-13 Thread R. David Murray
Please review issue 2375 [1], which is an enhancement request to add a PYTHON3PATH environment variable. Because we have elected to have both a python and a python3 command, I think this is an issue worth thinking about carefully to make sure we are serving the Python user community and easing the