[Tutor] Async Events (or How to manage interrupts in Python?)

Stanfield, Vicki {D167~Indianapolis} vicki.stanfield at ROCHE.COM
Tue Dec 30 10:54:19 EST 2003


Here is a page that might get you started.

http://aspn.activestate.com/ASPN/Cookbook/Python/Recipe/65222

--vicki
-----Original Message-----
From: "Héctor Villafuerte D." [mailto:hec.villafuerte at telgua.com.gt] 
Sent: Tuesday, December 30, 2003 11:59 AM
To: Stanfield, Vicki {D167~Indianapolis}
Subject: Re: [Tutor] Async Events (or How to manage interrupts in Python?)


Ok, let's try threads.
Would you please post that explanation you mention?
Thanks Vicki!
Hector

Stanfield, Vicki {D167~Indianapolis} wrote:

>I would think that this requires threading. I recently saw a decent 
>explanation of how to do it in Python. I will look for it, and if no 
>one beats me to it, I will post it later.
>
>--vicki
>
>-----Original Message-----
>From: tutor-bounces at python.org [mailto:tutor-bounces at python.org] On 
>Behalf Of "Héctor Villafuerte D."
>Sent: Monday, December 29, 2003 1:49 PM
>To: tutor at python.org
>Subject: [Tutor] Async Events (or How to manage interrupts in Python?)
>
>
>Hi all,
>First, let me tell you what all this is about. I have a very nice 
>script
>that does the following:
>1. It checks if there is a file in an Open VMS server.
>2. If it finds the file, it connects via TELNET (using telnetlib, of 
>course!) and ZIP's it.
>3. Once the file is compressed, it GET's it via FTP (using ftplib) 4. When the file is in my local machine, the script does some processing 
>on it.
>5. If the script was given more than one file to look at the VMS server 
>it goes back to Step 1.
>
>Quite simple, right?
>The thing is that I don't want this to perform sequentially... it's 
>such
>a waste of time!
>Because while the script is in Steps 3 and 4, it could perfectly be 
>executing Steps 1 and 2.
>When I used to program microcontrollers (PICs) we had good old 
>interrupts to handle things
>like this. Any ideas how to do this in Python?
>
>Thank you so much, in advance.
>Hector
>
>
>_______________________________________________
>Tutor maillist  -  Tutor at python.org 
>http://mail.python.org/mailman/listinfo/tutor
>
>_______________________________________________
>Tutor maillist  -  Tutor at python.org 
>http://mail.python.org/mailman/listinfo/tutor
>
>
>  
>






More information about the Tutor mailing list