Uh oh!
There was an error while loading.Please reload this page.
- Notifications
You must be signed in to change notification settings - Fork960
Closed
Milestone
Description
Thedatetime objects produced by Python'sdatetime module are immutable, much likeCommit objects. Thedatetime module provides a convenientreplace function that returns a new object based on an old with one or more attributes replaced. E.g, I can write:
>>> d = datetime.datetime.now()>>> d.replace(hour=0, minute=0, second=0)datetime.datetime(2021, 2, 15, 0, 0, 0, 318021)I would like to see the same api onCommit objects, so that one could write:
>>> newcommit = oldcommit.replace(message='This is a test', author='Cookie Monster')Metadata
Metadata
Assignees
Labels
No labels