TIL about `copy.replace()` which is like `dataclasses.replace()` but also for everything else (that defines `__replace__()`)!
https://docs.python.org/3/library/copy.html#copy.replace
#python
If you have a fediverse account, you can quote this note from your own instance. Search https://threads.net/ap/users/17841402878169478/post/17877046035306559/ on your instance and quote it. (Note that quoting is not supported in Mastodon.)
