Irit Katriel <iritkatr...@yahoo.com> added the comment:

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'

----------
nosy: +iritkatriel

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

  • ... Irit Katriel
    • ... శ్రీనివాస్ రెడ్డి తాటిపర్తి
    • ... Dong-hee Na
    • ... Paul Ganssle

Reply via email to