[New-bugs-announce] [issue33237] Improve AttributeError message for partially initialized module
Serhiy Storchaka
report at bugs.python.org
Fri Apr 6 11:43:32 EDT 2018
New submission from Serhiy Storchaka <storchaka+cpython at gmail.com>:
Cyclic import usually leads to an AttributeError "module 'spam' has no attribute 'ham'" which usually is confusing because in normal case 'spam.ham' exists, and the user can have no ideas why it is disappeared.
The proposed PR allows to specialize the AttributeError message for partially initialized module. Any suggestions about the error message?
----------
components: Interpreter Core
messages: 315019
nosy: brett.cannon, eric.snow, ncoghlan, serhiy.storchaka
priority: normal
severity: normal
status: open
title: Improve AttributeError message for partially initialized module
type: enhancement
versions: Python 3.8
_______________________________________
Python tracker <report at bugs.python.org>
<https://bugs.python.org/issue33237>
_______________________________________
More information about the New-bugs-announce
mailing list