| 9 | # objects from *previous* runs of the same script get collected, to avoid |
| 10 | # accumulating massive amounts of old references. |
| 11 | class C(object): |
| 12 | def __init__(self, name): |
| 13 | self.name = name |
| 14 | self.p = print |
| 15 | self.flush_stdout = sys.stdout.flush |
| 16 | |
| 17 | def __del__(self): |
| 18 | self.p("tclass.py: deleting object:", self.name) |
| 19 | self.flush_stdout() |
| 20 | |
| 21 | |
| 22 | try: |