This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author Windson Yang
Recipients Claudiu.Popa, Windson Yang, benjamin.peterson, hynek, josh.r, piotr.dobrogost, pitrou, rhettinger, serhiy.storchaka, stutzbach
Date 2019-05-17.02:29:41
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1558060181.17.0.0451526045646.issue21861@roundup.psfhosted.org>
In-reply-to
Content
IIUC, in the c code we just hardcode the name "_io.FileIO" for "PyFileIO_Type" in https://github.com/python/cpython/blob/master/Modules/_io/fileio.c#L1180. If we want to get a dynamic name, we should replace the hardcode name with the module name (like "__main__"). I found this also happens on other modules like collections.
History
Date User Action Args
2019-05-17 02:29:41Windson Yangsetrecipients: + Windson Yang, rhettinger, pitrou, benjamin.peterson, stutzbach, Claudiu.Popa, hynek, piotr.dobrogost, serhiy.storchaka, josh.r
2019-05-17 02:29:41Windson Yangsetmessageid: <1558060181.17.0.0451526045646.issue21861@roundup.psfhosted.org>
2019-05-17 02:29:41Windson Yanglinkissue21861 messages
2019-05-17 02:29:41Windson Yangcreate