Bugs item #1550938, was opened at 2006-09-02 09:05 Message generated for change (Comment added) made by gbrandl You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=105470&aid=1550938&group_id=5470
Please note that this message will contain a full copy of the comment thread, including the initial issue submission, for this request, not just the latest update. Category: Python Interpreter Core Group: Python 2.5 Status: Open Resolution: None Priority: 8 Submitted By: ganges master (gangesmaster) Assigned to: Neal Norwitz (nnorwitz) Summary: from . import bug Initial Comment: >>> from . import foo Traceback (most recent call last): File "<stdin>", line 1, in <module> ValueError: Relative importpath too deep it should raise ImportError, as the module does not exist. there's nothing wrong with the path being too deep. ---------------------------------------------------------------------- >Comment By: Georg Brandl (gbrandl) Date: 2006-09-03 07:10 Message: Logged In: YES user_id=849994 See attached patch. I couldn't find a mention of this ValueError in the PEP or the docs, so changing it to ImportError and giving better error messages looks like the way to go. ---------------------------------------------------------------------- Comment By: Neal Norwitz (nnorwitz) Date: 2006-09-02 18:49 Message: Logged In: YES user_id=33168 Can you provide a patch to fix it? I'll make a decision partly based on the patch. ---------------------------------------------------------------------- Comment By: Georg Brandl (gbrandl) Date: 2006-09-02 09:21 Message: Logged In: YES user_id=849994 Agreed. Can we fix this for 2.5? ---------------------------------------------------------------------- You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=105470&aid=1550938&group_id=5470 _______________________________________________ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com