(*args)
| 883 | |
| 884 | @contextlib.contextmanager |
| 885 | def gc_threshold(*args): |
| 886 | import gc |
| 887 | old_threshold = gc.get_threshold() |
| 888 | gc.set_threshold(*args) |
| 889 | try: |
| 890 | yield |
| 891 | finally: |
| 892 | gc.set_threshold(*old_threshold) |
| 893 | |
| 894 | def python_is_optimized(): |
| 895 | """Find if Python was built with optimizations.""" |
nothing calls this directly
no test coverage detected