Mercurial > code > home > repos > light9
comparison Port.py @ 2:022e35e17182
bunch of renaming; some additions to the files
author | drewp |
---|---|
date | Thu, 04 Jul 2002 08:21:35 +0000 |
parents | 45b12307c695 |
children | 8856efb6516c |
comparison
equal
deleted
inserted
replaced
1:d8a11a5981e2 | 2:022e35e17182 |
---|---|
13 return self[key] | 13 return self[key] |
14 def __getitem__(self, key): | 14 def __getitem__(self, key): |
15 pass | 15 pass |
16 | 16 |
17 class InputPort(Port): | 17 class InputPort(Port): |
18 def __init__(self, allowedtype, required=1, maxpins=ANY): | 18 def __init__(self, required=1, maxpins=ANY): |
19 self.pins = [] | 19 self.pins = [] |
20 | 20 |
21 class OutputPort(Port): | 21 class OutputPort(Port): |
22 def __init__(self): | 22 def __init__(self): |
23 self.pins = [] | 23 self.pins = [] |