Re: [Tutor] making a shortcut in windows

2012-09-03 Thread Steven D'Aprano
On Tue, Sep 04, 2012 at 11:57:48AM +1000, Garry Willgoose wrote: > I want to put a shortcut onto the desktop in windows (XP and later) in > Python 2.6 or later. In Unix its easy using os.symlink but I can't > find anything equivalent for windows. My searches on the web led me to > the code belo

Re: [Tutor] Running a script in the background

2012-09-03 Thread Dwight Hutto
On Mon, Sep 3, 2012 at 9:56 PM, Steven D'Aprano wrote: > On 04/09/12 10:26, Dwight Hutto wrote: > > On *nix there is a cron daemon that runs in the background. >>> but one job running in the background controlling dozens(?) of >>> >>> others is way more efficient than dozens of programs all runn

Re: [Tutor] Running a script in the background

2012-09-03 Thread Steven D'Aprano
On 04/09/12 10:26, Dwight Hutto wrote: On *nix there is a cron daemon that runs in the background. but one job running in the background controlling dozens(?) of others is way more efficient than dozens of programs all running idle in the background and periodically springing into action. But

[Tutor] making a shortcut in windows

2012-09-03 Thread Garry Willgoose
I want to put a shortcut onto the desktop in windows (XP and later) in Python 2.6 or later. In Unix its easy using os.symlink but I can't find anything equivalent for windows. My searches on the web led me to the code below but the code returns the error AttributeError: function 'CreateSymbolic

Re: [Tutor] running more than one python program at the same time

2012-09-03 Thread Steven D'Aprano
On 04/09/12 01:01, Benjamin Fishbein wrote: Hi. I started running the program in the terminal rather than IDLE. It works, and I can run several programs at the same time. The problem is that when the program is finished running, it prints: exit status: 0 logout [Process completed] Which termi

Re: [Tutor] Running a script in the background

2012-09-03 Thread Dwight Hutto
On Mon, Sep 3, 2012 at 7:57 PM, Alan Gauld wrote: > On 03/09/12 22:46, Dwight Hutto wrote: > > But a script is always running in the background of the OS main console >> of the upfront GUI app users usually see, correct? >> > > Not every OS has a main console behind the GUI, but in the case of *n

Re: [Tutor] multi processes or threads?

2012-09-03 Thread Dwight Hutto
On Mon, Sep 3, 2012 at 7:59 PM, Alan Gauld wrote: > On 03/09/12 22:32, Dwight Hutto wrote: > >> Think assembly, or procedural with this, and how the mind of a CPU >> works. Instructional steps toward an endpoint. >> >> Your mind works the fastest when one problems is given, and is being >> solved,

Re: [Tutor] multi processes or threads?

2012-09-03 Thread Alan Gauld
On 03/09/12 22:32, Dwight Hutto wrote: Think assembly, or procedural with this, and how the mind of a CPU works. Instructional steps toward an endpoint. Your mind works the fastest when one problems is given, and is being solved, otherwise allocation of certain areas take place in order to find

Re: [Tutor] Running a script in the background

2012-09-03 Thread Alan Gauld
On 03/09/12 22:46, Dwight Hutto wrote: But a script is always running in the background of the OS main console of the upfront GUI app users usually see, correct? Not every OS has a main console behind the GUI, but in the case of *nix its true. On *nix there is a cron daemon that runs in the

Re: [Tutor] Running a script in the background

2012-09-03 Thread Dwight Hutto
> > Cron or another process that oversees cron has to continually run. > > -- > Best Regards, > David Hutto > *CEO:* *http://www.hitwebdevelopment.com* > > -- Best Regards, David Hutto *CEO:* *http://www.hitwebdevelopment.com* ___ Tutor maillist - T

Re: [Tutor] Running a script in the background

2012-09-03 Thread Dwight Hutto
On Sun, Sep 2, 2012 at 9:03 PM, Steven D'Aprano wrote: > On Sun, Sep 02, 2012 at 03:14:53PM -0700, Ray Jones wrote: > > This is only tangentially related to the thread. Someone mentioned that > > so long as a script didn't require user input or output to the user, it > > could run silently in the

Re: [Tutor] multi processes or threads?

2012-09-03 Thread Dwight Hutto
Think assembly, or procedural with this, and how the mind of a CPU works. Instructional steps toward an endpoint. Your mind works the fastest when one problems is given, and is being solved, otherwise allocation of certain areas take place in order to find a rewarding solution. Not having used th

Re: [Tutor] running more than one python program at the same time

2012-09-03 Thread Oscar Benjamin
On Mon, 03 Sep 2012 18:55:43 +0100, Alan Gauld wrote: On 03/09/12 16:01, Benjamin Fishbein wrote: > Hi. I started running the program in the terminal rather than IDLE. It > works, and I can run several programs at the same time. The problem is > that when the program is finished running, it

Re: [Tutor] running more than one python program at the same time

2012-09-03 Thread Alan Gauld
On 03/09/12 16:01, Benjamin Fishbein wrote: Hi. I started running the program in the terminal rather than IDLE. It works, and I can run several programs at the same time. The problem is that when the program is finished running, it prints: exit status: 0 logout [Process completed] That is prob

Re: [Tutor] multi processes or threads?

2012-09-03 Thread Alan Gauld
On 03/09/12 15:04, richard kappler wrote: what I'm looking for. The bot would have several "threads" running concurrently so as to be aware of it's state, such as a vision thread, an object and face recognition thread, a chat thread, a command and control thread, a nav thread, you get the idea.

Re: [Tutor] running more than one python program at the same time

2012-09-03 Thread William R. Wing (Bill Wing)
On Sep 3, 2012, at 11:01 AM, Benjamin Fishbein wrote: > Hi. I started running the program in the terminal rather than IDLE. It works, > and I can run several programs at the same time. The problem is that when the > program is finished running, it prints: > exit status: 0 > logout > > [Process

Re: [Tutor] running more than one python program at the same time

2012-09-03 Thread Benjamin Fishbein
Hi. I started running the program in the terminal rather than IDLE. It works, and I can run several programs at the same time. The problem is that when the program is finished running, it prints: exit status: 0 logout [Process completed] And I can't access the data that the program returned. Do

[Tutor] multi processes or threads?

2012-09-03 Thread richard kappler
I'm not sure which direction to go. I need to be able to run multiple ?processes? ?threads? (not sure which) concurrently. I'm working on AI for a robot and because I'm not sure what direction to go I'll use the term "thread" to illustrate my question, realizing threads may not be what I'm lookin