Ken G. wrote:

> I have use 'sleep.time(5)' in most of my program but the following error
> is throwing me for a loss.
> 
> import time
> Traceback (most recent call last):
>    File "/home/ken/Python2/Blood Glucose/BloodGlucose04ReadingTimed.py",
> line 63, in <module>
>      time.sleep(2)
> AttributeError: 'str' object has no attribute 'sleep'
> 
> Using the following is okay:
> 
> import time
> print "Now"
> time.sleep(2)
> print "Later"

Look for an assignment like

time = "whatever"

in module BloodGlucose04ReadingTimed.py.

_______________________________________________
Tutor maillist  -  [email protected]
To unsubscribe or change subscription options:
http://mail.python.org/mailman/listinfo/tutor

Reply via email to