'Return a list of code constants for each axis'

def axes_to_code(self):

    from . import MemoryView
    d = MemoryView._spec_to_const
    return [('(%s    |    %s)' % (d[a], d[p])) for (a, p) in self.axes]
