[issue15223] datetime instances lack __module__ attribute

2013-06-23 Thread Alexander Belopolsky
Changes by Alexander Belopolsky alexander.belopol...@gmail.com: -- resolution: - invalid status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue15223 ___

[issue15223] datetime instances lack __module__ attribute

2012-11-12 Thread Eric Snow
Changes by Eric Snow ericsnowcurren...@gmail.com: -- nosy: +eric.snow ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue15223 ___ ___ Python-bugs-list

[issue15223] datetime instances lack __module__ attribute

2012-07-02 Thread Amaury Forgeot d'Arc
Amaury Forgeot d'Arc amaur...@gmail.com added the comment: In PyPy, datetime.py is a pure Python module (similar to the one in 3.x, but without the _datetime acceleration module). So comparison with CPython is not relevant here. In CPython, __module__ is not an attribute of the type, but a

[issue15223] datetime instances lack __module__ attribute

2012-06-29 Thread Chris Jerdonek
New submission from Chris Jerdonek chris.jerdo...@gmail.com: Instances of datetime.datetime don't seem to have the '__module__' attribute even though the datetime class itself does. This seems to contradict Section 3.2 of the Python documentation about the standard type hierarchy (in the

[issue15223] datetime instances lack __module__ attribute

2012-06-29 Thread Chris Jerdonek
Changes by Chris Jerdonek chris.jerdo...@gmail.com: -- versions: +Python 3.3 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue15223 ___ ___

[issue15223] datetime instances lack __module__ attribute

2012-06-29 Thread Chris Jerdonek
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

[issue15223] datetime instances lack __module__ attribute

2012-06-29 Thread Chris Jerdonek
Changes by Chris Jerdonek chris.jerdo...@gmail.com: -- versions: +Python 2.7 -Python 3.3 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue15223 ___

[issue15223] datetime instances lack __module__ attribute

2012-06-29 Thread R. David Murray
R. David Murray rdmur...@bitdance.com added the comment: This is true for most (all?) CPython classes that are implemented in C. For example io.StringIO instances do not have a __module__ attribute either. -- nosy: +r.david.murray ___ Python

[issue15223] datetime instances lack __module__ attribute

2012-06-29 Thread Chris Jerdonek
Chris Jerdonek chris.jerdo...@gmail.com added the comment: Thanks. I suspected that might be the case. Then the question becomes whether failing to fall back to the class attribute is the desired behavior, and if not, to update the documentation accordingly. --

[issue15223] datetime instances lack __module__ attribute

2012-06-29 Thread Arfrever Frehtes Taifersar Arahesis
Changes by Arfrever Frehtes Taifersar Arahesis arfrever@gmail.com: -- nosy: +Arfrever ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue15223 ___

[issue15223] datetime instances lack __module__ attribute

2012-06-29 Thread Chris Jerdonek
Chris Jerdonek chris.jerdo...@gmail.com added the comment: datetime.__dict__ is another attribute that behaves this way (i.e. doesn't exist for instances in CPython but does for PyPy). -- ___ Python tracker rep...@bugs.python.org