-
-
Notifications
You must be signed in to change notification settings - Fork 34.7k
Add __replace__ protocol support to timedelta #135195
Copy link
Copy link
Closed as not planned
Labels
extension-modulesC modules in the Modules dirC modules in the Modules dirpendingThe issue will be closed if no feedback is providedThe issue will be closed if no feedback is providedstdlibStandard Library Python modules in the Lib/ directoryStandard Library Python modules in the Lib/ directorytype-featureA feature request or enhancementA feature request or enhancement
Metadata
Metadata
Assignees
Labels
extension-modulesC modules in the Modules dirC modules in the Modules dirpendingThe issue will be closed if no feedback is providedThe issue will be closed if no feedback is providedstdlibStandard Library Python modules in the Lib/ directoryStandard Library Python modules in the Lib/ directorytype-featureA feature request or enhancementA feature request or enhancement
Fields
Give feedbackNo fields configured for issues without a type.
Projects
Status
Done
Feature or enhancement
Proposal:
Requirements:
__replace__support fortimedelta.replace()totimedeltato be consistent withdateanddatetimeCurrently, both
dateanddatetimehave a.replace()method and supports the__replace__protocolFor unclear reasons,
timedeltadoesn't follow suit.Has this already been discussed elsewhere?
No response given
Links to previous discussion of this feature:
No response