| 45 | |
| 46 | # Example use |
| 47 | class Stock(Structure): |
| 48 | name = String() |
| 49 | shares = Integer() |
| 50 | price = Float() |
| 51 | def __init__(self, name, shares, price): |
| 52 | self.name = name |
| 53 | self.shares = shares |
| 54 | self.price = price |
| 55 | |
| 56 | if __name__ == '__main__': |
| 57 | s = Stock('GOOG',100,490.1) |
no test coverage detected