Author steven.daprano
Recipients alexchandel, steven.daprano
Date 2020-07-14.22:56:08
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <>
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.
Date User Action Args
2020-07-14 22:56:08steven.dapranosetrecipients: + steven.daprano, alexchandel
2020-07-14 22:56:08steven.dapranosetmessageid: <>
2020-07-14 22:56:08steven.dapranolinkissue41297 messages
2020-07-14 22:56:08steven.dapranocreate