figuring out # of bytes

codecraig codecraig at gmail.com
Fri Apr 22 16:28:57 EDT 2005


i want to the number of bytes in a string...

is, len(x) accurate?

so, x = "hi"
len(x) == 2 ....so that means two bytes?

thanks




More information about the Python-list mailing list