Can 2 files import each other? (recursive)

Grant Beasley gbeasley at tsa.ac.za
Thu Oct 25 03:43:29 EDT 2001


Hi

Can I have two Python files each importing the other, i.e.

File1.py
import File2

File2.py
import File1

Firstly, does Python allow this? (It does seem to)

Secondly, is this a good idea?

Thanks
Grant





More information about the Python-list mailing list