Skip to content

Conversation

@serhiy-storchaka
Copy link
Member

@serhiy-storchaka serhiy-storchaka commented Mar 14, 2025

When replace() method is called on a subclass of datetime, date or time, properly call derived constructor. Previously, only the base class's constructor was called.

Also, make sure to pass non-zero fold values when creating subclasses in various methods. Previously, fold was silently ignored.
(cherry picked from commit 46190d9)

…ce (pythonGH-114780)

When replace() method is called on a subclass of datetime, date or time,
properly call derived constructor. Previously, only the base class's
constructor was called.

Also, make sure to pass non-zero fold values when creating subclasses in
various methods. Previously, fold was silently ignored.
(cherry picked from commit 46190d9)

Co-authored-by: Eugene Toder <[email protected]>
@serhiy-storchaka serhiy-storchaka requested a review from Yhg1s March 14, 2025 11:27
@serhiy-storchaka serhiy-storchaka merged commit 6f6b8b4 into python:3.12 Apr 2, 2025
29 checks passed
@serhiy-storchaka serhiy-storchaka deleted the backport-46190d9-3.12 branch April 2, 2025 17:35
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants