X-Received: by 10.224.86.200 with SMTP id t8mr61770009qal.0.1374854245960; Fri, 26 Jul 2013 08:57:25 -0700 (PDT) X-Received: by 10.50.79.193 with SMTP id l1mr575682igx.14.1374854245898; Fri, 26 Jul 2013 08:57:25 -0700 (PDT) Path: csiph.com!v102.xanadu-bbs.net!xanadu-bbs.net!news.glorb.com!gh1no407970qab.0!news-out.google.com!dk8ni1421qab.0!nntp.google.com!cb17no354551qab.0!postnews.google.com!glegroupsg2000goo.googlegroups.com!not-for-mail Newsgroups: comp.lang.python Date: Fri, 26 Jul 2013 08:57:25 -0700 (PDT) In-Reply-To: Complaints-To: groups-abuse@google.com Injection-Info: glegroupsg2000goo.googlegroups.com; posting-host=24.176.229.213; posting-account=0wmmMQoAAADqQrrJBJglIT2jTr8NzmR2 NNTP-Posting-Host: 24.176.229.213 References: User-Agent: G2/1.0 MIME-Version: 1.0 Message-ID: <965b463e-e5bf-4ccd-9a3c-b0cb964b3356@googlegroups.com> Subject: Re: embedded python and threading From: "David M. Cotter" Injection-Date: Fri, 26 Jul 2013 15:57:25 +0000 Content-Type: text/plain; charset=ISO-8859-1 Xref: csiph.com comp.lang.python:51313 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 "", line 10, in ? 9: File "", line 6, in main 9: AttributeError: 'builtin_function_or_method' object has no attribute 'sleep' ==========================================