New submission from Serhiy Storchaka <>:

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 <>
Python-bugs-list mailing list

Reply via email to