Message4989

Author Lonebuddha
Recipients Lonebuddha
Date 2009-08-05.10:56:09
SpamBayes Score 1.1867625e-07
Marked as misclassified No
Message-id <1249469769.91.0.295028490115.issue1423@psf.upfronthosting.co.za>
In-reply-to
Content
In case of circular imports Python shows "ImportError: cannot import
name <>" error and a stack trace, but Jython fails with "RuntimeError:
maximum recursion depth exceeded".

Use case description.
1. I have a package.
2. There are two modules in the package.
3. First one does "from . import <second module>"
4. Second one does "from . import <first module>"

See an example in the attached file. Try to run "main.py".
History
Date User Action Args
2009-08-05 10:56:09Lonebuddhasetrecipients: + Lonebuddha
2009-08-05 10:56:09Lonebuddhasetmessageid: <1249469769.91.0.295028490115.issue1423@psf.upfronthosting.co.za>
2009-08-05 10:56:09Lonebuddhalinkissue1423 messages
2009-08-05 10:56:09Lonebuddhacreate