Re: [Python-Dev] Is raising SystemError during relative import the best solution?

2009-01-08 Thread Guido van Rossum
On Thu, Jan 8, 2009 at 11:25 AM, Brett Cannon br...@python.org wrote: So it turns out that if you try to do a relative import where a parent is not loaded, it raises a SystemError. This has been in there since Guido added package support back in the day. But this seems more like an ImportError

Re: [Python-Dev] Is raising SystemError during relative import the best solution?

2009-01-08 Thread Brett Cannon
On Thu, Jan 8, 2009 at 11:33, Guido van Rossum gu...@python.org wrote: On Thu, Jan 8, 2009 at 11:25 AM, Brett Cannon br...@python.org wrote: So it turns out that if you try to do a relative import where a parent is not loaded, it raises a SystemError. This has been in there since Guido added