bpo-36004: Add date.fromisocalendar by pganssle · Pull Request #11888 · python/cpython

pganssle

ZackerySpytz

@pganssle pganssle changed the title bpo-36004: Add date.fromisocalendar and tests bpo-36004: Add date.fromisocalendar

Feb 17, 2019

pganssle

pablogsal

vstinner

This commit implements the first version of date.fromisocalendar, the
inverse function for date.isocalendar. It is currently missing error
checking for the case of of invalid iso dates in week 53.

bpo-36004: https://bugs.python.org/issue36004
This avoids an overflow error in ordinal calculations in the C
implementation.

@pganssle

@pganssle

This is equivalent but uses only existing helper functions and in many
cases will be slightly more efficient.

@pganssle

@pganssle

@pganssle

@pganssle

@pganssle

@pganssle

@pganssle

@pganssle

vstinner

ncoghlan added a commit to ncoghlan/cpython that referenced this pull request

Jun 1, 2024
* Clarify impact on default behaviour of exec, eval, etc
* Update documentation for changes to PyEval_GetLocals (pythongh-74929)

Closes pythongh-11888

ncoghlan added a commit that referenced this pull request

Jun 1, 2024
* Clarify impact on default behaviour of exec, eval, etc
* Update documentation for changes to PyEval_GetLocals (gh-74929)

Closes gh-11888

miss-islington pushed a commit to miss-islington/cpython that referenced this pull request

Jun 1, 2024
* Clarify impact on default behaviour of exec, eval, etc
* Update documentation for changes to PyEval_GetLocals (pythongh-74929)

Closes pythongh-11888
(cherry picked from commit 2180991)

Co-authored-by: Alyssa Coghlan <ncoghlan@gmail.com>

barneygale pushed a commit to barneygale/cpython that referenced this pull request

Jun 5, 2024
* Clarify impact on default behaviour of exec, eval, etc
* Update documentation for changes to PyEval_GetLocals (pythongh-74929)

Closes pythongh-11888

noahbkim pushed a commit to hudson-trading/cpython that referenced this pull request

Jul 11, 2024
* Clarify impact on default behaviour of exec, eval, etc
* Update documentation for changes to PyEval_GetLocals (pythongh-74929)

Closes pythongh-11888

estyxx pushed a commit to estyxx/cpython that referenced this pull request

Jul 17, 2024
* Clarify impact on default behaviour of exec, eval, etc
* Update documentation for changes to PyEval_GetLocals (pythongh-74929)

Closes pythongh-11888