(self)
| 63 | |
| 64 | @wraps(user_function) |
| 65 | def wrapper(self): |
| 66 | key = id(self), get_ident() |
| 67 | if key in repr_running: |
| 68 | return fillvalue |
| 69 | repr_running.add(key) |
| 70 | try: |
| 71 | result = user_function(self) |
| 72 | finally: |
| 73 | repr_running.discard(key) |
| 74 | return result |
| 75 | |
| 76 | return wrapper |
| 77 |