[Pythonmac-SIG] pythonw question

Jack Jansen Jack.Jansen at cwi.nl
Sat Jun 26 18:40:39 EDT 2004


I think now you're messing up "/sw" and "/usr". /sw/bin/python* is 
fink-installed, and copying /sw/bin/python2.3 to /sw/bin/python isn't 
useful at all: if the fink installation is anything like a normal 
Python install then /sw/bin/python should be no more than a symlink to 
/sw/bin/python2.3.

But: why not keep a copy of your original (call it "python-" or 
something) and just what happens if you do the copy? If it turns out 
there are bad side effects you can always go back...

On 26 Jun 2004, at 02:23, gohaku wrote:

> I installed python23 through fink and copied:
> cp /sw/bin/python2.3 /sw/bin/python
>
> I noticed that pythonw and python import the same files:
> warnings.pyc, linecache.pyc,...
>
> anyway, will I experience any problems with the following command?
> %cp /sw/bin/python2.3 /sw/bin/python
>
> Thanks again.
> -gohaku
> On Jun 25, 2004, at 5:23 PM, Jack Jansen wrote:
>>
>> Are you sure this is indeed the case? Because normally you would have 
>> one of two situations:
>> - If you're running 10.2 (Panther) you'd have only /usr/bin/python, 
>> which would be 2.2
>> - If you're running 10.3 (Jaguar) you'd have both /usr/bin/python and 
>> /usr/bin/pythonw, and they would both be 2.3.
>>
>> If you indeed have the situation you sketch you've installed 
>> something into /usr/bin yourself, which is probably not a good idea.
>>
>>> Other than running wxPython apps with pythonw, I would like to know
>>> what the difference between python and pythonw is and
>>> if I overwrite /usr/bin/python with /usr/bin/python, will I 
>>> experience any problems?
>>
>> The difference is that "python" cannot access the GUI, and "pythonw" 
>> can. There is a very small performance disadvantage to using 
>> "pythonw" (it's a shellscript that runs the "real" windowing 
>> interpreter), but only during startup. I can't think of any real 
>> problems that could be caused by always using pythonw, but I think 
>> you should really fix the real problem (that the two seem to refer to 
>> different Python versions).
>> --
>> Jack Jansen, <Jack.Jansen at cwi.nl>, http://www.cwi.nl/~jack
>> If I can't dance I don't want to be part of your revolution -- Emma 
>> Goldman
>>
>>
--
Jack Jansen, <Jack.Jansen at cwi.nl>, http://www.cwi.nl/~jack
If I can't dance I don't want to be part of your revolution -- Emma 
Goldman




More information about the Pythonmac-SIG mailing list