code: def printSegment(self):
      
      # Segment ID
      print "ID:%-5d" % (self.segID),
  
      # Sequence segment or pooling segment
      if self.isSequenceSeg:
        print "True",
      else:
        print "False",
  
      # Duty cycle
      print "%9.7f" % (self.dutyCycle(readOnly=True)),
  
      # numPositive/totalActivations
      print "(%4d/%-4d)" % (self.positiveActivations,
                            self.totalActivations),
  
      # Age
      print "%4d" % (self.tp.lrnIterationIdx - self.lastActiveIteration),
  
      # Print each synapses on this segment as: srcCellCol/srcCellIdx/perm
      # if the permanence is above connected, put [] around the synapse info
      # For aid in comparing to the C++ implementation, print them in sorted
      #  order
      sortedSyns = sorted(self.syns)
      for _, synapse in enumerate(sortedSyns):
        print "[%d,%d]%4.2f" % (synapse[0], synapse[1], synapse[2]),
      print
docs: Print segment information for verbose messaging and debugging.
      This uses the following format:
  
       ID:54413 True 0.64801 (24/36) 101 [9,1]0.75 [10,1]0.75 [11,1]0.75
  
      where:
        54413 - is the unique segment id
        True - is sequence segment
        0.64801 - moving average duty cycle
        (24/36) - (numPositiveActivations / numTotalActivations)
        101 - age, number of iterations since last activated
        [9,1]0.75 - synapse from column 9, cell #1, strength 0.75
        [10,1]0.75 - synapse from column 10, cell #1, strength 0.75
        [11,1]0.75 - synapse from column 11, cell #1, strength 0.75