Bitmask representation of integers

Tonguç Yumruk trooper at ttnet.net.tr
Wed Oct 8 02:40:04 EDT 2003


Hi,

I'm looking for a way to represent bit-level data in python. Something
like 0xDEADBEEF representation, but not for hex i'm looking for binary.
Something like the %00110101 representation I used in pascal... Of
course I can make my operations with ordinary integers but binary
representation makes the code easier to read.

-- 
Love, Respect, Linux
############################################################################
> I've hacked the Xaw3d library to give you a Win95 like interface and it
> is named Xaw95. You can replace your Xaw3d library.
Oh God, this is so disgusting!
	-- seen on c.o.l.development.apps, about the "Win95 look-alike"
############################################################################
Tonguç Yumruk
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 196 bytes
Desc: not available
URL: <http://mail.python.org/pipermail/python-list/attachments/20031008/d2509251/attachment.sig>


More information about the Python-list mailing list