embedded python and threading
David M. Cotter
me at davecotter.com
Fri Jul 26 11:57:25 EDT 2013
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'
==========================================
More information about the Python-list
mailing list