unbyte
unbyte(
byte_or_str ,
)-> ’str | _T’
Decode a bytes value, passing anything else through unchanged.
Callers use this to normalize values which may or may not have come from a binary file, so the non-bytes case is the common one.
DASCore 1.0 beta is out! Read the announcement, check the migration guide, and help us test it.
| function of dascore.utils.misc | source |
unbyte(
byte_or_str ,
)-> ’str | _T’
Decode a bytes value, passing anything else through unchanged.
Callers use this to normalize values which may or may not have come from a binary file, so the non-bytes case is the common one.