summaryrefslogtreecommitdiff
path: root/numpy/core/numeric.py
diff options
context:
space:
mode:
authorStefan van der Walt <stefan@sun.ac.za>2006-06-21 14:04:00 +0000
committerStefan van der Walt <stefan@sun.ac.za>2006-06-21 14:04:00 +0000
commit165a1f58ad0a5f2dbe77a85bd1a3e4eb37b4daaa (patch)
treef13a21ce930a0e666cb4a16fc646aa0cf6a7c3f8 /numpy/core/numeric.py
parent1e40d58f9f15217dc84331f2c827225dab229afb (diff)
downloadnumpy-165a1f58ad0a5f2dbe77a85bd1a3e4eb37b4daaa.tar.gz
Fix binary_repr for large numbers and add test.
Diffstat (limited to 'numpy/core/numeric.py')
-rw-r--r--numpy/core/numeric.py6
1 files changed, 6 insertions, 0 deletions
diff --git a/numpy/core/numeric.py b/numpy/core/numeric.py
index 4d595a624..610d6188b 100644
--- a/numpy/core/numeric.py
+++ b/numpy/core/numeric.py
@@ -340,6 +340,12 @@ _lkup = {
'd':'1101',
'e':'1110',
'f':'1111',
+ 'A':'1010',
+ 'B':'1011',
+ 'C':'1100',
+ 'D':'1101',
+ 'E':'1110',
+ 'F':'1111',
'L':''}
def binary_repr(num):