|
From: Bruce S. <Bru...@nc...> - 2009-05-30 04:07:09
|
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta content="text/html;charset=ISO-8859-1" http-equiv="Content-Type">
<title></title>
</head>
<body bgcolor="#ffffff" text="#000000">
Here is what you'll see if you go to the IDLE help, which I guess may
mean that you'll get the wrong behavior that you've seen.<br>
<br>
Running without a subprocess:<br>
<br>
If IDLE is started with the -n command line switch it will run in a<br>
single process and will not create the subprocess which runs the RPC<br>
Python execution server. This can be useful if Python cannot create<br>
the subprocess or the RPC socket interface on your platform.
However,<br>
in this mode user code is not isolated from IDLE itself. Also, the<br>
environment is not restarted when Run/Run Module (F5) is selected.
If<br>
your code has been modified, you must reload() the affected modules
and<br>
re-import any specific items (e.g. from foo import baz) if the
changes<br>
are to take effect. For these reasons, it is preferable to run IDLE<br>
with the default subprocess if at all possible.<br>
<br>
Bruce Sherwood<br>
<br>
TH Chew wrote:
<blockquote
cite="mid:b2e...@ma..."
type="cite">Dear Bruce,<br>
<br>
Thanks for the feedback. I just check, the default shortcut of IDLE
Python 2.6 Ubuntu 9.04 (which I was using all the while) is
"/usr/bin/idle-python2.6 -n". Does the "-n" switch has something to do
with my problem? When running the same script using VIDLE, I didn't
face any problem at all. By the way, if I run my idle-python2.6 without
the "-n" switch, the problem solved.<br>
<br>
Thanks.<br>
<br>
<div class="gmail_quote">On Sat, May 30, 2009 at 1:12 AM, Bruce
Sherwood <span dir="ltr"><<a moz-do-not-send="true"
href="mailto:Bru...@nc...">Bru...@nc...</a>></span>
wrote:<br>
<blockquote class="gmail_quote"
style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
<div bgcolor="#ffffff" text="#000000">How do you start IDLE? I just
tried running /usr/bin/idle-python2.6 in
a typescript on Ubuntu 9.04 and did not see the problem you report.<br>
<br>
You say you're now running VIDLE. Does it work properly, or does it
have the same problem that your IDLE has?<br>
<br>
Bruce Sherwood<br>
<br>
TH Chew wrote:
<blockquote type="cite">
<div>
<div class="h5">Hi all,<br>
<br>
Been trying to get the latest version of VPython working in my laptop.
I successfully compiled the source and installed using Python 2.6. The
problem is after I ran my VPython script using IDLE, and close the
VPython window, my IDLE exited at the same time. I tried running using
command line python; the python exited when I closed the VPython also.
The same thing happened if I used IPython. While I now used VIDLE to
run my VPython script, is this considered some kind of bug or it is
just me doing something wrong somewhere?<br>
<br>
Thanks in advance.<br clear="all">
<br>
-- <br>
Regards,<br>
THChew<br>
</div>
</div>
<pre><hr size="4" width="90%">
------------------------------------------------------------------------------
Register Now for Creativity and Technology (CaT), June 3rd, NYC. CaT
is a gathering of tech-side developers & brand creativity professionals. Meet
the minds behind Google Creative Lab, Visual Complexity, Processing, &
iPhoneDevCamp as they present alongside digital heavyweights like Barbarian
Group, R/GA, & Big Spaceship. <a moz-do-not-send="true"
href="http://p.sf.net/sfu/creativitycat-com" target="_blank">http://p.sf.net/sfu/creativitycat-com</a> </pre>
<pre><hr size="4" width="90%">
_______________________________________________
Visualpython-users mailing list
<a moz-do-not-send="true"
href="mailto:Vis...@li..." target="_blank">Vis...@li...</a>
<a moz-do-not-send="true"
href="https://lists.sourceforge.net/lists/listinfo/visualpython-users"
target="_blank">https://lists.sourceforge.net/lists/listinfo/visualpython-users</a>
</pre>
</blockquote>
</div>
</blockquote>
</div>
<br>
<br clear="all">
<br>
-- <br>
Regards,<br>
THChew<br>
</blockquote>
</body>
</html>
|