Possible Duplicate:
Should Python import statements always be at the top of a module?
In a very simple one-file python program like
# ------------------------
# place 1
# import something
def foo():
# place 2
# import something
return something.foo()
def bar(f):
...
def baz():
f = foo()
bar(f)
baz()
# ----------------
Would you put the "import something" at place 1 or 2?