binary string question

Ben Finney bignose-hates-spam at and-benfinney-does-too.id.au
Fri Nov 7 18:07:53 EST 2003


On Fri, 07 Nov 2003 23:20:05 GMT, Alex Martelli wrote:
> Dan Jones wrote:
>> I'm trying to figure out how to get bit operators to work on a binary
>> string.
>
> You can access an individual byte simply by indexing the string

It's possible the original poster is asking (ambiguously) about treating
a string consisting of '0' and '1' digits, as a binary number.

-- 
 \      "There's a fine line between fishing and standing on the shore |
  `\                         looking like an idiot."  -- Steven Wright |
_o__)                                                                  |
Ben Finney <http://bignose.squidly.org/>




More information about the Python-list mailing list