Python Forum

Full Version: chr() for bytes
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Pages: 1 2
what i mean is 0 to 255, not 0 to 127 as the bchr() in post #5 can do. i could add a %256 to force numbers out of range to be in range, otherwise deal with an exception since the bytes() function raises ValueError if it's out of range. either way, i now have what i needed.
Pages: 1 2