samuelcolvin / rtoml

A fast TOML library for python implemented in rust.
https://pypi.org/project/rtoml/
MIT License
323 stars 28 forks source link

Allow loading bytes #68

Open yajo opened 1 year ago

yajo commented 1 year ago

If passing a byte string or a rb-mode opened file, I think this library should be able to handle that input properly.

Actually, when parsing files, IMHO it's a better practice, because then the underlying library can handle any possible byte-to-string conversions that might be specific to the format.