[issue22058] datetime.datetime() should accept a datetime.date as init parameter

Raymond Hettinger report at bugs.python.org
Fri Jul 25 21:23:26 CEST 2014


Raymond Hettinger added the comment:

[David]
> There is already a spelling for that operation, and it is d.date()

[Tim]
Alexander, I don't see a need to make everything a one-liner

[Facundo]
> So, unless anyody wants to pursue with this, I'll close the issue.

Marking as closed, rejected for the reasons listed and because making a function signature more complicated just isn't worth it.

----------
nosy: +rhettinger
resolution:  -> rejected
status: open -> closed

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue22058>
_______________________________________


More information about the Python-bugs-list mailing list