"Paulo da Silva" <[EMAIL PROTECTED]> wrote in message 
news:[EMAIL PROTECTED]
| 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?

I would even though having it in m.py is not *currently* necessary.  Having 
the import of os into m.py depend on the way you write and import c.py 
looks fragile, and it certainly is a memory burden to remember that c does 
so.  Also, I probably would use 'import c' instead.

tjr



-- 
http://mail.python.org/mailman/listinfo/python-list

Reply via email to