"Alex Martelli" <[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED]
> If you're running test1.py as your main module, then it's not part of a
> package, so the relative import should indeed fail as you mention.

So if I understand you,
 in a package, any module that I wish
to make available for execution as a script
(in the usual way, with a main function)
cannot have any relative imports.
Is this right?  What is the reason for
this restriction?  (And where is it
documented?)

Thank you,
Alan Isaac


-- 
http://mail.python.org/mailman/listinfo/python-list

Reply via email to