Circular imports

Ron Provost ronpro at cox.net
Mon May 28 23:46:00 EDT 2007


Hello,

I'm in the process of porting a project from Java to python.  The original project is very poorly organized.  Nearly each class is depentant upon nearly every other class.  Before I go playing around with the logic by moving things around and cleaning up the code, I want to get it working.  However, because of all these dependancies, python is not happy about my circular imports.  Is there any way to force python to accept these imports for now?  the only solution I've come up with myself would be to combine all the files into one.  This isn't really possible anyway because three of the files are actually automatically generated.

Thanks,
Ron
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/python-list/attachments/20070528/f18963d7/attachment.html>


More information about the Python-list mailing list