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 Aaron.Meurer
Recipients Aaron.Meurer
Date 2017-12-13.21:46:39
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1513201599.09.0.213398074469.issue32313@psf.upfronthosting.co.za>
In-reply-to
Content
inspect.getsource(datetime) shows the Python source code for datetime, even when it is the C extension. This is very confusing. 

I believe it's because _datetime is used to override everything in datetime at the end of the file (here https://github.com/python/cpython/blob/11a247df88f15b51feff8a3c46005676bb29b96e/Lib/datetime.py#L2285), but __file__ is not imported.
History
Date User Action Args
2017-12-13 21:46:39Aaron.Meurersetrecipients: + Aaron.Meurer
2017-12-13 21:46:39Aaron.Meurersetmessageid: <1513201599.09.0.213398074469.issue32313@psf.upfronthosting.co.za>
2017-12-13 21:46:39Aaron.Meurerlinkissue32313 messages
2017-12-13 21:46:39Aaron.Meurercreate