Miro Hrončok <m...@hroncok.cz> added the comment:

While raising ImportError certainly makes much more sense in this case, this 
change is backwards incompatible and there was no DeprecationWarning. I don't 
consider that fair.

As a certain compromise, we could maybe raise a custom ImportError+ValueError 
offspring (e.g. BeyondToplevelImportError)?

If feeling fancy, we could rise a DeprecationWarning when 
issublcass(BeyondToplevelImportError, ValueError) is used?

----------
nosy: +hroncok

_______________________________________
Python tracker <rep...@bugs.python.org>
<https://bugs.python.org/issue37444>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to