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 iritkatriel
Recipients Aaron.Meurer, belopolsky, iritkatriel, p-ganssle, xtreak, yselivanov
Date 2020-08-23.18:37:36
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1598207856.15.0.164612133218.issue32313@roundup.psfhosted.org>
In-reply-to
Content
The documentation for getfile says "This will fail with a TypeError if the object is a built-in module, class, or function."

https://docs.python.org/3/library/inspect.html#inspect.getfile

But it doesn't:
>>> inspect.getfile(datetime.datetime)
'C:\\Users\\User\\src\\cpython\\lib\\datetime.py'
History
Date User Action Args
2020-08-23 18:37:36iritkatrielsetrecipients: + iritkatriel, belopolsky, Aaron.Meurer, yselivanov, p-ganssle, xtreak
2020-08-23 18:37:36iritkatrielsetmessageid: <1598207856.15.0.164612133218.issue32313@roundup.psfhosted.org>
2020-08-23 18:37:36iritkatriellinkissue32313 messages
2020-08-23 18:37:36iritkatrielcreate