pausing a thread

Erno Kuusela erno-news at erno.iki.fi
Thu Jul 5 11:52:29 CEST 2001


In article <3d8d3c0.0107050135.ff84ead at posting.google.com>,
danielnuriyev at yahoo.com (Daniel Nuriyev) writes:

| Hello
| This is a Java programmer's question
| How do you say:
| class QQQ extends Thread{
|     public void run(){
|         ...
|         sleep(ms);
|     }
| }
| in Python? Thank you all.

something like:

import threading, time

class QQQ(threading.Thread):
    def run(self):
        ...
        time.sleep(s)


  -- erno



More information about the Python-list mailing list