Base 2 to long integers and back

Tim CHURCHES TCHUR at doh.health.nsw.gov.au
Tue Mar 20 22:22:45 EST 2001


Can anyone suggest a fast method of converting base2 strings (e.g. '0000101110') to Python long integers, and back? I couldn't locate any functions in the standard library to do this, but no doubt I am overlooking something obvious.

Cheers,

Tim Churches
Sydney, Australia






More information about the Python-list mailing list