Mercurial > lcfOS
comparison python/ppci/core/value.py @ 104:ed230e947dc6
Added hexviewer
author | windel |
---|---|
date | Sun, 30 Dec 2012 22:31:55 +0100 |
parents | 4a37d6992bd3 |
children | 9e552d34bd60 |
comparison
equal
deleted
inserted
replaced
103:28a35161ef23 | 104:ed230e947dc6 |
---|---|
3 def __init__(self, vty): | 3 def __init__(self, vty): |
4 self.valueType = ty | 4 self.valueType = ty |
5 self.name = None | 5 self.name = None |
6 def getContext(self): | 6 def getContext(self): |
7 return self.valueType.context | 7 return self.valueType.context |
8 def dump(self): | |
9 print(self) | |
8 | 10 |
9 def setName(self, name): | 11 def setName(self, name): |
10 if not self.name and not name: | 12 if not self.name and not name: |
11 return | 13 return |
12 self.name = name | 14 self.name = name |