#TIL that Python's .rstrip(chars) removes any trailing given chars, not the exact given string.

Caused some weird duration displays in #annextimelog, now fixed:

https://gitlab.com/nobodyinperson/annextimelog/-/commit/2b753c84347281df0206078f1583a0171dd5db3d

#Python

fix pretty_duration cutting off trailing zeros (2b753c84) · Commits · Yann Büchau / ⏱️ annextimelog · GitLab

git-annex based cli time tracker

GitLab
Built-in Types

The following sections describe the standard types that are built into the interpreter. The principal built-in types are numerics, sequences, mappings, classes, instances and exceptions. Some colle...

Python documentation