Open leplatrem opened 12 years ago
from collections import namedtuple Tile = namedtuple('Tile', 'z x y') t = Tile(x=2, y=3, z=1) z, x, y = t t = Tile(z, x, y) assert t.x == t[1]