[ python-Feature Requests-846568 ] All numbers are bitarrays too

SourceForge.net noreply at sourceforge.net
Fri Nov 21 08:29:19 EST 2003


Feature Requests item #846568, was opened at 2003-11-21 13:18
Message generated for change (Settings changed) made by alexanro
You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=355470&aid=846568&group_id=5470

>Category: Python Interpreter Core
Group: None
Status: Open
Resolution: None
Priority: 5
Submitted By: Alexander Rødseth (alexanro)
Assigned to: Nobody/Anonymous (nobody)
Summary: All numbers are bitarrays too

Initial Comment:
It would be nice if all numbers could be used as arrays
of bits as well.

Example:

>>> i = 10
>>> i[0] = 1
>>> print i
11
>>> print list(i)
[1, 1, 0, 1]
>>> "".join(map(lambda b:str(b), l))
'1101'
>>> for bit in i: print bit
1
1
0
1


----------------------------------------------------------------------

You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=355470&aid=846568&group_id=5470



More information about the Python-bugs-list mailing list