okay, i have simplified it:  here is the code

==========================================
import time

def main():
        while True:
                print "i'm alive"
                time.sleep(0.25)

#---------------------------------
if __name__ == "__main__":
        main()
==========================================

the new error is:

==========================================
    9: Traceback (most recent call last):
    9:   File "<string>", line 10, in ?
    9:   File "<string>", line 6, in main
    9: AttributeError: 'builtin_function_or_method' object has no attribute 
'sleep'
==========================================
-- 
http://mail.python.org/mailman/listinfo/python-list

Reply via email to