[issue36004] Add datetime.fromisocalendar

Paul Ganssle report at bugs.python.org
Sun Feb 17 13:07:49 EST 2019


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

The attached PR is more or less fully ready, I think the correct answers to 1, 3 and 4 are that we should go with 3 separate arguments and we should not allow either time components or tz components, at least in this version.

In the future, I don't think it will be backwards incompatible to add in these features if they are desired (though I imagine they won't be terribly in demand, and it's pretty easy to work around).

The only real remaining question is number 2. Right now I am allowing keyword arguments, but the only real value I see in doing that is that PEP 570 (positional-only parameters) is not done yet and it's kind of annoying to implement "positional only parameters" in the pure Python version. If anyone feels strongly about this, let me know, otherwise I'll switch the implementation over to positional-only parameters.

----------

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


More information about the Python-bugs-list mailing list