[issue36004] Add datetime.fromisocalendar

Paul Ganssle report at bugs.python.org
Fri Feb 15 19:15:42 EST 2019


Paul Ganssle <p.ganssle at gmail.com> added the comment:

I have a first-pass PR, a few questions to address:


1. Should it take three arguments or a single 3-tuple? (I've gone with 3 arguments)
2. Since all three arguments are required, should we make them positional-only?
3. Should we allow time components in the `datetime` flavor of this? If so, I think we would also want datetime.isocalendar() to return a longer tuple, which would be backwards incompatible.
4. Should we add a `tz` argument in the datetime flavor?

I think for questions 3 and 4 the answer is no, modelling after .toordinal/.fromordinal.

----------

_______________________________________
Python tracker <report at bugs.python.org>
<https://bugs.python.org/issue36004>
_______________________________________


More information about the Python-bugs-list mailing list