Skip to main content

python_bytes_repr

Function python_bytes_repr 

Source
pub fn python_bytes_repr(data: &[u8]) -> String
Expand description

Python’s repr of a bytes value: b'...' (double quotes when it holds a ' and no "), printable ASCII as itself, \\, \t, \n, \r and the quote escaped, every other byte as \xNN.