[Python-bugs-list] [ python-Bugs-775061 ] 2 problems with IDLE
SourceForge.net
noreply at sourceforge.net
Fri Sep 5 20:10:55 EDT 2003
Bugs item #775061, was opened at 2003-07-21 11:08
Message generated for change (Comment added) made by nnorwitz
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=105470&aid=775061&group_id=5470
Category: IDLE
Group: Python 2.3
Status: Open
Resolution: Accepted
Priority: 3
Submitted By: Neal Norwitz (nnorwitz)
Assigned to: Kurt B. Kaiser (kbk)
Summary: 2 problems with IDLE
Initial Comment:
Lib/idlelib/idle.py should use #!/usr/bin/env python
not /usr/bin/python so the user can modify their path
to execute the correct version of python.
In Lib/idlelib/rpc.py around line 623, svr.register
(svr is an RPCServer instance) is called, but there is
no register method AFAICT.
----------------------------------------------------------------------
>Comment By: Neal Norwitz (nnorwitz)
Date: 2003-09-05 22:10
Message:
Logged In: YES
user_id=33168
No objection from me.
----------------------------------------------------------------------
Comment By: Kurt B. Kaiser (kbk)
Date: 2003-09-05 22:04
Message:
Logged In: YES
user_id=149084
My idea on how to resolve this:
remove the "idle" script from idlelib and
remove the shebang from idlelib/idle.py so
it has to be called explicitly. Any objections?
----------------------------------------------------------------------
Comment By: Kurt B. Kaiser (kbk)
Date: 2003-09-05 19:13
Message:
Logged In: YES
user_id=149084
I use (from the idlelib dir):
../../python ./PyShell.py
to start an uninstalled IDLE for testing.
There is a more elaborate idle.py in IDLEfork which allows
starting an uninstalled IDLEfork from anywhere in the file
system. Maybe something like that would be useful to
someone? It's not useful to me, I either use the above,
or call my installed version (which is the latest official
release) from outside that directory. There is always an
installed IDLE now.
I recommend removing the idle script from
idlelib, since it is actually installed from Tools/scripts.
The files there uniformly start with #! /usr/bin/env python.
Exceptions: gprof2html.py, parseentities.py
Without objection, I'm going to remove idlelib/idle.
As far as the RPCServer issue goes, this is defunct test
code. I'll comment it out for now. A proper unit test of
the rpc.py module is needed.
----------------------------------------------------------------------
Comment By: Neal Norwitz (nnorwitz)
Date: 2003-07-21 22:19
Message:
Logged In: YES
user_id=33168
Hmmm, I do remember something about distutils rewriting the
line, but I'm not sure. My problem was that I was running
an uninstalled version in the CVS tree:
./Lib/idlelib/idle
Perhaps this isn't a bug. RPCServer still appears to be a
problem either way.
----------------------------------------------------------------------
Comment By: Martin v. Löwis (loewis)
Date: 2003-07-21 18:43
Message:
Logged In: YES
user_id=21627
I fail to see the first problem. Shouldn't distutils replace
the path in #! with sys.exec_prefix? /usr/bin/env should
*not* be used, as this might be a different python than the
one IDLE was installed for.
----------------------------------------------------------------------
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=105470&aid=775061&group_id=5470
More information about the Python-bugs-list
mailing list