circular import Module
Greg Ewing
greg at cosc.canterbury.ac.nz
Tue Jun 14 00:04:01 EDT 2005
Magnus Lycka wrote:
> Due to the cycle, you can never use file1 without
> file2 or vice versa. Why do you then want it to be
> two different modules instead of one?
Perhaps because it would then be too big and
unwieldy to maintain?
Sometimes there are legitimate reasons for
mutually-dependent modules.
--
Greg Ewing, Computer Science Dept,
University of Canterbury,
Christchurch, New Zealand
http://www.cosc.canterbury.ac.nz/~greg
More information about the Python-list
mailing list