comparison python/c3/astnodes.py @ 289:bd2593de3ff8

Semifix burn2
author Windel Bouwman
date Thu, 21 Nov 2013 15:46:50 +0100
parents a747a45dcd78
children
comparison
equal deleted inserted replaced
288:a747a45dcd78 289:bd2593de3ff8
29 self.tname = tname 29 self.tname = tname
30 self.loc = loc 30 self.loc = loc
31 31
32 def __repr__(self): 32 def __repr__(self):
33 return 'DESIGNATOR {}'.format(self.tname) 33 return 'DESIGNATOR {}'.format(self.tname)
34
35
36 class ImportDesignator(Designator):
37 def __init__(self, tname, vname, loc):
38 super().__init__(tname, loc)
39 self.vname = vname
40
41 def __repr__(self):
42 return 'IMPORT DESIGNATOR {}:{}'.format(self.tname, self.vname)
43
34 44
35 """ 45 """
36 Type classes 46 Type classes
37 47
38 types must be comparable. 48 types must be comparable.