summaryrefslogtreecommitdiffstats
path: root/Lib/_pydatetime.py
Commit message (Collapse)AuthorAgeFilesLines
* gh-109495: Remove unused slots from the Python implementation of datetime ↵James Hilton-Balfe2023-09-291-1/+1
| | | | (GH-109494)
* Fix date.__repr__() docstring (#109422)Christopher Yeh2023-09-151-7/+3
|
* Docs: Fix typo in datetime.tzinfo docstring (#107257)Mikhail Samylov2023-09-061-1/+1
| | | | | Co-authored-by: Paul Ganssle <1377457+pganssle@users.noreply.github.com> Co-authored-by: Hugo van Kemenade <hugovk@users.noreply.github.com>
* gh-108751: Add copy.replace() function (GH-108752)Serhiy Storchaka2023-09-061-0/+6
| | | | | | | | | It creates a modified copy of an object by calling the object's __replace__() method. It is a generalization of dataclasses.replace(), named tuple's _replace() method and replace() methods in various classes, and supports all these stdlib classes.
* gh-106392: Fix inconsistency in deprecation warnings (#106436)William Andrea2023-09-011-2/+2
| | | They used "datetime" to refer to both the object and the module.
* GH-84976: Re-introduce `datetime.py` and fix reprsPaul Ganssle2023-05-031-29/+13
| | | | | Without the change to the reprs, pure-python classes would have a repr of `datetime._pydatetime.time`, etc.
* GH-84976: Move Lib/datetime.py to Lib/_pydatetimePaul Ganssle2023-05-031-0/+2663
This breaks the tests, but we are keeping it as a separate commit so that the move operation and editing of the moved files are separate, for a cleaner history.