(Inspired by https://mail.python.org/pipermail/python-ideas/2010-October/008532.html) (color: c, position: p) This would automatically created a namedtuple class and provide an instance of it. -eric p.s. Don't take this too seriously. :)