import datetime
from collections import namedtuple
Stuff = namedtuple('Stuff', 'this,that')
class AwesomeRepr:
def __init__(self, name, serial_num, created, data):
self.name = name
self.serial_num = serial_num
self.created = created
self.data = data
def __repr__(self):
return ('AwesomeRepr('
'name={0.name!r}, '
'serial_num={0.serial_num!r}, '
'created={0.created!r}, '
'data={0.data!r})').format(self)