Re:TigerBeetle as a File Storage
by winny314 on Sunday December 14, 2025 @02:30PM
(#46265984)
In the first example:
Is `filename` a str? In which case `len(str)` returns the number of codepoints in the unicode string, not the number of bytes in an encoded representation. Yup the `filename.encode()` sounds like `str.encode()` which itself returns a `bytes` object. Not sure if it matters, but semantically it bugs the heck out of me.
[ Parent
| on HN ]
There are no comments on this comment yet.