code: def _getBlock(self, block_spec):
          
          if block_spec is None:
              return
          if all(c in string.hexdigits for c in block_spec):
              block_spec = block_spec.upper()
              ix = 0
          else:
              ix = 2
          for block in all_blocks:
              if block[ix] == block_spec:
                  return block
          raise ValueError('No such block')
docs: Returns block info from given block start code point or block name.