Where to "import"?

Paulo da Silva psdasilvaX at esotericaX.ptX
Thu Mar 8 13:52:34 EST 2007


Hi!

If I have two files .py such as

m.py
	from c import *
	...
	x=c()
	...
	os.any_method ...
	...

c.py
	class c:
		def __init__(self, ...):
			...
			os.any_method ...
			...
	...

both using os module where should I put the "import os"? In both files?

Thanks
Paulo



More information about the Python-list mailing list