Chris Jerdonek <chris.jerdo...@gmail.com> added the comment: 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' ---------- _______________________________________ Python tracker <rep...@bugs.python.org> <http://bugs.python.org/issue15223> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com