Windson Yang <wiwind...@outlook.com> added the comment:

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.

----------
nosy: +Windson Yang

_______________________________________
Python tracker <rep...@bugs.python.org>
<https://bugs.python.org/issue21861>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to