Add __replace__ protocol support to timedelta #135195
Labels
extension-modules
C modules in the Modules dir
pending
The issue will be closed if no feedback is provided
stdlib
Python modules in the Lib dir
type-feature
A feature request or enhancement
Uh oh!
There was an error while loading. Please reload this page.
Feature or enhancement
Proposal:
Requirements:
__replace__
support fortimedelta
.replace()
totimedelta
to be consistent withdate
anddatetime
Currently, both
date
anddatetime
have a.replace()
method and supports the__replace__
protocolFor unclear reasons,
timedelta
doesn't follow suit.Has this already been discussed elsewhere?
No response given
Links to previous discussion of this feature:
No response
The text was updated successfully, but these errors were encountered: