def _makep(array, descr_output, format, nrows=None):
 _offset = 0
 if (not nrows):
  nrows = len(array)
 data_output = _VLF(([None] * nrows), dtype=format.dtype)
 if (format.dtype == 'a'):
  _nbytes = 1
 else:
  _nbytes = np.array([], dtype=format.dtype).itemsize
 for idx in range(nrows):
  if (idx < len(array)):
   rowval = array[idx]
  elif (format.dtype == 'a'):
   rowval = (' ' * data_output.max)
  else:
   rowval = ([0] * data_output.max)
  if (format.dtype == 'a'):
   data_output[idx] = chararray.array(encode_ascii(rowval), itemsize=1)
  else:
   data_output[idx] = np.array(rowval, dtype=format.dtype)
  descr_output[(idx, 0)] = len(data_output[idx])
  descr_output[(idx, 1)] = _offset
  _offset += (len(data_output[idx]) * _nbytes)
 return data_output

def _makep ( array , descr_output , format , nrows = None ) : _offset = 0 if ( not nrows ) : nrows = len ( array ) data_output = _VLF ( ( [ None ] * nrows ) , dtype = format . dtype ) if ( format . dtype == 'a' ) : _nbytes = 1 else : _nbytes = np . array ( [ ] , dtype = format . dtype ) . itemsize for idx in range ( nrows ) : if ( idx < len ( array ) ) : rowval = array [ idx ] elif ( format . dtype == 'a' ) : rowval = ( ' ' * data_output . max ) else : rowval = ( [ 0 ] * data_output . max ) if ( format . dtype == 'a' ) : data_output [ idx ] = chararray . array ( encode_ascii ( rowval ) , itemsize = 1 ) else : data_output [ idx ] = np . array ( rowval , dtype = format . dtype ) descr_output [ ( idx , 0 ) ] = len ( data_output [ idx ] ) descr_output [ ( idx , 1 ) ] = _offset _offset += ( len ( data_output [ idx ] ) * _nbytes ) return data_output
construct the p format column array .