gh-89039: Call subclass constructors in datetime.*.replace (GH-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.
E
Eugene Toder committed
46190d9ea8a878a03d95b4e1bdcdc9ed576cf3fa
Parent: 92483b2
Committed by GitHub <noreply@github.com>
on 2/12/2024, 12:44:56 PM