""" foo.py An example of a small python class. The corresponding C is in ./foo.c $ python foo.py <foo bar=10 at 0x7f8d4809feb0> Jim Mahoney | cs.bennington.college | MIT License | March 2021 """ class Foo: def __init__(self, bar): self.bar = bar def __str__(self): return f"<foo bar={self.bar} at {hex(id(self))}>" def main(): foo = Foo(10) print(foo) main()