
Dec. 21, 2022
10:17 a.m.
On Tue, Dec 20, 2022 at 11:55:49PM -0800, Jeremiah Paige wrote:
@property def data(self): return f"{self}"
By my testing, on Python 3.10, this is slightly faster still: @property def data(self): return "".join((self,)) That's about 14% faster than the f-string version.