| 895 | |
| 896 | # Inside an exception-silencing "with" block |
| 897 | class Context: |
| 898 | def __enter__(self): |
| 899 | return self |
| 900 | def __exit__ (self, exc_type, exc_value, exc_tb): |
| 901 | return True |
| 902 | obj = MyObj() |
| 903 | wr = weakref.ref(obj) |
| 904 | with Context(): |
no outgoing calls