Ticket #828: pprint.patch
| File pprint.patch, 0.6 kB (added by NeilMuller, 5 months ago) |
|---|
-
format.py
old new 141 141 """ 142 142 d = {} 143 143 d['shape'] = array.shape 144 d['descr'] = dtype_to_descr(array.dtype) 144 145 if array.flags.c_contiguous: 145 146 d['fortran_order'] = False 146 147 elif array.flags.f_contiguous: … … 151 152 # because a 1-D array is both C_CONTIGUOUS and F_CONTIGUOUS. 152 153 d['fortran_order'] = False 153 154 154 d['descr'] = dtype_to_descr(array.dtype)155 155 return d 156 156 157 157 def write_array_header_1_0(fp, d):
