I have this issue. I wouldn't know if there is any short-cut to it but I would love a short-cut though.
Say I have this class
class a(object):
def __init__(self, x, y):
self.x = x
self.y = y
def __repr__(self):
return "<a(%s', '%s')>" % (self.x, self.y)
def b(self):
print('First Name:', self.x, '\nLast Name:', self.y)
user = a('Ade', 'Shola')
Assuming there is only the first name,
user = a('Ade')
Can't I still run the script with some 'tweaks'?