antocuni / capnpy

Other
45 stars 26 forks source link

Fix repr for unprintable data fields #48

Closed davidjlloyd closed 4 years ago

davidjlloyd commented 4 years ago

Capnpy data fields will often contain unprintable characters. To deal with this, we should follow Python's repr method for bytes which prefers escape sequences for unprintable and non-ASCII characters.