Message373661
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:08 | steven.daprano | set | recipients:
+ steven.daprano, alexchandel |
2020-07-14 22:56:08 | steven.daprano | set | messageid: <1594767368.26.0.0259177105515.issue41297@roundup.psfhosted.org> |
2020-07-14 22:56:08 | steven.daprano | link | issue41297 messages |
2020-07-14 22:56:08 | steven.daprano | create | |
|