[docs] [issue8913] Document that datetime.__format__ is datetime.strftime
Brett Cannon
report at bugs.python.org
Sun Jun 6 21:15:20 CEST 2010
Brett Cannon <brett at python.org> added the comment:
I don't find it odd at all that you use datetime-specific formats instead of integral formats to get numbers out of a datetime object; they are totally different things. And one of the reasons for __format__ support is to have DSLs such as the one for datetime objects.
As for pulling out individual objects, that just looks ugly, so I wouldn't advocate pulling out individual values and then formatting them individually in the string itself.
----------
_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue8913>
_______________________________________
More information about the docs
mailing list