8000 gh-109798: Normalize `_datetime` and `datetime` error messages by donBarbos · Pull Request #127345 · python/cpython · GitHub
[go: up one dir, main page]

Skip to content

gh-109798: Normalize _datetime and datetime error messages #127345

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 31 commits into from
Feb 12, 2025
Merged
Changes from 1 commit
Commits
Show all changes
31 commits
Select commit Hold shift + click to select a range
764eb1b
Update error messages to be the same in datetime
donBarbos Nov 27, 2024
2bf419f
Add NEWS.d/next
donBarbos Nov 27, 2024
4363e9e
fixed syntax errors
donBarbos Nov 27, 2024
9da0dfc
Move Py_DECREF after PyErr_Format
donBarbos Nov 29, 2024
179423d
Add more info in message error in _pydatetime impl
donBarbos Nov 29, 2024
f691251
Update Modules/_datetimemodule.c
donBarbos Nov 29, 2024
d8973cf
Update Modules/_datetimemodule.c
donBarbos Nov 29, 2024
5eea62f
Update Modules/_datetimemodule.c
donBarbos Nov 29, 2024
79543cc
Update Modules/_datetimemodule.c for optimisation
donBarbos Nov 29, 2024
d174497
Revert last update Modules/_datetimemodule.c
donBarbos Nov 29, 2024
498c4ba
Update Modules/_datetimemodule.c
donBarbos Nov 29, 2024
216d0fe
Update Misc/NEWS.d message
donBarbos Nov 29, 2024
c409fec
Update Misc/NEWS.d message
donBarbos Nov 29, 2024
3f454f6
Update Misc/NEWS.d message
donBarbos Nov 29, 2024
a2b8f7a
Update Misc/NEWS.d message
donBarbos Nov 29, 2024
209c338
Update Lib/_pydatetime.py
donBarbos Nov 30, 2024
0777aa5
Update Misc/NEWS.d/next/Library/2024-11-27-23-29-05.gh-issue-109798.O…
donBarbos Nov 30, 2024
4d31d33
Update Lib/_pydatetime.py
donBarbos Nov 30, 2024
10000 f05ebba
Update Lib/_pydatetime.py
donBarbos Nov 30, 2024
f840105
Update Lib/_pydatetime.py
donBarbos Nov 30, 2024
61c95a5
Update Lib/_pydatetime.py
donBarbos Nov 30, 2024
2ab77b3
Update Lib/_pydatetime.py
donBarbos Nov 30, 2024
b1e272a
Update Lib/_pydatetime.py
donBarbos Nov 30, 2024
7a35bd4
Update Lib/_pydatetime.py
donBarbos Nov 30, 2024
cfd18cb
Add tests
donBarbos Nov 30, 2024
2827514
Update _pydatetime.py
donBarbos Dec 1, 2024
cd3bdc1
Update _pydatetime.py
donBarbos Dec 1, 2024
9915dfe
Change but got to not
donBarbos Dec 1, 2024
1da5a3a
Correct line break
donBarbos Dec 1, 2024
610f067
Update 2024-11-27-23-29-05.gh-issue-109798.OPj1CT.rst
pganssle Feb 12, 2025
410e0ce
Merge branch 'main' into issue-109798
pganssle Feb 12, 2025
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Update Lib/_pydatetime.py
Co-authored-by: Peter Bierma <zintensitydev@gmail.com>
  • Loading branch information
donBarbos and ZeroIntensity authored Nov 30, 2024
commit 61c95a59f4fbaf773b1495d97e5a5bb43e7cd305
2 changes: 1 addition & 1 deletion Lib/_pydatetime.py
Original file line number Diff line number Diff line change
Expand Up @@ -600,7 +600,7 @@ def _check_tzinfo_arg(tz):
if tz is not None and not isinstance(tz, tzinfo):
raise TypeError(
"tzinfo argument must be None or of a tzinfo subclass, "
f"not type '{type(tz).__name__}'"
f"not type {type(tz).__name__!r}"
)

def _divide_and_round(a, b):
Expand Down
Loading
0