Changeset 7049
- Timestamp:
- May 18, 2009, 1:57:38 PM (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/numpy_misc/tools/acceptance_tests/test_int32_type.py
r7048 r7049 13 13 KIND_COLWIDTH = 11 14 14 CHAR_COLWIDTH = 11 15 ID_COLWIDTH = 10 15 16 16 17 NUM_BITS = platform.architecture()[0] … … 18 19 def show(a, t): 19 20 element = a.flatten()[0] 20 print ('%s | %s | %s | %s | %s | % 08x |'21 print ('%s | %s | %s | %s | %s | %10x |' 21 22 % (t.rjust(ROWHDR_WIDTH), 22 23 a.dtype.name.center(NAME_COLWIDTH), … … 31 32 32 33 print '' 33 print ('%s | .dtype.name | .dtype.str | .dtype.kind | .dtype.char | id(type) |'34 print ('%s | .dtype.name | .dtype.str | .dtype.kind | .dtype.char | id(type) |' 34 35 % ' '.rjust(ROWHDR_WIDTH)) 35 print ('%s-+-------------+------------+-------------+-------------+---------- +'36 print ('%s-+-------------+------------+-------------+-------------+--------------+' 36 37 % '-'.rjust(ROWHDR_WIDTH)) 37 38 … … 43 44 pass 44 45 else: 46 # if a.dtype.name != 'object': 45 47 if a.dtype.name == 'int32': 46 48 show(a, t) 47 49 48 print ('%s-+-------------+------------+-------------+-------------+---------- +'50 print ('%s-+-------------+------------+-------------+-------------+--------------+' 49 51 % '-'.rjust(ROWHDR_WIDTH))
Note: See TracChangeset
for help on using the changeset viewer.