From: TH C. <teo...@gm...> - 2009-05-30 09:54:30
|
I guess it somehow make sense now. Thanks a bunch, Bruce. On Sat, May 30, 2009 at 12:07 PM, Bruce Sherwood <Bru...@nc...>wrote: > 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. > > Running without a subprocess: > > If IDLE is started with the -n command line switch it will run in a > single process and will not create the subprocess which runs the RPC > Python execution server. This can be useful if Python cannot create > the subprocess or the RPC socket interface on your platform. However, > in this mode user code is not isolated from IDLE itself. Also, the > environment is not restarted when Run/Run Module (F5) is selected. If > your code has been modified, you must reload() the affected modules and > re-import any specific items (e.g. from foo import baz) if the changes > are to take effect. For these reasons, it is preferable to run IDLE > with the default subprocess if at all possible. > > > Bruce Sherwood > > TH Chew wrote: > > Dear Bruce, > > 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. > > Thanks. > > On Sat, May 30, 2009 at 1:12 AM, Bruce Sherwood <Bru...@nc...>wrote: > >> 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. >> >> You say you're now running VIDLE. Does it work properly, or does it have >> the same problem that your IDLE has? >> >> Bruce Sherwood >> >> TH Chew wrote: >> >> Hi all, >> >> 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? >> >> Thanks in advance. >> >> -- >> Regards, >> THChew >> >> ------------------------------ >> >> ------------------------------------------------------------------------------ >> 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. http://p.sf.net/sfu/creativitycat-com >> >> ------------------------------ >> >> _______________________________________________ >> Visualpython-users mailing lis...@li...https://lists.sourceforge.net/lists/listinfo/visualpython-users >> >> > > > -- > Regards, > THChew > > -- Regards, THChew |