Time.sleep(0.0125) not available within Linux

Grant Edwards grante at visi.com
Mon Sep 22 22:56:30 EDT 2008


On 2008-09-23, Blubaugh, David A. <dblubaugh at belcan.com> wrote:

> I was wondering if anyone has come across the issue of not being allowed
> to have the following within a Python script operating under Linux:
>
> time.sleep(0.0125) 

No, I have not.  And I doubt anybody else has.

> It appears that I am not allowed to have the object sleep.

It doesn't appear that way to me. Care to explain how you
arrived at that conclusion?

> Has anyone encountered this specific issue before in the past?

    $ python
    Python 2.5.2 (r252:60911, Aug 28 2008, 15:54:48) 
    [GCC 4.1.2 (Gentoo 4.1.2 p1.1)] on linux2
    Type "help", "copyright", "credits" or "license" for more
    information.
    >>> import time
    >>> time.sleep(0.0125)
    >>> 

The above code has worked as far back as I can recall (which I
think includes Python 1.4).

-- 
Grant




More information about the Python-list mailing list