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 chris.jerdonek
Recipients chris.jerdonek
Date 2012-06-29.17:54:08
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1340992449.77.0.00351648358793.issue15223@psf.upfronthosting.co.za>
In-reply-to
Content
Also, FWIW, in PyPy the behavior is different.  Datetime instances do have the __module__ attribute:

Python 2.7.2 (341e1e3821fff77db3bb5cdb7a4851626298c44e, Jun 09 2012, 14:24:11)
[PyPy 1.9.0] on darwin
Type "help", "copyright", "credits" or "license" for more information.
And now for something completely different: ``pypy is the nuclear fusion of
programming language implementation (pedronis)''
>>>> from datetime import datetime
>>>> datetime.__module__
'datetime'
>>>> d = datetime(2000, 1, 1)
>>>> d.__module__
'datetime'
History
Date User Action Args
2012-06-29 17:54:09chris.jerdoneksetrecipients: + chris.jerdonek
2012-06-29 17:54:09chris.jerdoneksetmessageid: <1340992449.77.0.00351648358793.issue15223@psf.upfronthosting.co.za>
2012-06-29 17:54:09chris.jerdoneklinkissue15223 messages
2012-06-29 17:54:08chris.jerdonekcreate