Mercurial > lcfOS
annotate python/ppci/core/value.py @ 108:8267ba1dbce3
Added testcode
author | Windel Bouwman |
---|---|
date | Tue, 01 Jan 2013 17:17:44 +0100 |
parents | ed230e947dc6 |
children | 9e552d34bd60 |
rev | line source |
---|---|
70 | 1 |
2 class Value: | |
3 def __init__(self, vty): | |
4 self.valueType = ty | |
5 self.name = None | |
6 def getContext(self): | |
7 return self.valueType.context | |
104 | 8 def dump(self): |
9 print(self) | |
70 | 10 |
11 def setName(self, name): | |
12 if not self.name and not name: | |
13 return | |
14 self.name = name | |
15 | |
16 if self.st: | |
17 pass | |
18 else: | |
19 pass | |
20 |