Skip to content

Instantly share code, notes, and snippets.

@ishikawa
Created July 26, 2008 03:10
Show Gist options
  • Save ishikawa/2591 to your computer and use it in GitHub Desktop.
Save ishikawa/2591 to your computer and use it in GitHub Desktop.
Iterates Over The Bytes Of String
import array
for byte in array.array('B', "ABCDEFG"):
print byte # prints 65, 66, 67, 68, ... and so on.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment