#1
  1. Contributing User
    Devshed Intermediate (1500 - 1999 posts)

    Join Date
    Dec 2004
    Location
    Meriden, Connecticut
    Posts
    1,797
    Rep Power
    154

    Class to Application


    I just have a quick question and I'm hoping someone can answer it soon. I'm working on my own Queue class which will work for any program that needs a queue. Here's my question:
    If I were to use time.sleep() in my class (and yes the class is imported into the Python application), would the application running the class also pause? Or would (I'm hoping) it pause only the class itself?

    [Off-topic]I just had a quick off-topic question. I noticed that my reputation dropped down to 0, is it possible that this happened because I recommended to someone to find a certain software through a file sharing software?
    Last edited by †Yegg†; March 21st, 2005 at 07:10 PM.
  2. #2
  3. No Profile Picture
    Contributing User
    Devshed Newbie (0 - 499 posts)

    Join Date
    Nov 2004
    Posts
    394
    Rep Power
    51
    Hi!

    The application will also pause.
    To avoid this, you could start the function using time.sleep() in a new thread. Have a look at the modules thread and threading.

    Hope this helps.

    Regards, mawe
  4. #3
  5. Contributing User
    Devshed Intermediate (1500 - 1999 posts)

    Join Date
    Dec 2004
    Location
    Meriden, Connecticut
    Posts
    1,797
    Rep Power
    154
    Ok, thanks for the help.
  6. #4
  7. No Profile Picture
    Contributing User
    Devshed Intermediate (1500 - 1999 posts)

    Join Date
    Feb 2004
    Location
    London, England
    Posts
    1,585
    Rep Power
    1373
    Originally Posted by †Yegg†
    [Off-topic]I just had a quick off-topic question. I noticed that my reputation dropped down to 0, is it possible that this happened because I recommended to someone to find a certain software through a file sharing software?
    I think the number shows how many agree/disagree comments you can make in a day. If you only had one point, it would drop to zero when you made the comment. It should come back after 24 hours.

    Dave
  8. #5
  9. Contributing User
    Devshed Intermediate (1500 - 1999 posts)

    Join Date
    Dec 2004
    Location
    Meriden, Connecticut
    Posts
    1,797
    Rep Power
    154
    Ya, a little while after that post jacksasia's signature said to click that icon next to his name. That's when I realized what it did and how your reputation was set up.

IMN logo majestic logo threadwatch logo seochat tools logo