Author steven.daprano
Recipients alexchandel, steven.daprano
Date 2020-07-14.22:56:08
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1594767368.26.0.0259177105515.issue41297@roundup.psfhosted.org>
In-reply-to
Content
The idiom of a module running doctests on itself when executed as a script is a common idiom.

If modulegraph and pyinstaller can't cope a module importing another module from inside an if statement, that's a bug in them, not in the heapq module (and many others).

This requested change is a regression, taking away functionality. 3.8 and older are in feature freeze, so this could only apply to 3.9 and 3.10, and even then, I do not believe it should apply at all.
History
Date User Action Args
2020-07-14 22:56:08steven.dapranosetrecipients: + steven.daprano, alexchandel
2020-07-14 22:56:08steven.dapranosetmessageid: <1594767368.26.0.0259177105515.issue41297@roundup.psfhosted.org>
2020-07-14 22:56:08steven.dapranolinkissue41297 messages
2020-07-14 22:56:08steven.dapranocreate