hi expert, i'm newbie for python, anywhere i'm learning from internet sample, i got doubt here, i found below sample for thread

import threading
def hello():
print "Hello"
t = threading.Timer(2, hello).start()

t = threading.Timer(2, hello)
t.start()

this working fine when run manually ( python thread.py)

but i try to build it, then try to run the executable file, but nothing is happen, can anyone explain this, is thread not working on build

thanks

import py_compile
py_compile.compile('thread.py')

it will create .pyc file

What do you mean by "build"... because Python doesn't have much of a concept of "build."

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.